mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
docs: add clarification for sourceLocale location in angular.json (#59783)
PR Close #59783
This commit is contained in:
parent
5762cdd7fd
commit
e725c4774c
1 changed files with 12 additions and 1 deletions
|
|
@ -47,7 +47,18 @@ By default, Angular uses `en-US` as the source locale of your project.
|
|||
To change the source locale of your project for the build, complete the following actions.
|
||||
|
||||
1. Open the [`angular.json`][GuideWorkspaceConfig] workspace build configuration file.
|
||||
1. Change the source locale in the `sourceLocale` field.
|
||||
2. Add or modify the `sourceLocale` field inside the `i18n` section:
|
||||
```json
|
||||
{
|
||||
"projects": {
|
||||
"your-project": {
|
||||
"i18n": {
|
||||
"sourceLocale": "ca" // Use your desired locale code
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## What's next
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue