refactor: 🌎 new kmr_IQ to replace ku_IQ (#26030)

* feat: 🌎 new kmr_IQ to replace ku_IQ

close #25778
close #25790

* fix locale provider Legacy usage

* Update docs/react/i18n.en-US.md

Co-authored-by: Amumu <yoyo837@hotmail.com>

* Update i18n.zh-CN.md

Co-authored-by: Amumu <yoyo837@hotmail.com>
This commit is contained in:
偏右 2020-08-06 10:40:58 +08:00 committed by GitHub
parent 112e0e2a4c
commit a9f14ea48f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 71 additions and 77 deletions

View File

@ -0,0 +1,3 @@
import kmrIQ from '../../date-picker/locale/kmr_IQ';
export default kmrIQ;

View File

@ -1,3 +0,0 @@
import kuIQ from '../../date-picker/locale/ku_IQ';
export default kuIQ;

View File

@ -1,5 +1,5 @@
import CalendarLocale from 'rc-picker/lib/locale/ku_IQ';
import TimePickerLocale from '../../time-picker/locale/ku_IQ';
import CalendarLocale from 'rc-picker/lib/locale/kmr_IQ';
import TimePickerLocale from '../../time-picker/locale/kmr_IQ';
import { PickerLocale } from '../generatePicker';
// Merge into a locale object

View File

@ -143101,7 +143101,7 @@ exports[`Locale Provider should display the text as ko 1`] = `
</div>
`;
exports[`Locale Provider should display the text as ku-iq 1`] = `
exports[`Locale Provider should display the text as ku 1`] = `
<div>
<ul
class="ant-pagination"

View File

@ -44,7 +44,7 @@ import itIT from '../it_IT';
import jaJP from '../ja_JP';
import knIN from '../kn_IN';
import koKR from '../ko_KR';
import kuIQ from '../ku_IQ';
import kmrIQ from '../kmr_IQ';
import lvLV from '../lv_LV';
import mkMK from '../mk_MK';
import mnMN from '../mn_MN';
@ -99,7 +99,7 @@ const locales = [
jaJP,
knIN,
koKR,
kuIQ,
kmrIQ,
mkMK,
msMY,
mnMN,

View File

@ -0,0 +1,3 @@
import locale from '../locale/kmr_IQ';
export default locale;

View File

@ -1,62 +1,3 @@
import Pagination from 'rc-pagination/lib/locale/ta_IN';
import DatePicker from '../date-picker/locale/ta_IN';
import TimePicker from '../time-picker/locale/ta_IN';
import Calendar from '../calendar/locale/ta_IN';
import locale from '../locale/ta_IN';
export default {
locale: 'ta',
Pagination,
DatePicker,
TimePicker,
Calendar,
// locales for all comoponents
global: {
placeholder: 'தேதியைத் தேர்ந்தெடுக்கவும்',
},
Table: {
filterTitle: 'பட்டியலை மூடு',
filterConfirm: 'சரி',
filterReset: 'மீட்டமை',
emptyText: 'தகவல் இல்லை',
selectAll: 'அனைத்தையும் தேர்வுசெய்',
selectInvert: 'தலைகீழாக மாற்று',
sortTitle: 'தலைப்பை வரிசைப்படுத்தவும்',
},
Modal: {
okText: 'சரி',
cancelText: 'ரத்து செய்யவும்',
justOkText: 'பரவாயில்லை, சரி',
},
Popconfirm: {
okText: 'சரி',
cancelText: 'ரத்து செய்யவும்',
},
Transfer: {
titles: ['', ''],
notFoundContent: 'உள்ளடக்கம் கிடைக்கவில்லை',
searchPlaceholder: 'இங்கு தேடவும்',
itemUnit: 'தகவல்',
itemsUnit: 'தகவல்கள்',
},
Upload: {
uploading: 'பதிவேற்றுகிறது...',
removeFile: 'கோப்பை அகற்று',
uploadError: 'பதிவேற்றுவதில் பிழை',
previewFile: 'கோப்பை முன்னோட்டமிடுங்கள்',
},
Empty: {
description: 'தகவல் இல்லை',
},
Icon: {
icon: 'உருவம்',
},
Text: {
edit: 'திருத்து',
copy: 'நகல் எடு',
copied: 'நகல் எடுக்கப்பட்டது',
expand: 'விரிவாக்கவும்',
},
PageHeader: {
back: 'பின் செல்லவும்',
},
};
export default locale;

View File

@ -0,0 +1,46 @@
import Pagination from 'rc-pagination/lib/locale/kmr_IQ';
import DatePicker from '../date-picker/locale/kmr_IQ';
import TimePicker from '../time-picker/locale/kmr_IQ';
import Calendar from '../calendar/locale/kmr_IQ';
import { Locale } from '../locale-provider';
const localeValues: Locale = {
locale: 'ku',
Pagination,
DatePicker,
TimePicker,
Calendar,
Table: {
filterTitle: 'Menuê peldanka',
filterConfirm: 'Temam',
filterReset: 'Jê bibe',
selectAll: 'Hemî hilbijêre',
selectInvert: 'Hilbijartinan veguhere',
},
Modal: {
okText: 'Temam',
cancelText: 'Betal ke',
justOkText: 'Temam',
},
Popconfirm: {
okText: 'Temam',
cancelText: 'Betal ke',
},
Transfer: {
searchPlaceholder: 'Lêgerîn',
itemUnit: 'tişt',
itemsUnit: 'tişt',
},
Upload: {
uploading: 'Bardike...',
removeFile: 'Pelê rabike',
uploadError: 'Xeta barkirine',
previewFile: 'Pelê pêşbibîne',
downloadFile: 'Pelê dakêşin',
},
Empty: {
description: 'Agahî tune',
},
};
export default localeValues;

View File

@ -1,9 +1,13 @@
import Pagination from 'rc-pagination/lib/locale/ku_IQ';
import DatePicker from '../date-picker/locale/ku_IQ';
import TimePicker from '../time-picker/locale/ku_IQ';
import Calendar from '../calendar/locale/ku_IQ';
import Pagination from 'rc-pagination/lib/locale/kmr_IQ';
import DatePicker from '../date-picker/locale/kmr_IQ';
import TimePicker from '../time-picker/locale/kmr_IQ';
import Calendar from '../calendar/locale/kmr_IQ';
import { Locale } from '../locale-provider';
// please use antd/es/locale/kmr_IQ instead
// keep this file for compatibility
// https://github.com/ant-design/ant-design/issues/25778
const localeValues: Locale = {
locale: 'ku-iq',
Pagination,

View File

@ -56,7 +56,7 @@ The following languages are currently supported:
| Italian | it_IT |
| Icelandic | is_IS |
| Japanese | ja_JP |
| Kurdish (Iraq) | ku_IQ |
| Kurdish (Kurmanji) | kmr_IQ |
| Kannada | kn_IN |
| Korean | ko_KR |
| Latvian | lv_LV |

View File

@ -53,7 +53,7 @@ return (
| 意大利语 | it_IT |
| 冰岛语 | is_IS |
| 日语 | ja_JP |
| 库尔德语 (伊拉克) | ku_IQ |
| 北库尔德语 | kmr_IQ |
| 卡纳达语 | kn_IN |
| 韩语/朝鲜语 | ko_KR |
| 拉脱维亚语 | lv_LV |

View File

@ -129,8 +129,8 @@
"rc-menu": "~8.5.2",
"rc-motion": "^1.0.0",
"rc-notification": "~4.4.0",
"rc-pagination": "~2.4.5",
"rc-picker": "~1.15.1",
"rc-pagination": "~3.0.0",
"rc-picker": "~2.0.1",
"rc-progress": "~3.0.0",
"rc-rate": "~2.8.2",
"rc-resize-observer": "^0.2.3",