From c7c7f9fbe8de0a8b53fbc7a03f8b156028ea1463 Mon Sep 17 00:00:00 2001 From: Alan Date: Tue, 27 Aug 2019 10:23:10 +0200 Subject: [PATCH] style: align i18n angular config (#32334) PR Close #32334 --- aio/content/guide/i18n.md | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/aio/content/guide/i18n.md b/aio/content/guide/i18n.md index a55bc32a6b..42d9b6ed8e 100644 --- a/aio/content/guide/i18n.md +++ b/aio/content/guide/i18n.md @@ -707,22 +707,24 @@ the CLI configuration file, `angular.json`. "i18nLocale": "fr", "i18nMissingTranslation": "error", } -// ... -"serve": { - "builder": "@angular-devkit/build-angular:dev-server", - "options": { - "browserTarget": "my-project:build" + } }, - "configurations": { - "production": { - "browserTarget": "my-project:build:production" + ... + "serve": { + "builder": "@angular-devkit/build-angular:dev-server", + "options": { + "browserTarget": "my-project:build" }, - "fr": { - "browserTarget": "my-project:build:fr" + "configurations": { + "production": { + "browserTarget": "my-project:build:production" + }, + "fr": { + "browserTarget": "my-project:build:fr" + } } } -}, - +} ``` The same configuration options can also be provided through the CLI with your existing `production` configuration.