You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/react/i18n.en-US.md
+13-10Lines changed: 13 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -103,7 +103,7 @@ If your language is not in above list, feel free to create a locale package base
103
103
104
104
Do it step by step:
105
105
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.
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.
121
126
122
127
```bash
123
128
npm run test -- components/locale-provider -u
124
129
```
125
130
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.
0 commit comments