docs(aio): updated i18n guide and example (#19975)

This commit is contained in:
Olivier Combe
2017-11-02 22:22:09 +01:00
committed by Victor Berchet
parent 18197bd56d
commit 6f05dab2fc
30 changed files with 811 additions and 797 deletions

View 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"
]
}