Comment on page
Extracting translation text using the Angular CLI
> ./node_modules/.bin/ng xi18n
By default, an XLIFF 1.2 file is created but you use can append
--i18nFormat=xmbif you would prefer the XMB format. The file created is the file that you would share with translators who would fill in the translations using an XLIFF file editor like Poedit. Once the translations are done, the translation files are returned back to you.
You can also specify the output folder with the
--outputPathtag. If you also set the source language or locale code with
--i18nLocale, the source language will set in the resulting XLIFF document. See the Angular CLI Command Reference for all flags.
> ./node_modules/.bin/ng xi18n --outputPath locale --i18nFormat=xmb
The above command will output a *.xmb file in the