Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Broken links on i18n.en-US.md #655

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/docs/i18n.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:[
Expand All @@ -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/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:

Expand Down Expand Up @@ -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/en-US/docs/max/i18n).

### Remove globalization

Expand Down