{"componentChunkName":"component---antv-gatsby-theme-antv-site-templates-document-tsx","path":"/zh/docs/other/i18n","result":{"data":{"site":{"siteMetadata":{"title":"Choerodon UI","githubUrl":"https://github.com/open-hand/choerodon-ui","docs":[]},"pathPrefix":"/choerodon-ui"},"markdownRemark":{"html":"<p><code class=\"language-text\">choerodon-ui</code> 目前的默认文案是英文，如果需要使用其他语言，可以参考下面的方案。</p>\n<h2 id=\"localeprovider\" style=\"position:relative;\"><a href=\"#localeprovider\" aria-label=\"localeprovider permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>LocaleProvider</h2>\n<p>choerodon-ui 提供了一个 React 组件 <a href=\"/choerodon-ui/zh/cmp/other/locale-provider\">LocaleProvider</a> 用于全局配置国际化文案。</p>\n<div class=\"gatsby-highlight\" data-language=\"jsx\"><pre class=\"language-jsx\"><code class=\"language-jsx\"><span class=\"token keyword\">import</span> zhCN <span class=\"token keyword\">from</span> <span class=\"token string\">'choerodon-ui/lib/locale-provider/zh_CN'</span><span class=\"token punctuation\">;</span>\n\n<span class=\"token keyword\">return</span> <span class=\"token punctuation\">(</span>\n  <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span><span class=\"token class-name\">LocaleProvider</span></span> <span class=\"token attr-name\">locale</span><span class=\"token script language-javascript\"><span class=\"token script-punctuation punctuation\">=</span><span class=\"token punctuation\">{</span>zhCN<span class=\"token punctuation\">}</span></span><span class=\"token punctuation\">></span></span><span class=\"token plain-text\">\n    </span><span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span><span class=\"token class-name\">App</span></span> <span class=\"token punctuation\">/></span></span><span class=\"token plain-text\">\n  </span><span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span><span class=\"token class-name\">LocaleProvider</span></span><span class=\"token punctuation\">></span></span>\n<span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span></code></pre></div>\n<h2 id=\"localecontext\" style=\"position:relative;\"><a href=\"#localecontext\" aria-label=\"localecontext permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>LocaleContext</h2>\n<p>choerodon-ui/pro 提供了<a href=\"/choerodon-ui/zh/procmp/other/locale-context\">LocaleContext</a> 用于全局配置国际化文案。</p>\n<div class=\"gatsby-highlight\" data-language=\"jsx\"><pre class=\"language-jsx\"><code class=\"language-jsx\"><span class=\"token keyword\">import</span> <span class=\"token punctuation\">{</span> localeContext <span class=\"token punctuation\">}</span> <span class=\"token keyword\">from</span> <span class=\"token string\">'choerodon-ui/pro'</span><span class=\"token punctuation\">;</span>\n<span class=\"token keyword\">import</span> zh_CN <span class=\"token keyword\">from</span> <span class=\"token string\">'choerodon-ui/pro/lib/locale-context/zh_CN'</span><span class=\"token punctuation\">;</span>\n\nlocaleContext<span class=\"token punctuation\">.</span><span class=\"token function\">setLocale</span><span class=\"token punctuation\">(</span>zh_CN<span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span></code></pre></div>\n<p>注意：<code class=\"language-text\">zh_CN</code> 是文件名，以下表格也遵循同样的规则。</p>\n<p>目前支持以下语言：</p>\n<table>\n<thead>\n<tr>\n<th>语言</th>\n<th>文件名</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>阿拉伯</td>\n<td>ar_EG</td>\n</tr>\n<tr>\n<td>保加利亚语</td>\n<td>bg_BG</td>\n</tr>\n<tr>\n<td>加泰罗尼亚语</td>\n<td>ca_ES</td>\n</tr>\n<tr>\n<td>捷克语</td>\n<td>cs_CZ</td>\n</tr>\n<tr>\n<td>德语</td>\n<td>de_DE</td>\n</tr>\n<tr>\n<td>希腊语</td>\n<td>el_GR</td>\n</tr>\n<tr>\n<td>英语</td>\n<td>en_GB</td>\n</tr>\n<tr>\n<td>英语（美式）</td>\n<td>en_US</td>\n</tr>\n<tr>\n<td>西班牙语</td>\n<td>es_ES</td>\n</tr>\n<tr>\n<td>爱沙尼亚语</td>\n<td>et_EE</td>\n</tr>\n<tr>\n<td>波斯语</td>\n<td>fa_IR</td>\n</tr>\n<tr>\n<td>芬兰语</td>\n<td>fi_FI</td>\n</tr>\n<tr>\n<td>法语（比利时）</td>\n<td>fr_BE</td>\n</tr>\n<tr>\n<td>法语</td>\n<td>fr_FR</td>\n</tr>\n<tr>\n<td>冰岛语</td>\n<td>is_IS</td>\n</tr>\n<tr>\n<td>意大利语</td>\n<td>it_IT</td>\n</tr>\n<tr>\n<td>日语</td>\n<td>ja_JP</td>\n</tr>\n<tr>\n<td>韩语/朝鲜语</td>\n<td>ko_KR</td>\n</tr>\n<tr>\n<td>挪威</td>\n<td>nb_NO</td>\n</tr>\n<tr>\n<td>荷兰语（比利时）</td>\n<td>nl_BE</td>\n</tr>\n<tr>\n<td>荷兰语</td>\n<td>nl_NL</td>\n</tr>\n<tr>\n<td>波兰语</td>\n<td>pl_PL</td>\n</tr>\n<tr>\n<td>葡萄牙语(巴西)</td>\n<td>pt_BR</td>\n</tr>\n<tr>\n<td>葡萄牙语</td>\n<td>pt_PT</td>\n</tr>\n<tr>\n<td>斯洛伐克语</td>\n<td>sk_SK</td>\n</tr>\n<tr>\n<td>塞尔维亚</td>\n<td>sr_RS</td>\n</tr>\n<tr>\n<td>斯洛文尼亚</td>\n<td>sl_SI</td>\n</tr>\n<tr>\n<td>瑞典语</td>\n<td>sv_SE</td>\n</tr>\n<tr>\n<td>泰语</td>\n<td>th_TH</td>\n</tr>\n<tr>\n<td>土耳其语</td>\n<td>tr_TR</td>\n</tr>\n<tr>\n<td>俄罗斯语</td>\n<td>ru_RU</td>\n</tr>\n<tr>\n<td>乌克兰语</td>\n<td>uk_UA</td>\n</tr>\n<tr>\n<td>越南语</td>\n<td>vi_VN</td>\n</tr>\n<tr>\n<td>简体中文</td>\n<td>zh_CN</td>\n</tr>\n<tr>\n<td>繁体中文</td>\n<td>zh_TW</td>\n</tr>\n</tbody>\n</table>\n<p>具体的使用方法和新语言包贡献方式请参考 <a href=\"/choerodon-ui/zh/cmp/other/locale-provider\">LocaleProvider 文档</a>。</p>\n<h2 id=\"i18n-项目示例\" style=\"position:relative;\"><a href=\"#i18n-%E9%A1%B9%E7%9B%AE%E7%A4%BA%E4%BE%8B\" aria-label=\"i18n 项目示例 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>i18n 项目示例</h2>\n<p>我们还提供了一个使用了 <a href=\"https://github.com/yahoo/react-intl\" target=\"_self\" rel=\"nofollow\">react-intl</a> 和 LocaleProvider 的完整的国际化项目示例：<a href=\"https://github.com/ant-design/intl-example\" target=\"_self\" rel=\"nofollow\">ant-design/intl-example</a>，欢迎参考使用。</p>","htmlAst":{"type":"root","children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["language-text"]},"children":[{"type":"text","value":"choerodon-ui"}]},{"type":"text","value":" 目前的默认文案是英文，如果需要使用其他语言，可以参考下面的方案。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h2","properties":{"id":"localeprovider","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#localeprovider","ariaLabel":"localeprovider permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"LocaleProvider"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"choerodon-ui 提供了一个 React 组件 "},{"type":"element","tagName":"a","properties":{"href":"/choerodon-ui/zh/cmp/other/locale-provider"},"children":[{"type":"text","value":"LocaleProvider"}]},{"type":"text","value":" 用于全局配置国际化文案。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"div","properties":{"className":["gatsby-highlight"],"dataLanguage":"jsx"},"children":[{"type":"element","tagName":"pre","properties":{"className":["language-jsx"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-jsx"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","keyword"]},"children":[{"type":"text","value":"import"}]},{"type":"text","value":" zhCN "},{"type":"element","tagName":"span","properties":{"className":["token","keyword"]},"children":[{"type":"text","value":"from"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","string"]},"children":[{"type":"text","value":"'choerodon-ui/lib/locale-provider/zh_CN'"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":";"}]},{"type":"text","value":"\n\n"},{"type":"element","tagName":"span","properties":{"className":["token","keyword"]},"children":[{"type":"text","value":"return"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"("}]},{"type":"text","value":"\n  "},{"type":"element","tagName":"span","properties":{"className":["token","tag"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","tag"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"<"}]},{"type":"element","tagName":"span","properties":{"className":["token","class-name"]},"children":[{"type":"text","value":"LocaleProvider"}]}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","attr-name"]},"children":[{"type":"text","value":"locale"}]},{"type":"element","tagName":"span","properties":{"className":["token","script","language-javascript"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","script-punctuation","punctuation"]},"children":[{"type":"text","value":"="}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"{"}]},{"type":"text","value":"zhCN"},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"}"}]}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":">"}]}]},{"type":"element","tagName":"span","properties":{"className":["token","plain-text"]},"children":[{"type":"text","value":"\n    "}]},{"type":"element","tagName":"span","properties":{"className":["token","tag"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","tag"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"<"}]},{"type":"element","tagName":"span","properties":{"className":["token","class-name"]},"children":[{"type":"text","value":"App"}]}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"/>"}]}]},{"type":"element","tagName":"span","properties":{"className":["token","plain-text"]},"children":[{"type":"text","value":"\n  "}]},{"type":"element","tagName":"span","properties":{"className":["token","tag"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","tag"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"</"}]},{"type":"element","tagName":"span","properties":{"className":["token","class-name"]},"children":[{"type":"text","value":"LocaleProvider"}]}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":">"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":")"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":";"}]}]}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h2","properties":{"id":"localecontext","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#localecontext","ariaLabel":"localecontext permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"LocaleContext"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"choerodon-ui/pro 提供了"},{"type":"element","tagName":"a","properties":{"href":"/choerodon-ui/zh/procmp/other/locale-context"},"children":[{"type":"text","value":"LocaleContext"}]},{"type":"text","value":" 用于全局配置国际化文案。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"div","properties":{"className":["gatsby-highlight"],"dataLanguage":"jsx"},"children":[{"type":"element","tagName":"pre","properties":{"className":["language-jsx"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-jsx"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","keyword"]},"children":[{"type":"text","value":"import"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"{"}]},{"type":"text","value":" localeContext "},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"}"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","keyword"]},"children":[{"type":"text","value":"from"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","string"]},"children":[{"type":"text","value":"'choerodon-ui/pro'"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":";"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"span","properties":{"className":["token","keyword"]},"children":[{"type":"text","value":"import"}]},{"type":"text","value":" zh_CN "},{"type":"element","tagName":"span","properties":{"className":["token","keyword"]},"children":[{"type":"text","value":"from"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","string"]},"children":[{"type":"text","value":"'choerodon-ui/pro/lib/locale-context/zh_CN'"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":";"}]},{"type":"text","value":"\n\nlocaleContext"},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"."}]},{"type":"element","tagName":"span","properties":{"className":["token","function"]},"children":[{"type":"text","value":"setLocale"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"("}]},{"type":"text","value":"zh_CN"},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":")"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":";"}]}]}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"注意："},{"type":"element","tagName":"code","properties":{"className":["language-text"]},"children":[{"type":"text","value":"zh_CN"}]},{"type":"text","value":" 是文件名，以下表格也遵循同样的规则。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"目前支持以下语言："}]},{"type":"text","value":"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"},{"type":"element","tagName":"table","properties":{},"children":[{"type":"element","tagName":"thead","properties":{},"children":[{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"语言"}]},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"文件名"}]}]}]},{"type":"element","tagName":"tbody","properties":{},"children":[{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"阿拉伯"}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"ar_EG"}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"保加利亚语"}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"bg_BG"}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"加泰罗尼亚语"}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"ca_ES"}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"捷克语"}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"cs_CZ"}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"德语"}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"de_DE"}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"希腊语"}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"el_GR"}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"英语"}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"en_GB"}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"英语（美式）"}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"en_US"}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"西班牙语"}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"es_ES"}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"爱沙尼亚语"}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"et_EE"}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"波斯语"}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"fa_IR"}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"芬兰语"}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"fi_FI"}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"法语（比利时）"}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"fr_BE"}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"法语"}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"fr_FR"}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"冰岛语"}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"is_IS"}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"意大利语"}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"it_IT"}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"日语"}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"ja_JP"}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"韩语/朝鲜语"}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"ko_KR"}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"挪威"}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"nb_NO"}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"荷兰语（比利时）"}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"nl_BE"}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"荷兰语"}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"nl_NL"}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"波兰语"}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"pl_PL"}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"葡萄牙语(巴西)"}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"pt_BR"}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"葡萄牙语"}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"pt_PT"}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"斯洛伐克语"}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"sk_SK"}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"塞尔维亚"}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"sr_RS"}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"斯洛文尼亚"}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"sl_SI"}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"瑞典语"}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"sv_SE"}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"泰语"}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"th_TH"}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"土耳其语"}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"tr_TR"}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"俄罗斯语"}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"ru_RU"}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"乌克兰语"}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"uk_UA"}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"越南语"}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"vi_VN"}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"简体中文"}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"zh_CN"}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"繁体中文"}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"zh_TW"}]}]}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"具体的使用方法和新语言包贡献方式请参考 "},{"type":"element","tagName":"a","properties":{"href":"/choerodon-ui/zh/cmp/other/locale-provider"},"children":[{"type":"text","value":"LocaleProvider 文档"}]},{"type":"text","value":"。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h2","properties":{"id":"i18n-项目示例","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#i18n-%E9%A1%B9%E7%9B%AE%E7%A4%BA%E4%BE%8B","ariaLabel":"i18n 项目示例 permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"i18n 项目示例"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"我们还提供了一个使用了 "},{"type":"element","tagName":"a","properties":{"href":"https://github.com/yahoo/react-intl","target":"_self","rel":["nofollow"]},"children":[{"type":"text","value":"react-intl"}]},{"type":"text","value":" 和 LocaleProvider 的完整的国际化项目示例："},{"type":"element","tagName":"a","properties":{"href":"https://github.com/ant-design/intl-example","target":"_self","rel":["nofollow"]},"children":[{"type":"text","value":"ant-design/intl-example"}]},{"type":"text","value":"，欢迎参考使用。"}]}],"data":{"quirksMode":false}},"tableOfContents":"<ul>\n<li><a href=\"/choerodon-ui/zh/docs/other/i18n/#localeprovider\">LocaleProvider</a></li>\n<li><a href=\"/choerodon-ui/zh/docs/other/i18n/#localecontext\">LocaleContext</a></li>\n<li><a href=\"/choerodon-ui/zh/docs/other/i18n/#i18n-%E9%A1%B9%E7%9B%AE%E7%A4%BA%E4%BE%8B\">i18n 项目示例</a></li>\n</ul>","fields":{"slug":"/zh/docs/other/i18n","readingTime":{"text":"3 min read","time":127200}},"frontmatter":{"title":"国际化"},"parent":{"__typename":"File","relativePath":"other/i18n.zh.md"}},"allMarkdownRemark":{"edges":[{"node":{"fields":{"slug":"/en/docs/other/introduce"},"frontmatter":{"title":"Choerodon UI of React","order":1}}},{"node":{"fields":{"slug":"/zh/docs/other/introduce"},"frontmatter":{"title":"Choerodon UI of React","order":1}}},{"node":{"fields":{"slug":"/en/docs/other/use-with-create-react-app"},"frontmatter":{"title":"Use in create-react-app","order":2}}},{"node":{"fields":{"slug":"/zh/docs/other/use-with-create-react-app"},"frontmatter":{"title":"在 create-react-app 中使用","order":2}}},{"node":{"fields":{"slug":"/en/docs/other/ued-theme"},"frontmatter":{"title":"Custom Theme","order":3}}},{"node":{"fields":{"slug":"/zh/docs/other/ued-theme"},"frontmatter":{"title":"主题切换","order":3}}},{"node":{"fields":{"slug":"/en/docs/other/ued-versions-association"},"frontmatter":{"title":"Themes Version Relationships","order":3}}},{"node":{"fields":{"slug":"/zh/docs/other/ued-versions-association"},"frontmatter":{"title":"主题依赖版本关系","order":3}}},{"node":{"fields":{"slug":"/zh/docs/other/customize-theme"},"frontmatter":{"title":"定制主题","order":4}}},{"node":{"fields":{"slug":"/zh/docs/other/recommendation"},"frontmatter":{"title":"社区精选组件","order":5}}},{"node":{"fields":{"slug":"/en/docs/other/recommendation"},"frontmatter":{"title":"Third-Party Libraries","order":5}}},{"node":{"fields":{"slug":"/zh/docs/other/i18n"},"frontmatter":{"title":"国际化","order":6}}},{"node":{"fields":{"slug":"/en/docs/other/i18n"},"frontmatter":{"title":"Internationalization","order":6}}},{"node":{"fields":{"slug":"/zh/docs/other/vscode-plugin"},"frontmatter":{"title":"Vscode 插件","order":7}}},{"node":{"fields":{"slug":"/en/docs/other/vscode-plugin"},"frontmatter":{"title":"Vscode plugin","order":7}}},{"node":{"fields":{"slug":"/zh/docs/other/typescript"},"frontmatter":{"title":"TypeScript 友好支持","order":8}}},{"node":{"fields":{"slug":"/en/docs/other/typescript"},"frontmatter":{"title":"TypeScript Friendly support","order":8}}},{"node":{"fields":{"slug":"/en/docs/other/CONTRIBUTING"},"frontmatter":{"title":"Contributing","order":9}}},{"node":{"fields":{"slug":"/zh/docs/other/CONTRIBUTING"},"frontmatter":{"title":"贡献指南","order":9}}},{"node":{"fields":{"slug":"/en/docs/other/release-cycle"},"frontmatter":{"title":"Release strategy","order":10}}},{"node":{"fields":{"slug":"/zh/docs/other/release-cycle"},"frontmatter":{"title":"发版策略","order":10}}},{"node":{"fields":{"slug":"/en/docs/other/big-number"},"frontmatter":{"title":"Large Numbers","order":20}}},{"node":{"fields":{"slug":"/zh/docs/other/big-number"},"frontmatter":{"title":"大数字","order":20}}},{"node":{"fields":{"slug":"/en/docs/other/only-key"},"frontmatter":{"title":"Explanation of Common Unique Key Scenarios for Components","order":21}}},{"node":{"fields":{"slug":"/zh/docs/other/only-key"},"frontmatter":{"title":"组件常见唯一 Key 场景说明","order":21}}},{"node":{"fields":{"slug":"/en/docs/other/ short-cut-key"},"frontmatter":{"title":"Keyboard Shortcuts","order":22}}},{"node":{"fields":{"slug":"/zh/docs/other/ short-cut-key"},"frontmatter":{"title":"快捷键","order":22}}},{"node":{"fields":{"slug":"/en/docs/other/style-restore-consideration"},"frontmatter":{"title":"Design & Style Restoration Development Notes","order":23}}},{"node":{"fields":{"slug":"/zh/docs/other/style-restore-consideration"},"frontmatter":{"title":"设计&样式还原开发注意事项","order":23}}},{"node":{"fields":{"slug":"/en/docs/other/version-upgrade"},"frontmatter":{"title":"Version Upgrade Guide","order":98}}},{"node":{"fields":{"slug":"/zh/docs/other/version-upgrade"},"frontmatter":{"title":"版本升级指南","order":98}}},{"node":{"fields":{"slug":"/en/docs/other/CHANGELOG"},"frontmatter":{"title":"Change Log","order":999}}},{"node":{"fields":{"slug":"/zh/docs/other/CHANGELOG"},"frontmatter":{"title":"更新日志","order":999}}},{"node":{"fields":{"slug":"/en/docs/other/customize-theme"},"frontmatter":{"title":"Custom theme","order":null}}}]}},"pageContext":{}},"staticQueryHashes":["3000541721","3000541721","653731124"]}