There's a much easier way to translate json cat english.json | sed 's/"\([^"]*\)"/«\1»/g' > french.json
Hey! Good approach, but I want to translate the strings on the JSON file from some source language (spanish for me) into any destination language. So the JSON may be: { "hello": "Hola" } If the destination language is "English" the result must be: { "hello": "Hello" }
Show HN: I coded my own JSON translation tool to easily localize my side project
11–20 of 36 posts
Re: Show HN: I coded my own JSON translation tool to easily localize my side project
#12have you thought about automatically generating json language files from pure html? Say I have an app that does not yet use a language file but just code like Hello World And on-the-fly translation? Say I have a backend that returns english language but I need it to translate it to another language on the fly? It could check whether the translation is available and otherwise generate it and store it. The original tex…
Re: Show HN: I coded my own JSON translation tool to easily localize my side project
#13Strunggle with i18n -> Struggle with i18n ^
Re: Show HN: I coded my own JSON translation tool to easily localize my side project
#14I built it to their spec, for their CMS. They didn't use it, because the scheme they wanted turned out to be too much bother, and they couldn't find translation agencies who would bother with it.
The reality is that if you want to make it easy to keep translations up-to-date, you actually have to support all the (confusing, frustrating) translation infrastructure built around .PO files. Because then you have the support of translation agencies, tooling, even Crowdin etc.
Trying to short-circuit this with clever minimal bespoke JSON and ChatGPT is probably a mistake: this is a job where you will ultimately want actual people with actual multilingual ability working for you, and if you don't use the normal tooling you'll find it difficult to attract contributors even with open source.
Re: Show HN: I coded my own JSON translation tool to easily localize my side project
#15I've built a fairly sophisticated web-based translation tool for an agency's client who demanded it. I built it to their spec, for their CMS. They didn't use it, because the scheme they wanted turned out to be too much bother, and they couldn't find translation agencies who would bother with it. The reality is that if you want to make it easy to keep translations up-to-date, you actually have to support all the (conf…
not only .po files :D XML, i18next json, localizable strings (iOS), ... the list goes on.
Re: Show HN: I coded my own JSON translation tool to easily localize my side project
#16monetizing your solution will likely be a dead end.
the value prop of your solution doesn't match the app you built, and what buyers pay for. for example, machine translating translation files is easier for you to build and developers to use with a cli [0] instead of a web app. there is no value in rendering json in the web app. vscode does a better job at rendering json's.
you could monetize via a web app if you allow non-devs to edit translations. but that's a beast called CAT editor [1], where you need to support all sorts of different file formats. aka, the value of a CAT editor is the file support and ecosystem around it, not the editor itself.
[0] https://inlang.com/m/2qj2w8pu/app-inlang-cli#machine-transla...
[1] https://inlang.com/m/tdozzpar/app-inlang-finkLocalizationEdi...
Re: Show HN: I coded my own JSON translation tool to easily localize my side project
#17>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 Online-JSON-Editor gesucht, aber nur Enterprise-Tools gefunden, die nicht das bieten, was ich brauchte, also...
Ich habe mein eigenes JSON-Übersetzungstool erstellt. "
Dropping the "Ich" at the beginning of the first sentence makes it sound like total slang. And the transition between the paragraphs does not work in German (due to the verb being at a different position compared to English). It sounds extremely clunky.
"Prost!"
This just is not an appropriate translation.
"Hier ist was sie über Quicklang."
This isn't a complete sentence. It misses an essential component.
"Holen Quicklang"
Nonsensical translation.
"lokalisieren Sie Ihre SaaS-, App-, KI-Produkt- oder Website, um Ihnen das weltweite Versenden zu erleichtern."
I don't get what that means. The AI translated shipping as sending. It should have been "um Ihnen den weltweiten Vertrieb zu erleichtern", or something like that.
I usually hate nitpicking on stuff like this and I wouldn't have mentioned it if the product was anything else. But surely you can present your product in a better way.
Re: Show HN: I coded my own JSON translation tool to easily localize my side project
#18Re: Show HN: I coded my own JSON translation tool to easily localize my side project
#19Re: Show HN: I coded my own JSON translation tool to easily localize my side project
#20>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…
It also doesn't sound like this can handle dynamic phrases like "buy {{count}} items"?