This needs to integrate with translation management formats/services instead of an LLM—it might work for some cases but will absolutely butcher jargon translations! In its current state it is worse than useless for sites managing content geared for technical/professional audiences.
Perhaps I could've communicated this better, but we've built Lingo.dev Compiler for web apps and user interfaces, not for technical/professional content. And since we had to exclude certain terms like "Lingo.dev Compiler" itself from i18n, we've shipped support for data-lingo-skip and data-lingo-override- as well. Regarding using LLMs for production content localization, I recommend checking out how Reddit translates…
Show HN: Localize React apps without rewriting code
61–70 of 75 posts
Re: Show HN: Localize React apps without rewriting code
#62Earlier quoted context omitted.
...or having an "override" file that allows manual specification regardless about what the LLM spits out.
we've added support for both these cases actually! :) 1. `data-lingo-skip` - excludes a jsx node from i18n 2. `data-lingo-override- ` - overrides version in language with a custom value 3. also `data-lingo-context` (docs, perhaps, aren't yet the best, but here they are: https://lingo.dev/compiler/configuration/advanced )
Re: Show HN: Localize React apps without rewriting code
#63Earlier quoted context omitted.
I would rethink this decision. Localization requires understanding intent and adjusting terminology to apply non-literal interpretations to convey meaning; this project uses an auto-translator.
Interesting perspective. Unsure if I communicated it well, but unlike auto-translators such as Google Translate, this project leverages a context-aware LLM to recreate the meaning and intent of the original text in another language.
I think you are just misrepresenting the capabilities of an auto-translator LLM.
Re: Show HN: Localize React apps without rewriting code
#64Re: Show HN: Localize React apps without rewriting code
#65I worked on a project at Patreon to do something similar many years ago. We used a babel plugin to do the translation with as few changes to the code base as possible. This application does not handle many important considerations for translation. Such as pluralization. In many languages there are multiple more ways to pluralize words. Russian has many different ways to pluralize. More problems will occur when you ha…
I think modern Japanese is LTR, but besides that - I believe the project you worked in the past solves an important problem. Besides pluralization (and e.g. Arabic having 6 forms zero/one/two/few/many/other), turned out number internationalization and currency conversion are big next challenges the community wants to address next. > create ICU compliant JSON. I think this is an excellent idea. I have a feeling in the…
Re: Show HN: Localize React apps without rewriting code
#66Please, please, please, do not use auto translators to localize your pages. There's nothing worse than an half-assed translation that was obviously made by a machine. Auto-translated sentences are awkward and I feel extremely insulted every time someone chooses to impose this garbage watered-down version of their products on me. Hire a translator or don't localize your site.
And just say "sorry" to all the people asking you for translation of your great product ?
Yeah, I'd prefer no translation over bad translation.
Re: Show HN: Localize React apps without rewriting code
#67Please, please, please, do not use auto translators to localize your pages. There's nothing worse than an half-assed translation that was obviously made by a machine. Auto-translated sentences are awkward and I feel extremely insulted every time someone chooses to impose this garbage watered-down version of their products on me. Hire a translator or don't localize your site.
Would you literally rather have nothing than a poor translation?
Also, if a website offers a language I take that as an indication that the organization is prepared to deal with speakers of that language/people from the country in question (customer support, shipping, regional/legal concerns). Whether the site offers a certain language is a useful signal to figure this out quickly, and if poking around reveals machine translation into dozens of languages, it's a signal that they're probably not prepared to provide reliable services/support.
Re: Show HN: Localize React apps without rewriting code
#68> essentially rewriting your entire codebase before you can even start translating I’d say it just takes a few prompts in Cursor or a similar tool. Then, you simply ask it to translate into other languages. Here’s how I did it for one of my projects - a quantum optics simulator: https://p.migdal.pl/blog/2025/04/vibe-translating-quantum-fl... Doing it at runtime might make sense for a typical translation. But for scie…
Yep, Cursor indeed helps! (Here's a battle tested prompt example we found working pretty nicely with claude o3 + claude 3.7: https://lingo.dev/cli/extract-keys ) > Then, you simply ask it to translate into other languages. Yep! With Lingo.dev Compiler though, we were scratching our own itch, and particularly it was maintenance of the localized code. Turned out, extracting is fine, but then further down the road we fo…
Thank you for making it easier to localize content. Wishing you well on the path.
Re: Show HN: Localize React apps without rewriting code
#69I thought this was awesome until you included an LLM into the mix. I hate the current react i18n solutions, and the fact that they only work in runtime, as opposed to Angular’s build time i18n solution. If your compiler could plugin to existing localization workflows in large organizations to at would be great (ie: extraction, load from configuration).
Thanks for the perspective! We support larger org workflows with the Lingo.dev Engine product, but that's not the point: Lingo.dev Compiler is unrelated to that, 100% free and open source. We started with a thought - what if i18n is actually meant to be build-time, LLM-powered, and that's enough for it to be precise? Not today, but in the future, it feels like this type of solution could elegantly solve i18n at scale…
Re: Show HN: Localize React apps without rewriting code
#70Earlier quoted context omitted.
I think modern Japanese is LTR, but besides that - I believe the project you worked in the past solves an important problem. Besides pluralization (and e.g. Arabic having 6 forms zero/one/two/few/many/other), turned out number internationalization and currency conversion are big next challenges the community wants to address next. > create ICU compliant JSON. I think this is an excellent idea. I have a feeling in the…
> I think modern Japanese is LTR Depends on the medium. EPUB 2.0 (and later revisions) specifically supports vertical RTL text for use-cases like Japanese novels. Additionally, many novel reading websites support toggling between vertical and horizontal text. Vertical text implicitly switches to RTL text direction. Of course, this is not a general use case. But saying "modern Japanese is LTR" is not quite accurate. C…