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.
- 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.
Locale translation files are located under /src/config/i18n
folder.
angular-translate is configured via the $translateProvider
under src/app/app.config.js
file.
All translations from different languages are loaded asynchronously via a static asynchronous loader.