Once this is done in your templates, you will need to install the CLI and it's platform-server peer dependency if you haven't already and then execute the ng-x18n
command to generate a translation file:
You can also specify the output folder with the —project
or tag. This folder must exist for it to work.
> ./node_modules/.bin/ng-xi18n -p locale --i18nFormat=xmb
Running ng-xi18n
will compile your code before extracting translation texts. It will output .js and .metadata.json files in your src folders. It might be a good idea to ignore these files when uploading your git repository.