Up to angular 8 I was used to use --base-href /en/ --i18n-file=src/locale/messages.en.xlf --i18n-format=xlf --i18n-locale=en
for example to generate one application per language. This approach or the i18n-options are now depreciated.
In version 9 the i18n is integrated into a package (@angular/localize
) and a --localize
option in the build process. I tried multiple ways and the build process is now working. In the documentation there is a lot of information about the new approach, but nowhere, how to test or switch between languages within the application.