First round of internationlization

This commit is contained in:
2023-03-09 15:51:00 +01:00
parent 0011b62a5d
commit 0f1c910919
10 changed files with 817 additions and 62 deletions

View File

@@ -9,10 +9,20 @@
"root": "",
"sourceRoot": "src",
"prefix": "app",
"i18n": {
"sourceLocale": "en-US",
"locales": {
"fr": {
"translation": "src/locale/messages.fr.xlf"
}
}
},
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"localize": ["fr"],
"i18nMissingTranslation": "warning",
"outputPath": "dist/app",
"index": "src/index.html",
"main": "src/main.ts",
@@ -53,6 +63,9 @@
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
},
"fr": {
"localize": ["fr"]
}
},
"defaultConfiguration": "production"
@@ -65,14 +78,22 @@
},
"development": {
"browserTarget": "app:build:development"
},
"fr": {
"browserTarget": "App:build:fr"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"builder": "ng-extract-i18n-merge:ng-extract-i18n-merge",
"options": {
"browserTarget": "app:build"
"browserTarget": "app:build",
"format": "xlf2",
"outputPath": "src/locale",
"targetFiles": [
"messages.fr.xlf"
]
}
},
"test": {