Show HN: I coded my own JSON translation tool to easily localize my side project
31–36 of 36 posts
Re: Show HN: I coded my own JSON translation tool to easily localize my side project
#32>Perfect for manage project localization >This credits will never expire. >So if you sync new o modified content There are obvious mistakes in the English version of your website, which is totally bizarre to me, since these errors are absent in the German version. My guess is that the AI actually fixed these errors when translating. I have to say that the German translation is really bad though. "Habe nach einem Onli…
this is a perfect example of why AI prompting is important, even if people roll their eyes and tell you that using an LLM is “easy”. Clearly not. Pro tip: If you are using an LLM to do translations for you, give it CONTEXT so that the translations are not garbage. Don’t just say “translate x into german”. Explain in sentence or two what it’s translating and who the audience is. Many words are translated differently d…
Re: Show HN: I coded my own JSON translation tool to easily localize my side project
#33Earlier quoted context omitted.
this is a perfect example of why AI prompting is important, even if people roll their eyes and tell you that using an LLM is “easy”. Clearly not. Pro tip: If you are using an LLM to do translations for you, give it CONTEXT so that the translations are not garbage. Don’t just say “translate x into german”. Explain in sentence or two what it’s translating and who the audience is. Many words are translated differently d…
That tip btw isn't limited to LLMs. Blindfolded human translators given single word to translate tend not to do great jobs.
Re: Show HN: I coded my own JSON translation tool to easily localize my side project
#34Earlier quoted context omitted.
That tip btw isn't limited to LLMs. Blindfolded human translators given single word to translate tend not to do great jobs.
For example, Breath of the Wild has a quest-line featuring two NPCs sending love letters via a river, and you can help then get together or something. Only issue is that it's hella creepy in the English translation, while it's much less in the original Japanese one. I don't remember the specifics, but the problem there was the translators were not given context for what they were translating.
In GP's defense, I suppose there are values in butchered translation as a low-budget checkbox checker. LLM do generate a lot of great lipsums.
Re: Show HN: I coded my own JSON translation tool to easily localize my side project
#35plugging my own project: https://github.com/KevinColemanInc/i18n-translate-go Works well for i18njs. The issues I ran into are: chat-gpt didn't translate all the keys in the batch (especially for obscure languages like Laos) and sometimes the chatgpt output invalid unicode (see error in the readme).
Hey! I ran into the same issues. In order to fix the invalid output you can specify to ChatGPT that you want to recieve the response as a JSON formatted text.
I was a bit lazy, so I just inform the user to re-run it manually instead of automatically handling it.
Re: Show HN: I coded my own JSON translation tool to easily localize my side project
#36>Perfect for manage project localization >This credits will never expire. >So if you sync new o modified content There are obvious mistakes in the English version of your website, which is totally bizarre to me, since these errors are absent in the German version. My guess is that the AI actually fixed these errors when translating. I have to say that the German translation is really bad though. "Habe nach einem Onli…
This is in spite of OP apparently being Spanish.