Check out the package first:
@pulimoodan/localiser
Features
- Translate i18n locales with one command
- Translate only required languages (only the ones we changed)
- Translate only the required namespaces (yeah, same as above: only the ones we changed)
- Translate any language, with any iso codes: like pt or pt-BR (because, we're using AI. Not a flex btw)
Concerns to be addressed
- Optimise the Open AI requests with the only the required keys, instead of whole json file
- An init command to generate the project configuration
- Doesn't support different types of folder structures, only: lang/namespace.json
- Configure different types of models
Contribute (or detract)
If you've got an idea to improve or play around with this:
- Fork the repo
- Work your magic, cook well
- Slam a PR
- And I will think about it (kidding, we need those contributions)
Link to GitHub repo: Localiser
Top comments (1)
This is actually genius, Akbar. The "translate only the changed keys, not the whole JSON file" optimization is exactly the kind of detail that separates good tools from great ones.
I'm a 12-year-old solo dev from Tamil Nadu building KODA (an AI coding mentor) on my Android phone. Right now my system prompt tells the AI to match the user's language, but I've been thinking about proper i18n support - especially for Tamil, Hindi, and other Indian languages.
This tool would be perfect for:
The "only required namespaces" feature is smart too - if I add a new feature, I don't need to re-translate my entire app, just the new strings.
One question: does it support custom API endpoints? I'm using Groq instead of OpenAI for cost reasons, and wondering if I could plug in my Groq key instead.
Great work on this - definitely something I'll consider for KODA's next update! 🚀