ttag-org / ttag

:orange_book: simple approach for javascript localization
https://ttag.js.org/
MIT License
337 stars 40 forks source link

How to handle duplicates in development mode? #282

Open dasbego opened 4 months ago

dasbego commented 4 months ago

Hi, I've come to an issue where I get a message in console saying that my translations file could not be loaded. The error stack is not very informative but after doing more troubleshooting I get to see an error message saying that I have duplicates in my *.po file. I went to check the validation here and I can see that this is only skipped on production, so I don't have my translations working in dev mode.

I wonder how I should handle this error, the translations in POEditor has common access to various members within the organization, most of them don't know that adding a certain wildcard/template duplicate could lead to translation loss. This has happened over the last few ayears and I don't plan to go over thousands of translations only to remove duplicates and get it working in my local.

Note: I consume *.po.json files at runtime.

How can I get around this issue?