From e725c4774c19de41db7d4a6290599ab163e12b2d Mon Sep 17 00:00:00 2001 From: Gerard Esteve Date: Wed, 29 Jan 2025 17:02:57 +0100 Subject: [PATCH] docs: add clarification for sourceLocale location in angular.json (#59783) PR Close #59783 --- adev/src/content/guide/i18n/locale-id.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/adev/src/content/guide/i18n/locale-id.md b/adev/src/content/guide/i18n/locale-id.md index e298075a168..949dd974596 100644 --- a/adev/src/content/guide/i18n/locale-id.md +++ b/adev/src/content/guide/i18n/locale-id.md @@ -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