From b43ef923d2daa4dcbe2bf205d884054e7a205bb7 Mon Sep 17 00:00:00 2001 From: Chamath Palihawadana Date: Tue, 19 Mar 2024 01:03:23 +0000 Subject: [PATCH 1/2] fix: Broken links on i18n.en-US.md - Fixed the broken links to the umi locale information page - Fixed the broken GitHub link to the locale plugin --- docs/docs/i18n.en-US.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docs/i18n.en-US.md b/docs/docs/i18n.en-US.md index 799d305cf..e2d63d9b5 100644 --- a/docs/docs/i18n.en-US.md +++ b/docs/docs/i18n.en-US.md @@ -11,7 +11,7 @@ nav: ### Getting Started -Pro implements globalization through the umi plugin [@umijs/plugin-locale](https://github.com/umijs/@umijs/plugin-locale) and is enabled by default. `@umijs/plugin-locale` convention Introduces the corresponding js in src/locales, such as en-US.ts and zh-CN.ts, And do the following configuration in `config/config.ts`: +Pro implements globalization through the umi plugin [@umijs/plugin-locale](https://github.com/umijs/umi/blob/master/packages/plugins/src/locale.ts) and is enabled by default. `@umijs/plugin-locale` convention Introduces the corresponding js in src/locales, such as en-US.ts and zh-CN.ts, And do the following configuration in `config/config.ts`: ```tsx | pure plugins:[ @@ -25,7 +25,7 @@ plugins:[ ] ``` -I am happy to use the function of globalization. See [config](https://umijs.org/plugins/plugin-locale) for detailed configuration)。 +I am happy to use the function of globalization. See [config](https://umijs.org/docs/max/i18n) for detailed configuration)。 `@umijs/plugin-locale` encapsulates [react-intl](https://github.com/yahoo/react-intl), api is basically the same as `react-intl`, and is more convenient to package. All apis are as follows: @@ -96,7 +96,7 @@ class SelectLang extends React.Component { } ``` -More advanced usage can be found in [plugin-locale](https://umijs.org/plugins/plugin-locale). +More advanced usage can be found in [plugin-locale](https://umijs.org/docs/max/i18n). ### Remove globalization From 8c6b57290bbc44ef290d083a0e8846bcfdd41985 Mon Sep 17 00:00:00 2001 From: Chamath Palihawadana Date: Tue, 19 Mar 2024 01:07:29 +0000 Subject: [PATCH 2/2] Linked to en-US pages --- docs/docs/i18n.en-US.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/i18n.en-US.md b/docs/docs/i18n.en-US.md index e2d63d9b5..ceee87f71 100644 --- a/docs/docs/i18n.en-US.md +++ b/docs/docs/i18n.en-US.md @@ -25,7 +25,7 @@ plugins:[ ] ``` -I am happy to use the function of globalization. See [config](https://umijs.org/docs/max/i18n) for detailed configuration)。 +I am happy to use the function of globalization. See [config](https://umijs.org/en-US/docs/max/i18n) for detailed configuration)。 `@umijs/plugin-locale` encapsulates [react-intl](https://github.com/yahoo/react-intl), api is basically the same as `react-intl`, and is more convenient to package. All apis are as follows: @@ -96,7 +96,7 @@ class SelectLang extends React.Component { } ``` -More advanced usage can be found in [plugin-locale](https://umijs.org/docs/max/i18n). +More advanced usage can be found in [plugin-locale](https://umijs.org/en-US/docs/max/i18n). ### Remove globalization