Guide to creating new language support 🌏 #2927
simonguo
announced in
Announcement
Replies: 2 comments 4 replies
-
What about using BCP 47 language tag, respecting the Intl API? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hey guys, do you know what happened with the spanish(argentinean) translation? this guy that contributed, his PR is so old, and I didn't saw the translation on the documentation. Where can I start contributing? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to add new languages to rsuite?
Please read the contributing guidelines first.
Create a language file
Create a new language file in the src/locales directory.
language[_region].ts
,language
andregion
should follow the ISO-639-1 Language Code and ISO-3166 Country Code standards respectively. eg.zh_CN.ts
.ISO-639-1 Language Codes
ISO-3166 Country Codes
Update guide documentation.
Currently, the official documentation of rsuitejs.com supports both English and Chinese, so new languages need to be added to en-US and zh-CN respectively. After the document is updated, you can use the vscode-markdown-table-sort plugin to format the document so that the language list can be sorted alphabetically.
Updated example. There is a language switching demonstration on the i18n page, and you can see the UI rendering effect corresponding to the specified language, so you need to import the newly created language file.
Related PRs, and thanks to contributors。
Beta Was this translation helpful? Give feedback.
All reactions