From ceffdeda693eb4157844ea448139966cb82990ac Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Sun, 17 Apr 2022 12:12:20 +0300 Subject: [PATCH] docs(common): fix links to locales in i18n guides (#45661) In PR #42230, the locale file generation process was modified so that generated locale files are no longer checked into the repository. Update a few links in the docs that pointed to the previously checked in files to point to other places where the files exist. PR Close #45661 --- aio/content/guide/i18n-optional-import-global-variants.md | 5 ++--- aio/content/guide/i18n-optional-manual-runtime-locale.md | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/aio/content/guide/i18n-optional-import-global-variants.md b/aio/content/guide/i18n-optional-import-global-variants.md index 7bfc6074d75..b8135150683 100644 --- a/aio/content/guide/i18n-optional-import-global-variants.md +++ b/aio/content/guide/i18n-optional-import-global-variants.md @@ -11,7 +11,7 @@ ng build --localize The `@angular/common` package on npm contains the locale data files. -Global variants of the locale data are available in [`@angular/common/locales/global`][GithubAngularAngularTreeMasterPackagesCommonLocalesGlobal]. +Global variants of the locale data are available in [`@angular/common/locales/global`][UnpkgBrowseAngularCommonLocalesGlobal]. ## `import` example for French @@ -26,8 +26,7 @@ The following example imports the global variants for French \(`fr`\). -[GithubAngularAngularTreeMasterPackagesCommonLocales]: https://github.com/angular/angular/tree/master/packages/common/locales "angular/packages/common/locales | angular/angular | GitHub" -[GithubAngularAngularTreeMasterPackagesCommonLocalesGlobal]: https://github.com/angular/angular/tree/master/packages/common/locales/global "angular/packages/common/locales/global | angular/angular | GitHub" +[UnpkgBrowseAngularCommonLocalesGlobal]: https://unpkg.com/browse/@angular/common/locales/global "@angular/common/locales/global | Unpkg" diff --git a/aio/content/guide/i18n-optional-manual-runtime-locale.md b/aio/content/guide/i18n-optional-manual-runtime-locale.md index 0af43a37c2b..3535b98d65b 100644 --- a/aio/content/guide/i18n-optional-manual-runtime-locale.md +++ b/aio/content/guide/i18n-optional-manual-runtime-locale.md @@ -9,7 +9,7 @@ The [Angular CLI][AioCliMain] automatically includes the locale data and sets th To manually set the runtime locale of an application to one other than the automatic value, complete the following actions. -1. Search for the Unicode locale ID in the language-locale combination in [the Angular repository][GithubAngularAngularTreeMasterPackagesCommonLocales]. +1. Search for the Unicode locale ID in the language-locale combination in the [`@angular/common/locales/`][UnpkgBrowseAngularCommonLocales] directory. 1. Set the [`LOCALE_ID`][AioApiCoreLocaleId] token. The following example sets the value of `LOCALE_ID` to `fr` for French. @@ -25,7 +25,7 @@ The following example sets the value of `LOCALE_ID` to `fr` for French. -[GithubAngularAngularTreeMasterPackagesCommonLocales]: https://github.com/angular/angular/tree/master/packages/common/locales "angular/packages/common/locales | angular/angular | GitHub" +[UnpkgBrowseAngularCommonLocales]: https://unpkg.com/browse/@angular/common/locales "@angular/common/locales | Unpkg"