Closed kyubisation closed 4 years ago
This is by design. The ng xi18n --ivy
only processes the application files.
It is possible to process libraries for their i18n messages using the standalone extractor tool.
node_modules/.bin/localize-extract -s "node_modules/**/*.js" -f xlf -o library-messages.xlf
We are looking at how this can be incorporated into the CLI.
Ok, that is unfortunate. Nevertheless thanks for the answer and the workaround. π
I quickly tested this with our code base and it works as expected. We will adapt angular-t9n to deal with this. Thanks again for the quick answer. π
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
π Bug report
Command (mark with an
x
)Is this a regression?
This works with
ng xi18n
Description
ng xi18n --ivy
does not extract i18n tokens from libraries, whereasng xi18n
is able to extract it from libraries compiled with ViewEngine.π¬ Minimal Reproduction
https://github.com/kyubisation/xi18n-ivy-library-viewengine Run
npm ci && npm test
(which build the ViewEngine and Ivy libraries and runs xi18n) and check messages.xlfπ Your Environment
Anything else relevant?