Romanchuk / angular-i18next

angular v10+ integration with i18next v19.4+
MIT License
131 stars 33 forks source link

i18n automatic translate (make target) angular9 #54

Closed worthyclover closed 4 years ago

worthyclover commented 4 years ago

I cannot create the document "messages.ru.xlf" with the "target" automatically.

I still have to add it manually.

my html with i18n:

<h1 i18n = "main header | Friendly welcoming message"> Welcome! </h1>

then I made the command: ng xi18n --i18n-locale ru --out-file locale / messages.ru.xlf

is there a way to automatically translate the html "welcome"?

because I don't want to add a target manually

this is just an example. later I will have a project with lots of language and text and it will not be possible to translate the whole .xlf document each time with each change and therefore each time we order: ng xi18n --i18n-locale ru --out-file locale / messages.ru.xlf

can you help me?