I know how to do the translation with Angular XLF files, but it can be configured so that the translation files have the extension XMB.
The steps I took were:
1) Put the i18n tags in the html
2) ng xi18n --output-path src/locale --format=xmb
3) Copy the messages.xmb to another called messesage.it.xmb
4) Config the angular json to new translate
"it": {
"aot": true,
"outputPath": "dist/it/",
"i18nFile": "src/locale/messages.it.xmb",
"i18nFormat": "xmb",
"i18nLocale": "it",
"i18nMissingTranslation": "error"
}
When you using XLF you had to put the translations in the properties, I think that in the case of XMB it is not necessary to set the target and the translation is placed directly in the , example:
<msg id="homeAboutMainTitle">
Sobri Nozotris Italian
</msg>
The problem comes when doing the build gives me an unknown error, does anyone know how to work with the XMB extension?
The error is: An unhandled exception occurred: Unsupported translation file format. See "C:\Users\MyUser\AppData\Local\Temp\ng-u2rhGQ\angular-errors.log" for further details.