Commit

23ca70d

There are some things that show up on screen already translated, and others that don't get translated unless you press the translate button. That basically means if translated data has been saved, it's being reused. In other words, when something already translated comes…
Translated from Japanese
now that you mentioned it, that's actually clever on the part of /dev/null team. show original for fewer translation request, if somebody translated it then store, then serve the translation moving forward
You can keep translation costs down, right? Storage costs go up, and there will be more language-difference checks and extra loading queries, but translation using an AI model is the most expensive, so this feels like a reasonable compromise. Good sense of balance.
Translated from Japanese
Out of curiosity, how does doing it like that affect storage costs? If anything, it keeps it down by not storing transalations when not needed, no?
What we were comparing it to was ambiguous, wasn't it? We were comparing it to an architecture where only the original text is saved, and it's translated and displayed each time the user presses the translate button. If you move the translation processing to the browser or client…
Translated from Japanese
Oh, yes it was indeed confusing, but now that I understand, I completely agree! Personally I think the current strategy makes the most sense. Inherently translation is something that should be stored since it’s likely to always be the same + many users are likely to need it…
Like you, I think the current architecture is a good landing spot. But at the same time, what I think is… The act of pressing the translate button means that a user trigger is required. It requires the will to say, "Alright, I'm going to read this post!" I believe there is an unconscious filter and bias in that. When you're "scrolling through," anything other than your native language is "visible, but doesn't sink in." In that sense, there is also an experience that can only be gained in an environment like X, where "everything is translated in advance." Depending on what kind of user experience /dev/null is aiming for, there seem to be options for the architecture to take. I'm really looking forward to what comes next.
Translated from Japanese

commit 23ca70d

Agreed, hadn't thought of it that way but you are right! Personnally, loving "cross languages/cross cultures" stuff, seeing something in a language other than mine, especially japanese, chinese, arabic, etc is bound to call my attention even more than something in one of the…
Translating everything is not an option for now. The inference costs for translations come from my own pocket, so does Tom’s inference. That’s why we chose this route + TTL on cached translations (because storage comes out of @nunomaduro’s pocket, lol)