docs: remove configuration instructions at the top of the i18n guide (#29313)
The instructions lead you to think you run this step before setting up your locale. The command is mentioned further in the guide after setup is complete. Closes #26052 PR Close #29313
This commit is contained in:
parent
fe448e8222
commit
f50928f5b7
|
@ -49,18 +49,6 @@ locale id to find the correct corresponding locale data.
|
||||||
|
|
||||||
By default, Angular uses the locale `en-US`, which is English as spoken in the United States of America.
|
By default, Angular uses the locale `en-US`, which is English as spoken in the United States of America.
|
||||||
|
|
||||||
To set your app's locale to another value, use the CLI parameter `--configuration` with the value of the locale id that you want to use:
|
|
||||||
|
|
||||||
<code-example language="sh" class="code-shell">
|
|
||||||
ng serve --configuration=fr
|
|
||||||
</code-example>
|
|
||||||
|
|
||||||
If you use JIT, you also need to define the `LOCALE_ID` provider in your main module:
|
|
||||||
|
|
||||||
<code-example path="i18n/doc-files/app.module.ts" header="src/app/app.module.ts" linenums="false">
|
|
||||||
</code-example>
|
|
||||||
|
|
||||||
|
|
||||||
For more information about Unicode locale identifiers, see the
|
For more information about Unicode locale identifiers, see the
|
||||||
[CLDR core spec](http://cldr.unicode.org/core-spec#Unicode_Language_and_Locale_Identifiers).
|
[CLDR core spec](http://cldr.unicode.org/core-spec#Unicode_Language_and_Locale_Identifiers).
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue