ngx-translate-po-http-loader icon indicating copy to clipboard operation
ngx-translate-po-http-loader copied to clipboard

MultiPoTranslationHttpLoader

Open sergiojoker11 opened this issue 6 years ago • 4 comments

Extract an abstract class with common functionality. Create a loader that loads from n-translation files and merge the translations. In case of key collision, the last resource passed in (its translations) has more priority. Thus, the developer still has the control on priorities. The existing TranslatePoHttpLoader functionality is untouched.

This allows to keep your translations organised (per module/library in subfolders) within the main application. (Some organization might want to keep the translations centralised).

Potential/desired improvement Merge strategies.

sergiojoker11 avatar Nov 23 '18 11:11 sergiojoker11

Please, my organization is holding on this. Could anyone have a quick look?

sergiojoker11 avatar Nov 26 '18 10:11 sergiojoker11

I love this one! Hope it will be merged!

RignonNoel avatar Dec 07 '18 14:12 RignonNoel

@RignonNoel in the meantime, I had to publish the package in order to unblock my team. Feel free to use it, it is public. https://www.npmjs.com/package/@flexys/ngx-translate-po-http-loader

sergiojoker11 avatar Dec 07 '18 14:12 sergiojoker11

@sergiojoker11 Thanks! I will wait a little bit since this feature is not an urgency for me but i will definitively use it in the future. It's really more easy to understand for translators if files are splitted!

RignonNoel avatar Dec 07 '18 15:12 RignonNoel