Adding a translation at runtime?
rdeslonde-eichleay opened this issue · 6 comments
Our customers can provide custom messages to their customers on our platform. So we want to enable them to provide their own translations of their custom messages. So at runtime, I would like to add their translation to the catalog. Is that possible?
I think this answers my question?
https://angular-gettext.rocketeer.be/dev-guide/manual-setstrings/
But will setStrings overwrite existing language translation, or just add them to the existing catalog for a given language?
@rdeslonde-eichleay yes it does, that's exactly the way to go!
If I already have a bunch of translations from a po file, and I use setStrings, will it clear the translations that already exist and set the new ones, or will it just set the new ones, adding them to the existing set?
Sweet, thanks. This is an awesome library. Thanks for maintaining it.
Thanks, glad you like it. Don't have too much time for it nowadays, but it doesn't ask for much either.
Spread the word!