mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs: add clarification for sourceLocale location in angular.json (#59783)
PR Close #59783
This commit is contained in:
committed by
Alex Rickabaugh
parent
5762cdd7fd
commit
e725c4774c
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user