Skip to content

Commit c6f3e2c

Browse files
committed
fix list
1 parent 5ab303d commit c6f3e2c

File tree

2 files changed

+30
-20
lines changed

2 files changed

+30
-20
lines changed

docs/react/i18n.en-US.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ If your language is not in above list, feel free to create a locale package base
103103

104104
Do it step by step:
105105

106-
1. Fork `antd` and git clone to local, switch to `feature` branch, pull it to make sure it's up-to-date, create a new branch based on `feature` branch, all work will be done in it.
106+
1 - Fork `antd` and git clone to local, switch to `feature` branch, pull it to make sure it's up-to-date, create a new branch based on `feature` branch, all work will be done in it.
107107

108108
```bash
109109
git clone [email protected]:<your organization>/ant-design.git
@@ -112,17 +112,20 @@ git remote add upstream origin [email protected]:ant-design/ant-design.git
112112
git checkout -b <your new branch name>
113113
```
114114

115-
2. Add the language support for [rc-picker](https://github.com/react-component/picker), for example [this](https://github.com/react-component/picker/blob/master/src/locale/en_US.ts).
116-
3. Add the language support for [rc-pagination](https://github.com/react-component/pagination), for example [this](https://github.com/react-component/pagination/blob/master/src/locale/en_US.js).
117-
4. Wait for `rc-picker` and `rc-pagination` to release the new version containing the above.
118-
5. Update the `rc-picker` and `rc-pagination` versions in `antd` and add the remaining other necessary content for the language. for example [Azerbaijani PR](https://github.com/ant-design/ant-design/pull/21387).
119-
6. Add a test case for the language in [components/locale-provider/\_\_tests\_\_/index.test.js](/components/locale-provider/__tests__/index.test.js).
120-
7. update snapshots, you may also need to delete `node_modules`, lock files (`yarn.lock` or `package-lock.json`) and reinstall at first.
115+
2 - Add the language support for [rc-picker](https://github.com/react-component/picker), for example [this](https://github.com/react-component/picker/blob/master/src/locale/en_US.ts).
116+
117+
3 - Add the language support for [rc-pagination](https://github.com/react-component/pagination), for example [this](https://github.com/react-component/pagination/blob/master/src/locale/en_US.js).
118+
119+
4 - Wait for `rc-picker` and `rc-pagination` to release the new version containing the above.
120+
121+
5 - Update the `rc-picker` and `rc-pagination` versions in `antd` and add the remaining other necessary content for the language. for example [Azerbaijani PR](https://github.com/ant-design/ant-design/pull/21387).
122+
123+
6 - Add a test case for the language in [components/locale-provider/\_\_tests\_\_/index.test.js](/components/locale-provider/__tests__/index.test.js).
124+
125+
7 - update snapshots, you may also need to delete `node_modules`, lock files (`yarn.lock` or `package-lock.json`) and reinstall at first.
121126

122127
```bash
123128
npm run test -- components/locale-provider -u
124129
```
125130

126-
8. Add the language to i18n list [docs/react/i18n.zh-CN.md](/docs/react/i18n.zh-CN.md) and [docs/react/i18n.zh-CN.md](/docs/react/i18n.zh-CN.md).
127-
9. Watch out the CI status, and if it failed, look at the logs and make some changes until it all passes.
128-
10. Ok, now everything is ready for review.
131+
8 - Add the language to i18n list [docs/react/i18n.zh-CN.md](/docs/react/i18n.zh-CN.md) and [docs/react/i18n.zh-CN.md](/docs/react/i18n.zh-CN.md). 9 - Watch out the CI status, and if it failed, look at the logs and make some changes until it all passes. 10 - Ok, now everything is ready for review.

docs/react/i18n.zh-CN.md

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ return (
100100

101101
基本步骤如下:
102102

103-
1. Fork `antd` 并 git clone 到本地,切换到 `feature` 分支,执行一次拉取确保最新,基于 `feature` 分支切换一个新分支,以下工作将在新分支完成。
103+
1 - Fork `antd` 并 git clone 到本地,切换到 `feature` 分支,执行一次拉取确保最新,基于 `feature` 分支切换一个新分支,以下工作将在新分支完成。
104104

105105
```bash
106106
git clone [email protected]:<your organization>/ant-design.git
@@ -109,20 +109,27 @@ git remote add upstream origin [email protected]:ant-design/ant-design.git
109109
git checkout -b <your new branch name>
110110
```
111111

112-
2.[rc-picker](https://github.com/react-component/picker) 添加对应语言,参考 [这个](https://github.com/react-component/picker/blob/master/src/locale/en_US.ts)
113-
3.[rc-pagination](https://github.com/react-component/pagination) 添加对应语言,参考 [这个](https://github.com/react-component/pagination/blob/master/src/locale/en_US.js)
114-
4. 等待 `rc-picker``rc-pagination` 发布含上述内容的最低版本。
115-
5. 参考 [阿塞拜疆语的 PR](https://github.com/ant-design/ant-design/pull/21387)`antd` 发起 PR,完善对应语言的其他内容和更新 `rc-picker``rc-pagination` 版本。
116-
6.[components/locale-provider/\_\_tests\_\_/index.test.js](/components/locale-provider/__tests__/index.test.js) 添加该语言的测试用例。
117-
7. 更新 snapshot,在这之前或许你还需要先删除 `node_modules` 和 lock 文件 (`yarn.lock` or `package-lock.json`) 并全新安装。
112+
2 - 为 [rc-picker](https://github.com/react-component/picker) 添加对应语言,参考 [这个](https://github.com/react-component/picker/blob/master/src/locale/en_US.ts)
113+
114+
3 - 为 [rc-pagination](https://github.com/react-component/pagination) 添加对应语言,参考 [这个](https://github.com/react-component/pagination/blob/master/src/locale/en_US.js)
115+
116+
4 - 等待 `rc-picker``rc-pagination` 发布含上述内容的最低版本。
117+
118+
5 - 参考 [阿塞拜疆语的 PR](https://github.com/ant-design/ant-design/pull/21387)`antd` 发起 PR,完善对应语言的其他内容和更新 `rc-picker``rc-pagination` 版本。
119+
120+
6 - 在 [components/locale-provider/\_\_tests\_\_/index.test.js](/components/locale-provider/__tests__/index.test.js) 添加该语言的测试用例。
121+
122+
7 - 更新 snapshot,在这之前或许你还需要先删除 `node_modules` 和 lock 文件 (`yarn.lock` or `package-lock.json`) 并全新安装。
118123

119124
```bash
120125
npm run test -- components/locale-provider -u
121126
```
122127

123-
8. 更新 [docs/react/i18n.zh-CN.md](/docs/react/i18n.zh-CN.md)[docs/react/i18n.zh-CN.md](/docs/react/i18n.zh-CN.md),将对应语言添加到文档列表。
124-
9. 观察 CI 是否通过,若未通过,根据日志进行修改直至通过。
125-
10. 万事俱备等待 review 。
128+
8 - 更新 [docs/react/i18n.zh-CN.md](/docs/react/i18n.zh-CN.md)[docs/react/i18n.zh-CN.md](/docs/react/i18n.zh-CN.md),将对应语言添加到文档列表。
129+
130+
9 - 观察 CI 是否通过,若未通过,根据日志进行修改直至通过。
131+
132+
10 - 万事俱备等待 review 。
126133

127134
## i18n 项目示例
128135

0 commit comments

Comments
 (0)