0

I am trying to create individual packages for each language.

I have used the below command for my angular 8 application which works fine. But when I use the same command in Angular. The translation file in that location. I am not sure why it is throwing that error.

ng build  --aot=true --prod --base-href=/Assignment/fr/ --i18n-file=src/locale/messages.fr.xlf --i18n-format=xlf --i18n-locale=fr --outputPath=../wwwroot/fr
Daniel Habenicht
  • 2,133
  • 1
  • 15
  • 36
indra257
  • 66
  • 3
  • 24
  • 50
  • What do you mean by "when I use the same command in Angular", is the version missing from this statement? – Akshay Rana Oct 30 '19 at 15:09
  • @AkshayRana yes. sorry, it is Angular 8 – indra257 Oct 30 '19 at 18:45
  • 3
    It's confusing. You wrote that it works fine for angular 8. Did you mean that it worked fine for a previous version? – David Nov 02 '19 at 11:32
  • 1
    Just in case you find it useful we use in project package called `ngx-translate` which allows one have one app with multiple translation files which are loaded on demand – Sergey Nov 04 '19 at 17:23

1 Answers1

0

As a alternative solution I can suggest you use solution this will more easier than ngx-translate and also u can use any language as you wish, and also efficient

see the previous stack answer

DeC
  • 2,226
  • 22
  • 42