diff --git a/components/calendar/locale/my_MM.ts b/components/calendar/locale/my_MM.ts new file mode 100644 index 0000000000..f2a9d1b0a7 --- /dev/null +++ b/components/calendar/locale/my_MM.ts @@ -0,0 +1,3 @@ +import myMM from '../../date-picker/locale/my_MM'; + +export default myMM; diff --git a/components/date-picker/locale/my_MM.ts b/components/date-picker/locale/my_MM.ts new file mode 100644 index 0000000000..2657004ca5 --- /dev/null +++ b/components/date-picker/locale/my_MM.ts @@ -0,0 +1,28 @@ +import CalendarLocale from 'rc-picker/lib/locale/my_MM'; +import TimePickerLocale from '../../time-picker/locale/my_MM'; +import type { PickerLocale } from '../generatePicker'; + +// Merge into a locale object +const locale: PickerLocale = { + lang: { + placeholder: 'ရက်စွဲကို ရွေးပါ။', + yearPlaceholder: 'နှစ်ကို ရွေးပါ။', + quarterPlaceholder: 'လေးပုံတစ်ပုံကို ရွေးပါ။', + monthPlaceholder: 'လကိုရွေးပါ။', + weekPlaceholder: 'ရက်သတ္တပတ်ကို ရွေးပါ။', + rangePlaceholder: ['စတင်သည့်ရက်စွဲ', 'ကုန်ဆုံးရက်'], + rangeYearPlaceholder: ['စတင်သည့်နှစ်', 'နှစ်ကုန်'], + rangeQuarterPlaceholder: ['လေးပုံတစ်ပုံကို စတင်ပါ။', 'အဆုံးသုံးလ'], + rangeMonthPlaceholder: ['စတင်လ', 'လကုန်'], + rangeWeekPlaceholder: ['ရက်သတ္တပတ်စတင်ပါ။', 'သီတင်းပတ်ကုန်'], + ...CalendarLocale, + }, + timePickerLocale: { + ...TimePickerLocale, + }, +}; + +// All settings at: +// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json + +export default locale; diff --git a/components/locale-provider/__tests__/__snapshots__/index.test.tsx.snap b/components/locale-provider/__tests__/__snapshots__/index.test.tsx.snap index a9ab4912ec..f193372486 100644 --- a/components/locale-provider/__tests__/__snapshots__/index.test.tsx.snap +++ b/components/locale-provider/__tests__/__snapshots__/index.test.tsx.snap @@ -226182,6 +226182,5104 @@ exports[`Locale Provider should display the text as ms-my 1`] = ` `; +exports[`Locale Provider should display the text as my 1`] = ` +
+ Su + | ++ Mo + | ++ Tu + | ++ We + | ++ Th + | ++ Fr + | ++ Sa + | +
---|---|---|---|---|---|---|
+
+
+
+ 27
+
+
+ |
+
+
+
+
+ 28
+
+
+ |
+
+
+
+
+ 29
+
+
+ |
+
+
+
+
+ 30
+
+
+ |
+
+
+
+
+ 31
+
+
+ |
+
+
+
+
+ 01
+
+
+ |
+
+
+
+
+ 02
+
+
+ |
+
+
+
+
+ 03
+
+
+ |
+
+
+
+
+ 04
+
+
+ |
+
+
+
+
+ 05
+
+
+ |
+
+
+
+
+ 06
+
+
+ |
+
+
+
+
+ 07
+
+
+ |
+
+
+
+
+ 08
+
+
+ |
+
+
+
+
+ 09
+
+
+ |
+
+
+
+
+ 10
+
+
+ |
+
+
+
+
+ 11
+
+
+ |
+
+
+
+
+ 12
+
+
+ |
+
+
+
+
+ 13
+
+
+ |
+
+
+
+
+ 14
+
+
+ |
+
+
+
+
+ 15
+
+
+ |
+
+
+
+
+ 16
+
+
+ |
+
+
+
+
+ 17
+
+
+ |
+
+
+
+
+ 18
+
+
+ |
+
+
+
+
+ 19
+
+
+ |
+
+
+
+
+ 20
+
+
+ |
+
+
+
+
+ 21
+
+
+ |
+
+
+
+
+ 22
+
+
+ |
+
+
+
+
+ 23
+
+
+ |
+
+
+
+
+ 24
+
+
+ |
+
+
+
+
+ 25
+
+
+ |
+
+
+
+
+ 26
+
+
+ |
+
+
+
+
+ 27
+
+
+ |
+
+
+
+
+ 28
+
+
+ |
+
+
+
+
+ 29
+
+
+ |
+
+
+
+
+ 30
+
+
+ |
+
+
+
+
+ 01
+
+
+ |
+
+
+
+
+ 02
+
+
+ |
+
+
+
+
+ 03
+
+
+ |
+
+
+
+
+ 04
+
+
+ |
+
+
+
+
+ 05
+
+
+ |
+
+
+
+
+ 06
+
+
+ |
+
+
+
+
+ 07
+
+
+ |
+
+
+
+ Name
+
+
+
+
+
+
+
+ |
+ + Age + | +
---|---|
+
+
+
+
+
+
+ ဒေတာမရှိပါ။
+
+ |
+