How to run "ng xi18n" command for separated apps by Multi-App project?

Viewed 577

I do have a multi apps Project.

/src /app1 /... /app2 /...

And I have for app1 already generated translation files i18n which are saved in assets folder... generating them was based on the keys in the HTML files in app1 :

/assets /app1 /i18n /app2

Now I would like to generate separated i18n files for app2. So, when I run following command: ng xi18n --app app2 --output-path assets/i18n, it generates files and also output them in the correct folder.

But the issue is, that it doesn't generate files from and for app2. It generate files from and for 'app1'.

Is there a way how to generate the translation files for specific app in this case?

1 Answers

this works (tested with Angular 8 & CLI v8):

ng xi18n --output-path src/locale --project=app2
Related