A simple workflow for translation keys typed with TypeScript
Since my web projects use typed translation keys, my work in progress would typically add unwanted TypeScript errors every time I added a new translation key, and that would annoy me a lot.
So I wrote a little script that watches a temporary JSON translation file (as used by Lokalise) and merges it into all the translation files of the languages that are supported every time it changes.
This way, once I am done with a feature, I can upload the new keys all at once in Lokalise’s upload tool. ๐ป