ant-design/314caa7e-async.19a8430d.js
2024-11-20 18:30:54 +00:00

1 line
9.8 KiB
JavaScript

(("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd=("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd||[]).push([["314caa7e"],{"314caa7e":function(a,e,d){"use strict";d.d(e,"__esModule",{value:!0}),d.d(e,"texts",{enumerable:!0,get:function(){return I;}}),d("2ef0e95a");let I=[{value:"The default language of ",paraId:0},{value:"antd",paraId:0},{value:" is currently English. If you wish to use other languages, follow the instructions below.",paraId:0},{value:"antd",paraId:1,tocIndex:0},{value:" provides a React Component ",paraId:1,tocIndex:0},{value:"ConfigProvider",paraId:2,tocIndex:0},{value:" for configuring antd locale text globally.",paraId:1,tocIndex:0},{value:"import { ConfigProvider } from 'antd';\nimport frFR from 'antd/locale/fr_FR';\n\nreturn (\n <ConfigProvider locale={frFR}>\n <App />\n </ConfigProvider>\n);\n",paraId:3,tocIndex:0},{value:"You can see the complete configuration here: ",paraId:4,tocIndex:0},{value:"ConfigProvider",paraId:5,tocIndex:0},{value:".",paraId:4,tocIndex:0},{value:"Note: ",paraId:6,tocIndex:0},{value:"fr_FR",paraId:6,tocIndex:0},{value:" is the filename, the following table also follows the same rules.",paraId:6,tocIndex:0},{value:"The following languages are currently supported:",paraId:7,tocIndex:0},{value:"Language",paraId:8,tocIndex:1},{value:"Filename",paraId:8,tocIndex:1},{value:"Arabic",paraId:8,tocIndex:1},{value:"ar_EG",paraId:8,tocIndex:1},{value:"Azerbaijani",paraId:8,tocIndex:1},{value:"az_AZ",paraId:8,tocIndex:1},{value:"Bulgarian",paraId:8,tocIndex:1},{value:"bg_BG",paraId:8,tocIndex:1},{value:"Bangla (Bangladesh)",paraId:8,tocIndex:1},{value:"bn_BD",paraId:8,tocIndex:1},{value:"Belarusian",paraId:8,tocIndex:1},{value:"by_BY",paraId:8,tocIndex:1},{value:"Catalan",paraId:8,tocIndex:1},{value:"ca_ES",paraId:8,tocIndex:1},{value:"Czech",paraId:8,tocIndex:1},{value:"cs_CZ",paraId:8,tocIndex:1},{value:"Danish",paraId:8,tocIndex:1},{value:"da_DK",paraId:8,tocIndex:1},{value:"German",paraId:8,tocIndex:1},{value:"de_DE",paraId:8,tocIndex:1},{value:"Greek",paraId:8,tocIndex:1},{value:"el_GR",paraId:8,tocIndex:1},{value:"English (United Kingdom)",paraId:8,tocIndex:1},{value:"en_GB",paraId:8,tocIndex:1},{value:"English",paraId:8,tocIndex:1},{value:"en_US",paraId:8,tocIndex:1},{value:"Spanish",paraId:8,tocIndex:1},{value:"es_ES",paraId:8,tocIndex:1},{value:"Basque",paraId:8,tocIndex:1},{value:"eu_ES",paraId:8,tocIndex:1},{value:"Estonian",paraId:8,tocIndex:1},{value:"et_EE",paraId:8,tocIndex:1},{value:"Persian",paraId:8,tocIndex:1},{value:"fa_IR",paraId:8,tocIndex:1},{value:"Finnish",paraId:8,tocIndex:1},{value:"fi_FI",paraId:8,tocIndex:1},{value:"French (Belgium)",paraId:8,tocIndex:1},{value:"fr_BE",paraId:8,tocIndex:1},{value:"French (Canada)",paraId:8,tocIndex:1},{value:"fr_CA",paraId:8,tocIndex:1},{value:"French (France)",paraId:8,tocIndex:1},{value:"fr_FR",paraId:8,tocIndex:1},{value:"Irish (Ireland)",paraId:8,tocIndex:1},{value:"ga_IE",paraId:8,tocIndex:1},{value:"Galician (Spain)",paraId:8,tocIndex:1},{value:"gl_ES",paraId:8,tocIndex:1},{value:"Hebrew",paraId:8,tocIndex:1},{value:"he_IL",paraId:8,tocIndex:1},{value:"Hindi",paraId:8,tocIndex:1},{value:"hi_IN",paraId:8,tocIndex:1},{value:"Croatian",paraId:8,tocIndex:1},{value:"hr_HR",paraId:8,tocIndex:1},{value:"Hungarian",paraId:8,tocIndex:1},{value:"hu_HU",paraId:8,tocIndex:1},{value:"Armenian",paraId:8,tocIndex:1},{value:"hy_AM",paraId:8,tocIndex:1},{value:"Indonesian",paraId:8,tocIndex:1},{value:"id_ID",paraId:8,tocIndex:1},{value:"Italian",paraId:8,tocIndex:1},{value:"it_IT",paraId:8,tocIndex:1},{value:"Icelandic",paraId:8,tocIndex:1},{value:"is_IS",paraId:8,tocIndex:1},{value:"Japanese",paraId:8,tocIndex:1},{value:"ja_JP",paraId:8,tocIndex:1},{value:"Georgian",paraId:8,tocIndex:1},{value:"ka_GE",paraId:8,tocIndex:1},{value:"Kurdish (Kurmanji)",paraId:8,tocIndex:1},{value:"kmr_IQ",paraId:8,tocIndex:1},{value:"Kannada",paraId:8,tocIndex:1},{value:"kn_IN",paraId:8,tocIndex:1},{value:"Kazakh",paraId:8,tocIndex:1},{value:"kk_KZ",paraId:8,tocIndex:1},{value:"Khmer",paraId:8,tocIndex:1},{value:"km_KH",paraId:8,tocIndex:1},{value:"Korean",paraId:8,tocIndex:1},{value:"ko_KR",paraId:8,tocIndex:1},{value:"Lithuanian",paraId:8,tocIndex:1},{value:"lt_LT",paraId:8,tocIndex:1},{value:"Latvian",paraId:8,tocIndex:1},{value:"lv_LV",paraId:8,tocIndex:1},{value:"Macedonian",paraId:8,tocIndex:1},{value:"mk_MK",paraId:8,tocIndex:1},{value:"Malayalam (India)",paraId:8,tocIndex:1},{value:"ml_IN",paraId:8,tocIndex:1},{value:"Mongolian",paraId:8,tocIndex:1},{value:"mn_MN",paraId:8,tocIndex:1},{value:"Malay (Malaysia)",paraId:8,tocIndex:1},{value:"ms_MY",paraId:8,tocIndex:1},{value:"Burmese",paraId:8,tocIndex:1},{value:"my_MM",paraId:8,tocIndex:1},{value:"Norwegian",paraId:8,tocIndex:1},{value:"nb_NO",paraId:8,tocIndex:1},{value:"Nepali",paraId:8,tocIndex:1},{value:"ne_NP",paraId:8,tocIndex:1},{value:"Dutch (Belgium)",paraId:8,tocIndex:1},{value:"nl_BE",paraId:8,tocIndex:1},{value:"Dutch",paraId:8,tocIndex:1},{value:"nl_NL",paraId:8,tocIndex:1},{value:"Polish",paraId:8,tocIndex:1},{value:"pl_PL",paraId:8,tocIndex:1},{value:"Portuguese (Brazil)",paraId:8,tocIndex:1},{value:"pt_BR",paraId:8,tocIndex:1},{value:"Portuguese",paraId:8,tocIndex:1},{value:"pt_PT",paraId:8,tocIndex:1},{value:"Romanian",paraId:8,tocIndex:1},{value:"ro_RO",paraId:8,tocIndex:1},{value:"Russian",paraId:8,tocIndex:1},{value:"ru_RU",paraId:8,tocIndex:1},{value:"Sinhalese / Sinhala",paraId:8,tocIndex:1},{value:"si_LK",paraId:8,tocIndex:1},{value:"Slovak",paraId:8,tocIndex:1},{value:"sk_SK",paraId:8,tocIndex:1},{value:"Serbian",paraId:8,tocIndex:1},{value:"sr_RS",paraId:8,tocIndex:1},{value:"Slovenian",paraId:8,tocIndex:1},{value:"sl_SI",paraId:8,tocIndex:1},{value:"Swedish",paraId:8,tocIndex:1},{value:"sv_SE",paraId:8,tocIndex:1},{value:"Tamil",paraId:8,tocIndex:1},{value:"ta_IN",paraId:8,tocIndex:1},{value:"Thai",paraId:8,tocIndex:1},{value:"th_TH",paraId:8,tocIndex:1},{value:"Turkish",paraId:8,tocIndex:1},{value:"tr_TR",paraId:8,tocIndex:1},{value:"Turkmen",paraId:8,tocIndex:1},{value:"tk_TK",paraId:8,tocIndex:1},{value:"Urdu (Pakistan)",paraId:8,tocIndex:1},{value:"ur_PK",paraId:8,tocIndex:1},{value:"Ukrainian",paraId:8,tocIndex:1},{value:"uk_UA",paraId:8,tocIndex:1},{value:"Uzbek(latn)",paraId:8,tocIndex:1},{value:"uz_UZ",paraId:8,tocIndex:1},{value:"Vietnamese",paraId:8,tocIndex:1},{value:"vi_VN",paraId:8,tocIndex:1},{value:"Chinese (Simplified)",paraId:8,tocIndex:1},{value:"zh_CN",paraId:8,tocIndex:1},{value:"Chinese (Traditional)",paraId:8,tocIndex:1},{value:"zh_HK",paraId:8,tocIndex:1},{value:"Chinese (Traditional)",paraId:8,tocIndex:1},{value:"zh_TW",paraId:8,tocIndex:1},{value:"See more usage at ",paraId:9,tocIndex:1},{value:"ConfigProvider",paraId:10,tocIndex:1},{value:".",paraId:9,tocIndex:1},{value:"If your language is not in above list, feel free to create a locale package based on the ",paraId:11,tocIndex:2},{value:"en_US",paraId:11,tocIndex:2},{value:" language pack and send us a pull request. For reference, you can refer to the pull request of adding the ",paraId:11,tocIndex:2},{value:"Azerbaijani",paraId:11,tocIndex:2},{value:" language as a sample.",paraId:11,tocIndex:2},{value:"Do it step by step:",paraId:12,tocIndex:2},{value:"Fork ",paraId:13,tocIndex:2},{value:"antd",paraId:13,tocIndex:2},{value:" and git clone to local, switch to ",paraId:13,tocIndex:2},{value:"feature",paraId:13,tocIndex:2},{value:" branch, pull it to make sure it's up-to-date, create a new branch based on ",paraId:13,tocIndex:2},{value:"feature",paraId:13,tocIndex:2},{value:" branch, all work will be done in it.",paraId:13,tocIndex:2},{value:"git clone git@github.com:<your organization>/ant-design.git\ncd ant-design/\ngit remote add upstream git@github.com:ant-design/ant-design.git\ngit checkout -b <your new branch name> upstream/feature\n",paraId:14,tocIndex:2},{value:"Add the language support for ",paraId:15,tocIndex:2},{value:"rc-picker",paraId:15,tocIndex:2},{value:", for example ",paraId:15,tocIndex:2},{value:"this",paraId:15,tocIndex:2},{value:".",paraId:15,tocIndex:2},{value:"Add the language support for ",paraId:16,tocIndex:2},{value:"rc-pagination",paraId:16,tocIndex:2},{value:", for example ",paraId:16,tocIndex:2},{value:"this",paraId:16,tocIndex:2},{value:".",paraId:16,tocIndex:2},{value:"Wait for ",paraId:17,tocIndex:2},{value:"rc-picker",paraId:17,tocIndex:2},{value:" and ",paraId:17,tocIndex:2},{value:"rc-pagination",paraId:17,tocIndex:2},{value:" to release the new version containing the above.",paraId:17,tocIndex:2},{value:"Update the ",paraId:18,tocIndex:2},{value:"rc-picker",paraId:18,tocIndex:2},{value:" and ",paraId:18,tocIndex:2},{value:"rc-pagination",paraId:18,tocIndex:2},{value:" versions in ",paraId:18,tocIndex:2},{value:"antd",paraId:18,tocIndex:2},{value:" and add the remaining other necessary content for the language. for example ",paraId:18,tocIndex:2},{value:"Azerbaijani PR",paraId:18,tocIndex:2},{value:".",paraId:18,tocIndex:2},{value:"Add a test case for the language in ",paraId:19,tocIndex:2},{value:"index.test.tsx",paraId:19,tocIndex:2},{value:".",paraId:19,tocIndex:2},{value:"update snapshots, you may also need to delete ",paraId:20,tocIndex:2},{value:"node_modules",paraId:20,tocIndex:2},{value:", lock files (",paraId:20,tocIndex:2},{value:"yarn.lock",paraId:20,tocIndex:2},{value:" or ",paraId:20,tocIndex:2},{value:"package-lock.json",paraId:20,tocIndex:2},{value:") and reinstall at first.",paraId:20,tocIndex:2},{value:"npm run test -- components/locale -u\n",paraId:21,tocIndex:2},{value:"Add the language to i18n list ",paraId:22,tocIndex:2},{value:"docs/react/i18n.en-US.md",paraId:22,tocIndex:2},{value:" and ",paraId:22,tocIndex:2},{value:"docs/react/i18n.zh-CN.md",paraId:22,tocIndex:2},{value:".",paraId:22,tocIndex:2},{value:"Watch out the CI status, and if it failed, look at the logs and make some changes until it all passes.",paraId:23,tocIndex:2},{value:"Ok, now everything is ready for review.",paraId:24,tocIndex:2}];}}]);