UNPKG

@corellia/ngx-translation-io

Version:

Add this package to localize your Angular application.<br />

172 lines 5.11 kB
{ "$schema": "./node_modules/@angular/cli/lib/config/schema.json", "version": 1, "newProjectRoot": "projects", "projects": { "angular-tio-example": { "projectType": "application", "schematics": { "@schematics/angular:application": { "strict": true } }, "root": "", "sourceRoot": "src", "prefix": "app", "i18n": { "locales": { "en": { "translation": "src/locale/messages.en.xlf", "baseHref": "/en/" }, "fr": { "translation": "src/locale/messages.fr.xlf", "baseHref": "/fr/" }, "nl": { "translation": "src/locale/messages.nl.xlf", "baseHref": "/nl/" } } }, "architect": { "build": { "builder": "@angular-devkit/build-angular:browser", "options": { "outputPath": "dist", "index": "src/index.html", "main": "src/main.ts", "polyfills": "src/polyfills.ts", "tsConfig": "tsconfig.app.json", "assets": [ "src/favicon.ico", "src/assets" ], "styles": [ "src/styles.css" ], "scripts": [], "i18nMissingTranslation": "error" }, "configurations": { "production": { "localize": [ "fr", "nl", "en" ], "budgets": [ { "type": "initial", "maximumWarning": "500kb", "maximumError": "1mb" }, { "type": "anyComponentStyle", "maximumWarning": "2kb", "maximumError": "4kb" } ], "fileReplacements": [ { "replace": "src/environments/environment.ts", "with": "src/environments/environment.prod.ts" } ], "outputHashing": "all" }, "development": { "localize": false, "buildOptimizer": false, "optimization": false, "vendorChunk": true, "extractLicenses": false, "sourceMap": true, "namedChunks": true }, "en": { "localize": [ "en" ] }, "fr": { "localize": [ "fr" ] }, "nl": { "localize": [ "nl" ] } }, "defaultConfiguration": "production" }, "serve": { "builder": "@angular-devkit/build-angular:dev-server", "configurations": { "production": { "browserTarget": "angular-tio-example:build:production" }, "development": { "browserTarget": "angular-tio-example:build:development" }, "en": { "browserTarget": "angular-tio-example:build:development,en" }, "fr": { "browserTarget": "angular-tio-example:build:development,fr" }, "nl": { "browserTarget": "angular-tio-example:build:development,nl" } }, "defaultConfiguration": "development" }, "extract-i18n": { "builder": "ng-extract-i18n-merge:ng-extract-i18n-merge", "options": { "browserTarget": "angular-tio-example:build", "format": "xlf", "includeContext": true, "outputPath": "src/locale", "targetFiles": [ "messages.en.xlf", "messages.fr.xlf", "messages.nl.xlf" ] } }, "test": { "builder": "@angular-devkit/build-angular:karma", "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", "tsConfig": "tsconfig.spec.json", "karmaConfig": "karma.conf.js", "assets": [ "src/favicon.ico", "src/assets" ], "styles": [ "src/styles.css" ], "scripts": [] } }, "e2e": { "builder": "@angular-devkit/build-angular:protractor", "options": { "protractorConfig": "e2e/protractor.conf.js", "devServerTarget": "angular-tio-example:serve:en" }, "configurations": { "production": { "devServerTarget": "angular-tio-example:serve:production" } } } } } } }