-
-
Save rdlabo/6a5c96ebaffd0996f38e521edbdb500a to your computer and use it in GitHub Desktop.
angular.json sample - Angular i18n
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "./node_modules/@angular/cli/lib/config/schema.json", | |
"version": 1, | |
"newProjectRoot": "projects", | |
"projects": { | |
"app": { | |
"root": "", | |
"sourceRoot": "src", | |
"projectType": "application", | |
"prefix": "app", | |
"schematics": {}, | |
"i18n":{ | |
"sourceLocale": { | |
"code": "ja", | |
"baseHref": "/ja/" | |
}, | |
"locales": { | |
"en-US": { | |
"translation": "src/locale/messages.en-US.json", | |
"baseHref": "/en-us/" | |
} | |
} | |
}, | |
"architect": { | |
"build": { | |
"builder": "@angular-devkit/build-angular:browser", | |
"options": { | |
"outputPath": "www", | |
"index": "src/index.html", | |
"main": "src/main.ts", | |
"polyfills": "src/polyfills.ts", | |
"tsConfig": "tsconfig.app.json", | |
"assets": [ | |
{ | |
"glob": "**/*", | |
"input": "src/assets", | |
"output": "assets" | |
}, | |
{ | |
"glob": "**/*.svg", | |
"input": "node_modules/ionicons/dist/ionicons/svg", | |
"output": "./svg" | |
}, | |
"src/manifest.webmanifest" | |
], | |
"styles": [ | |
{ | |
"input": "src/theme/variables.scss" | |
}, | |
{ | |
"input": "src/global.scss" | |
} | |
], | |
"scripts": [], | |
"vendorChunk": true, | |
"extractLicenses": false, | |
"buildOptimizer": false, | |
"sourceMap": true, | |
"optimization": false, | |
"namedChunks": true | |
}, | |
"configurations": { | |
"production": { | |
"fileReplacements": [ | |
{ | |
"replace": "src/environments/environment.ts", | |
"with": "src/environments/environment.prod.ts" | |
} | |
], | |
"optimization": true, | |
"outputHashing": "all", | |
"sourceMap": false, | |
"namedChunks": false, | |
"aot": true, | |
"extractLicenses": true, | |
"vendorChunk": false, | |
"buildOptimizer": true, | |
"budgets": [ | |
{ | |
"type": "initial", | |
"maximumWarning": "2mb", | |
"maximumError": "5mb" | |
} | |
], | |
"serviceWorker": true, | |
"ngswConfigPath": "ngsw-config.json" | |
}, | |
"ci": { | |
"progress": false | |
}, | |
"en": { | |
"localize": ["en-US"], | |
"i18nMissingTranslation": "warning", | |
"aot": true | |
} | |
}, | |
"defaultConfiguration": "" | |
}, | |
"serve": { | |
"builder": "@angular-devkit/build-angular:dev-server", | |
"options": { | |
"browserTarget": "app:build" | |
}, | |
"configurations": { | |
"production": { | |
"browserTarget": "app:build:production" | |
}, | |
"ci": {}, | |
"en": { | |
"browserTarget": "app:build:en" | |
} | |
} | |
}, | |
"extract-i18n": { | |
"builder": "@angular-devkit/build-angular:extract-i18n", | |
"options": { | |
"browserTarget": "app:build" | |
} | |
}, | |
"test": { | |
"builder": "@angular-devkit/build-angular:karma", | |
"options": { | |
"main": "src/test.ts", | |
"polyfills": "src/polyfills.ts", | |
"tsConfig": "tsconfig.spec.json", | |
"karmaConfig": "karma.conf.js", | |
"styles": [], | |
"scripts": [], | |
"assets": [ | |
{ | |
"glob": "favicon.ico", | |
"input": "src/", | |
"output": "/" | |
}, | |
{ | |
"glob": "**/*", | |
"input": "src/assets", | |
"output": "/assets" | |
}, | |
"src/manifest.webmanifest" | |
] | |
}, | |
"configurations": { | |
"ci": { | |
"progress": false, | |
"watch": false | |
} | |
} | |
}, | |
"lint": { | |
"builder": "@angular-eslint/builder:lint", | |
"options": { | |
"lintFilePatterns": [ | |
"src/**/*.ts", | |
"src/**/*.html" | |
] | |
} | |
}, | |
"e2e": { | |
"builder": "@angular-devkit/build-angular:protractor", | |
"options": { | |
"protractorConfig": "e2e/protractor.conf.js", | |
"devServerTarget": "app:serve" | |
}, | |
"configurations": { | |
"production": { | |
"devServerTarget": "app:serve:production" | |
}, | |
"ci": { | |
"devServerTarget": "app:serve:ci" | |
} | |
} | |
}, | |
"ionic-cordova-build": { | |
"builder": "@ionic/angular-toolkit:cordova-build", | |
"options": { | |
"browserTarget": "app:build" | |
}, | |
"configurations": { | |
"production": { | |
"browserTarget": "app:build:production" | |
} | |
} | |
}, | |
"ionic-cordova-serve": { | |
"builder": "@ionic/angular-toolkit:cordova-serve", | |
"options": { | |
"cordovaBuildTarget": "app:ionic-cordova-build", | |
"devServerTarget": "app:serve" | |
}, | |
"configurations": { | |
"production": { | |
"cordovaBuildTarget": "app:ionic-cordova-build:production", | |
"devServerTarget": "app:serve:production" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"cli": { | |
"analytics": "59b5a316-58e8-43c8-a5c8-cab7cb451d9d", | |
"schematicCollections": [ | |
"@ionic/angular-toolkit" | |
] | |
}, | |
"schematics": { | |
"@ionic/angular-toolkit:component": { | |
"styleext": "scss" | |
}, | |
"@ionic/angular-toolkit:page": { | |
"styleext": "scss" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment