Skip to content

Commit e088adf

Browse files
yoyo837afc163li-jia-nan
authored
feat: add Uzbek(latn) locale (ant-design#47899)
* feat: add Uzbek(latn) locale * size-limit * Update docs/react/i18n.zh-CN.md Co-authored-by: afc163 <[email protected]> Signed-off-by: Amumu <[email protected]> --------- Signed-off-by: Amumu <[email protected]> Co-authored-by: afc163 <[email protected]> Co-authored-by: lijianan <[email protected]>
1 parent 7247c3b commit e088adf

File tree

8 files changed

+5469
-0
lines changed

8 files changed

+5469
-0
lines changed

components/calendar/locale/uz_UZ.ts

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import uzUZ from '../../date-picker/locale/uz_UZ';
2+
3+
export default uzUZ;
+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import CalendarLocale from 'rc-picker/lib/locale/uz_UZ';
2+
3+
import TimePickerLocale from '../../time-picker/locale/uz_UZ';
4+
import type { PickerLocale } from '../generatePicker';
5+
6+
// Merge into a locale object
7+
const locale: PickerLocale = {
8+
lang: {
9+
placeholder: 'Sanani tanlang',
10+
yearPlaceholder: 'Yilni tanlang',
11+
quarterPlaceholder: 'Chorakni tanlang',
12+
monthPlaceholder: 'Oyni tanlang',
13+
weekPlaceholder: 'Haftani tanlang',
14+
rangePlaceholder: ['Boshlanish sanasi', 'Tugallanish sanasi'],
15+
rangeYearPlaceholder: ['Boshlanish yili', 'Tugallanish yili'],
16+
rangeMonthPlaceholder: ['Boshlanish oyi', 'Tugallanish oyi'],
17+
rangeWeekPlaceholder: ['Boshlanish haftasi', 'Tugallanish haftasi'],
18+
...CalendarLocale,
19+
},
20+
timePickerLocale: {
21+
...TimePickerLocale,
22+
},
23+
};
24+
25+
// All settings at:
26+
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
27+
28+
export default locale;

0 commit comments

Comments
 (0)