I'm using ´ng xi18n --output-path locale --out-file translations.en.xlf´ in the CLI to generate an xlf file, as per the the official Angular documentation - https://angular.io/guide/i18n. That all works well.
The docu then further suggests to manually copy and rename the file for each required localization - so e.g. ´translations.fr.xlf´ for french.
I've done that, ending up with 2 files: ´translations.en.xlf´ and ´translations.fr.xlf´
I've then continued working on the application, adding more i18n tags. Now I'm trying to update the xlf files to include the new tags, without overwriting the targets (i.e. french translations) I've already got in ´translations.fr.xlf´.
How can I do that?
So far I've tried:
- ´ng xi18n --output-path locale --out-file translations.en.xlf´ - which only updates the english source xlf, not holding any targets
- ´ng xi18n --output-path locale --out-file translations.fr.xlf´ - which overwrites all targets in my french localization file
- Manually merging new tags from the en file into the fr file, which is cumbersome
I'm sure there's an easy way to achieve what I'm trying to do but the Angular docu doesn't go into detail for that specific problem.