docs(aio): updated i18n guide and example (#19975)
This commit is contained in:

committed by
Victor Berchet

parent
18197bd56d
commit
6f05dab2fc
21
aio/tools/example-zipper/customizer/package-json/i18n.json
Normal file
21
aio/tools/example-zipper/customizer/package-json/i18n.json
Normal file
@ -0,0 +1,21 @@
|
||||
{
|
||||
"scripts": [
|
||||
{ "name": "start", "command": "ng serve --aot" },
|
||||
{ "name": "start:fr", "command": "ng serve --aot --i18nFile=src/locale/messages.fr.xlf --i18nFormat=xlf --locale=fr" },
|
||||
{ "name": "build", "command": "ng build --prod" },
|
||||
{ "name": "build:fr", "command": "ng build --prod --i18nFile=src/locale/messages.fr.xlf --i18nFormat=xlf --locale=fr" },
|
||||
{ "name": "test", "command": "ng test" },
|
||||
{ "name": "lint", "command": "ng lint" },
|
||||
{ "name": "e2e", "command": "ng e2e --aot --i18nFile=src/locale/messages.fr.xlf --i18nFormat=xlf --locale=fr" },
|
||||
{ "name": "extract", "command": "ng xi18n --outputPath=src/locale" }
|
||||
],
|
||||
"dependencies": [
|
||||
"web-animations-js"
|
||||
],
|
||||
"devDependencies": [
|
||||
"@angular/cli",
|
||||
"@types/jasminewd2",
|
||||
"karma-coverage-istanbul-reporter",
|
||||
"ts-node"
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user