mirror of
https://gitlab.com/novaloop-oss/angular/localization.git
synced 2025-12-06 04:51:52 +00:00
feat: adds localization to newly created angular app
This commit is contained in:
31
angular.json
31
angular.json
@@ -13,6 +13,12 @@
|
||||
"root": "",
|
||||
"sourceRoot": "src",
|
||||
"prefix": "app",
|
||||
"i18n": {
|
||||
"sourceLocale": "de",
|
||||
"locales": {
|
||||
"en": "src/locales/messages.en.xlf"
|
||||
}
|
||||
},
|
||||
"architect": {
|
||||
"build": {
|
||||
"builder": "@angular-devkit/build-angular:browser",
|
||||
@@ -40,6 +46,7 @@
|
||||
"with": "src/environments/environment.prod.ts"
|
||||
}
|
||||
],
|
||||
"localize": true,
|
||||
"optimization": true,
|
||||
"outputHashing": "all",
|
||||
"sourceMap": false,
|
||||
@@ -60,6 +67,16 @@
|
||||
"maximumError": "10kb"
|
||||
}
|
||||
]
|
||||
},
|
||||
"de": {
|
||||
"localize": [
|
||||
"de"
|
||||
]
|
||||
},
|
||||
"en": {
|
||||
"localize": [
|
||||
"en"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -71,6 +88,12 @@
|
||||
"configurations": {
|
||||
"production": {
|
||||
"browserTarget": "localization:build:production"
|
||||
},
|
||||
"de": {
|
||||
"browserTarget": "localization:build:de"
|
||||
},
|
||||
"en": {
|
||||
"browserTarget": "localization:build:en"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -123,6 +146,10 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}},
|
||||
"defaultProject": "localization"
|
||||
}
|
||||
},
|
||||
"defaultProject": "localization",
|
||||
"cli": {
|
||||
"analytics": false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user