-
Locales may not support some pluralization categories
+
Locales might not support some pluralization categories
Many locales don't support some of the pluralization categories.
For example, the default locale (`en-US`) and other locales (such as `es`) have very simple `plural()` functions that don't support the `few` category.
@@ -450,9 +448,7 @@ For example, to create a French translation file, follow these steps:
3. Rename the copy to `messages.fr.xlf` for the French language (`fr`) translation.
Send this translation file to the translator.
-Repeat the above steps for each language you want to add to your application.
-
-
+Repeat the preceding steps for each language you want to add to your app.
{@a translate-text-nodes}
@@ -662,9 +658,8 @@ The following example displays the `"localize"` option set to `true` in `angular
Due to the deployment complexities of i18n and the need to minimize rebuild time, the development server only supports localizing a single locale at a time.
-If you set the `"localize"` option to `true`, define more than one locale, and use `ng serve`; then an error occurs.
-If you want to develop against a specific locale, set the `"localize"` option to a specific locale.
-For example, for French (`fr`), specify `"localize": ["fr"]`.
+Setting the `"localize"` option to `true` causes an error when using `ng serve` if more than one locale is defined.
+Setting the option to a specific locale, such as `"localize": ["fr"]`, can work if you want to develop against a specific locale (such as `fr`).
@@ -672,18 +667,14 @@ The CLI loads and registers the locale data, places each generated version in a
For each application variant the `lang` attribute of the `html` element is set to the locale.
The CLI also adjusts the HTML base HREF for each version of the application by adding the locale to the configured `baseHref`.
-Set the `"localize"` property as a shared configuration to effectively inherit for all the configurations.
-Also, set the property to override other configurations.
-
-
+Set the `"localize"` property as a shared configuration that all the configurations effectively inherit (or can override).
{@a localize-build-command}
### Build from the command line
-Also, use the `--localize` option with the [`ng build`][AioCliBuild] command and your existing `production` configuration.
-The CLI builds all locales defined in the build configuration.
-If you set the locales in build configuration, it is similar to when you set the `"localize"` option to `true`.
+Use the `--localize` option with the [`ng build`][AioCliBuild] command and your existing `production` configuration.
+The CLI builds all locales defined in the build configuration, which is similar to setting the `"localize"` option to `true` as described in the previous section.
For more information about how to set the locales, see [Generate application versions for each locale][AioGuideI18nLocalizeGenerate].
@@ -694,8 +685,7 @@ For more information about how to set the locales, see [Generate application ver
### Apply specific build options for just one locale
-To apply specific build options to only one locale, specify a single locale to create a custom locale-specific configuration.
-The following example displays a custom locale-specific configuration using a single locale.
+To apply specific build options to only one locale, create a custom locale-specific configuration by specifying a single locale as shown in the following example:
@@ -710,7 +700,7 @@ Use the CLI development server (`ng serve`) with only a single locale.
-For production builds, use configuration composition to run both configurations.
+For production builds, use configuration composition to execute both configurations: