Importing the completed translations files into your Application
There are two ways to do this: You can use the JiT (Just in Time) Compiler or AoT (Ahead-of-Time) Compiler. Regardless of the approach, you will need to provide the Angular compiler with
- the translation file(s)
- the translation file format
- the Locale Id (autogenerated by ng-xi18n and can be found in the translation file)
原文: https://angular-2-training-book.rangle.io/handout/i18n/import-translation-files.html