Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 1.06 KB

README.md

File metadata and controls

34 lines (21 loc) · 1.06 KB

Configuration

Environments

To add an environment configuration file, just create a new config.ENV.json file. To use the new environment, you must create the related npm script.

e.g for an integration environment:
  • Create the src/config/config.int.json file
  • Create the related scripts in package.json:
"scripts": {
  "build:int": "rimraf dist && webpack --bail --progress --profile --env int",
  "serve:int": "webpack-dev-server --history-api-fallback --inline --progress --hot --env int"
}

By default, the application is launched in dev environment.

Configuration

Locale translation files are located under /src/config/i18n folder.

angular-translate is configured via the $translateProvider under src/app/app.config.js file.

Asynchronous

All translations from different languages are loaded asynchronously via a static asynchronous loader.

https://angular-translate.github.io/docs/#/guide/12_asynchronous-loading#asynchronous-loading_using-staticfilesloader