[Idea] Tool to work with i18n files
I'm using your lib in my work and when you have couple hunders entities then it's really starting to be painful to maintain all translations. I was thinking about starting writing tool (or e.g. VS Code plugin?) that will allow to maintain those files. What do you think?
This is an idea that I really like. I have often thought about something similar though I have never had time to execute on it.
At one point I thought about using a google docs spreadsheet as the UI and developing scripts that can import and export the data to the JSON format. Though I think it may get messy for managing pluralisation cases.
That said, a grid-like interface with the translation keys on y-axis and languages across the x-axis is what I had always imagined.
I am guessing one of the challenges you have is to identify when translations are missing for certain languages.
Maybe a first version of the tool would simply be a command line tool that scanned the language files and called out missing translations?
I was thinking about learning Electron.js (https://electronjs.org/) by writing this. I wanted to start from something simple - opening one JSON file, and just allowing to edit it (with support for pluralism etc). Then next would be to creating project. Project would be stored in user home directory and will contain informations where are JSON files with translations for particular project. This way I could see in table columns like: Key, Language A, Language B, Language C, etc. This way writing simple method that will show you which rows are not completed will be easy.
Have you considered supporting gettext PO files?
I like the idea of a tool to detect missing trans.
The PO question has been asked a few times. I would be supportive of a plugin to support PO files but I am reluctant to build support into the core.
I think the tool idea is great. And the kind of approach being discussed would definitely work. @marverix, did you take the idea any further?
Hey, not yet... I'm pretty busy nowadays... :(
is there any tool out there that has support for exporting i18njs files out of the box? The JSON format is so straightforward, i cant believe there is no one out there that supports this :)
@roddeh I wrote the Python implementation of your library: https://github.com/marverix/i18npy
I want to use it as a base for the i18n Tool, which is a topic of this issue. I'm planning to use this opportunity to learn Qt for Python and try to write a cross-platform tool that could help with i18n JSON files.