feat: adds localization to newly created angular app

This commit is contained in:
Markus Huggler
2020-11-09 23:23:35 +01:00
parent d004f0a59e
commit 7f72252f33
8 changed files with 370 additions and 708 deletions

View File

@@ -7,7 +7,18 @@
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
"e2e": "ng e2e",
"translate-en": "poedit src/locales/messages.en.xlf",
"extract-i18n": "ng xi18n localization --output-path src/locales && xliffmerge",
"xliffmerge": "./node_modules/ngx-i18nsupport/dist/xliffmerge"
},
"xliffmergeOptions": {
"srcDir": "src/locales",
"genDir": "src/locales",
"defaultLanguage": "de",
"languages": [
"en"
]
},
"private": true,
"dependencies": {
@@ -16,9 +27,11 @@
"@angular/compiler": "~10.0.0",
"@angular/core": "~10.0.0",
"@angular/forms": "~10.0.0",
"@angular/localize": "^10.0.14",
"@angular/platform-browser": "~10.0.0",
"@angular/platform-browser-dynamic": "~10.0.0",
"@angular/router": "~10.0.0",
"ngx-i18nsupport": "^0.17.1",
"rxjs": "~6.5.5",
"tslib": "^2.0.0",
"zone.js": "~0.10.3"