To compile a translated app, I do:
ng build -bh=fr --i18nFile=src/i18n/messages.fr.xlf --locale=fr --output-path=dist/fr
If I have a third-party component with messages that have been localized in French, is there a way to include its translations in the final output as well? Or do I need to ensure that they're translated in the consuming application and pass them into the component.
In particular, if I have my-app-1 and my-app-2, can I readily import @my/component-module along with its own messages (/node_modules/@my/component-module/i18n/messages.fr.xlf)?
Simply adding the strings to my-app-1/src/i18n/messages.fr.xlf and my-app-2/src/i18n/messages.fr.xlf and passing them as inputs to @my/component-module is less than ideal, as it means I now have to maintain those strings in 3 separate places.