mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
Feature: Burmese translation (#41366)
* feat: ✨ Burmese translation * fix: fix Burmese - MYANMAR locale typo * Update components/locale/my_MM.ts Co-authored-by: Amumu <yoyo837@hotmail.com> * fix: 🐞 modify package version * fix: 🐞 add locale snap * docs: 📃 update docs --------- Co-authored-by: Amumu <yoyo837@hotmail.com>
This commit is contained in:
parent
58d9cbd3d3
commit
2ece2c6b63
3
components/calendar/locale/my_MM.ts
Normal file
3
components/calendar/locale/my_MM.ts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
import myMM from '../../date-picker/locale/my_MM';
|
||||||
|
|
||||||
|
export default myMM;
|
28
components/date-picker/locale/my_MM.ts
Normal file
28
components/date-picker/locale/my_MM.ts
Normal file
@ -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;
|
File diff suppressed because it is too large
Load Diff
@ -150,6 +150,7 @@ import viVN from '../../locale/vi_VN';
|
|||||||
import zhCN from '../../locale/zh_CN';
|
import zhCN from '../../locale/zh_CN';
|
||||||
import zhHK from '../../locale/zh_HK';
|
import zhHK from '../../locale/zh_HK';
|
||||||
import zhTW from '../../locale/zh_TW';
|
import zhTW from '../../locale/zh_TW';
|
||||||
|
import myMM from '../../locale/my_MM';
|
||||||
|
|
||||||
dayjs.extend(preParsePostFormat);
|
dayjs.extend(preParsePostFormat);
|
||||||
|
|
||||||
@ -222,6 +223,7 @@ const locales = [
|
|||||||
zhHK,
|
zhHK,
|
||||||
zhTW,
|
zhTW,
|
||||||
urPK,
|
urPK,
|
||||||
|
myMM,
|
||||||
];
|
];
|
||||||
|
|
||||||
const { Option } = Select;
|
const { Option } = Select;
|
||||||
|
144
components/locale/my_MM.ts
Normal file
144
components/locale/my_MM.ts
Normal file
@ -0,0 +1,144 @@
|
|||||||
|
/* eslint-disable no-template-curly-in-string */
|
||||||
|
import Pagination from 'rc-pagination/lib/locale/my_MM';
|
||||||
|
import Calendar from '../calendar/locale/my_MM';
|
||||||
|
import DatePicker from '../date-picker/locale/my_MM';
|
||||||
|
import type { Locale } from '.';
|
||||||
|
import TimePicker from '../time-picker/locale/my_MM';
|
||||||
|
|
||||||
|
|
||||||
|
const typeTemplate = '${label} သည် တရားဝင် ${type} မဟုတ်ပါ';
|
||||||
|
|
||||||
|
const localeValues: Locale = {
|
||||||
|
locale: 'my',
|
||||||
|
Pagination,
|
||||||
|
DatePicker,
|
||||||
|
TimePicker,
|
||||||
|
Calendar,
|
||||||
|
// locales for all components
|
||||||
|
global: {
|
||||||
|
placeholder: 'ကျေးဇူးပြု၍ ရွေးချယ်ပါ။',
|
||||||
|
},
|
||||||
|
Table: {
|
||||||
|
filterTitle: 'စစ်ထုတ်ခြင်း မီနူ',
|
||||||
|
filterConfirm: 'အိုကေ',
|
||||||
|
filterReset: 'ပြန်လည်သတ်မှတ်ပါ။',
|
||||||
|
filterEmptyText: 'စစ်ထုတ်မှုများမရှိပါ။',
|
||||||
|
filterCheckall: 'ပစ္စည်းအားလုံးကို ရွေးပါ။',
|
||||||
|
filterSearchPlaceholder: 'စစ်ထုတ်မှုများတွင် ရှာဖွေပါ။',
|
||||||
|
selectAll: 'လက်ရှိစာမျက်နှာကို ရွေးပါ။',
|
||||||
|
selectInvert: 'လက်ရှိစာမျက်နှာကို ပြောင်းလိုက်ပါ။',
|
||||||
|
selectNone: 'ဒေတာအားလုံးကို ရှင်းလင်းပါ။',
|
||||||
|
selectionAll: 'ဒေတာအားလုံးကို ရွေးပါ။',
|
||||||
|
sortTitle: 'မျိုးတူစု',
|
||||||
|
expand: 'အတန်းချဲ့ပါ။',
|
||||||
|
collapse: 'အတန်းကို ခေါက်သိမ်းပါ။',
|
||||||
|
cancelSort: 'အမျိုးအစားခွဲခြင်းကို ပယ်ဖျက်ရန် နှိပ်ပါ။',
|
||||||
|
},
|
||||||
|
Tour: {
|
||||||
|
Next: 'နောက်တစ်ခု',
|
||||||
|
Previous: 'အရင်',
|
||||||
|
Finish: 'ပြီးအောင်',
|
||||||
|
},
|
||||||
|
Modal: {
|
||||||
|
okText: 'အိုကေ',
|
||||||
|
cancelText: 'မလုပ်တော့',
|
||||||
|
justOkText: 'အိုကေ',
|
||||||
|
},
|
||||||
|
Popconfirm: {
|
||||||
|
cancelText: 'မလုပ်တော့',
|
||||||
|
okText: 'အိုကေ',
|
||||||
|
},
|
||||||
|
Transfer: {
|
||||||
|
titles: ['', ''],
|
||||||
|
searchPlaceholder: 'ဒီမှာရှာပါ။',
|
||||||
|
itemUnit: 'ပစ္စည်း',
|
||||||
|
itemsUnit: 'ပစ္စည်းများ',
|
||||||
|
remove: 'ဖယ်ရှားပါ။',
|
||||||
|
selectCurrent: 'လက်ရှိစာမျက်နှာကို ရွေးပါ။',
|
||||||
|
removeCurrent: 'လက်ရှိစာမျက်နှာကို ဖယ်ရှားပါ။',
|
||||||
|
selectAll: 'ဒေတာအားလုံးကို ရွေးပါ။',
|
||||||
|
removeAll: 'ဒေတာအားလုံးကို ဖယ်ရှားပါ။',
|
||||||
|
selectInvert: 'လက်ရှိစာမျက်နှာကို ပြောင်းလိုက်ပါ။',
|
||||||
|
},
|
||||||
|
Upload: {
|
||||||
|
uploading: 'တင်ခြင်း။...',
|
||||||
|
removeFile: 'ဖိုင်ကို ဖယ်ရှားပါ။',
|
||||||
|
uploadError: 'အပ်လုဒ်အမှား',
|
||||||
|
previewFile: 'ဖိုင်ကို အစမ်းကြည့်ပါ။',
|
||||||
|
downloadFile: 'ဖိုင်ကိုဒေါင်းလုဒ်လုပ်ပါ။',
|
||||||
|
},
|
||||||
|
Empty: {
|
||||||
|
description: 'ဒေတာမရှိပါ။',
|
||||||
|
},
|
||||||
|
Icon: {
|
||||||
|
icon: 'အိုင်ကွန်',
|
||||||
|
},
|
||||||
|
Text: {
|
||||||
|
edit: 'တည်းဖြတ်ပါ။',
|
||||||
|
copy: 'ကော်ပီ',
|
||||||
|
copied: 'ကူးယူသည်။',
|
||||||
|
expand: 'ချဲ့ထွင်ပါ။',
|
||||||
|
},
|
||||||
|
PageHeader: {
|
||||||
|
back: 'ကျော',
|
||||||
|
},
|
||||||
|
Form: {
|
||||||
|
optional: '(ချန်လှပ်ထားနိုင်သည်)',
|
||||||
|
defaultValidateMessages: {
|
||||||
|
default: '${label} အတွက် အကွက်အတည်ပြုခြင်း အမှား',
|
||||||
|
required: '${label} ကို ထည့်ပါ',
|
||||||
|
enum: '${label} သည် [${enum}] မှ တစ်ခု ဖြစ်ရမည်',
|
||||||
|
whitespace: '${label} သည် အလွတ်စာလုံးမဖြစ်ရပါ။',
|
||||||
|
date: {
|
||||||
|
format: '${label} ရက်စွဲဖော်မတ်သည် မမှန်ကန်ပါ။',
|
||||||
|
parse: '${label} ကို ရက်စွဲအဖြစ် ပြောင်းလဲ၍မရပါ။',
|
||||||
|
invalid: '${label} သည် မမှန်ကန်သော ရက်စွဲတစ်ခုဖြစ်သည်။',
|
||||||
|
},
|
||||||
|
types: {
|
||||||
|
string: typeTemplate,
|
||||||
|
method: typeTemplate,
|
||||||
|
array: typeTemplate,
|
||||||
|
object: typeTemplate,
|
||||||
|
number: typeTemplate,
|
||||||
|
date: typeTemplate,
|
||||||
|
boolean: typeTemplate,
|
||||||
|
integer: typeTemplate,
|
||||||
|
float: typeTemplate,
|
||||||
|
regexp: typeTemplate,
|
||||||
|
email: typeTemplate,
|
||||||
|
url: typeTemplate,
|
||||||
|
hex: typeTemplate,
|
||||||
|
},
|
||||||
|
string: {
|
||||||
|
len: '${label} သည် ${len} စာလုံးဖြစ်ရမည်။',
|
||||||
|
min: '${label} သည် အနည်းဆုံး စာလုံး ${min} ရှိရမည်။',
|
||||||
|
max: '${label} သည် ${max} စာလုံးအထိ ရှိရပါမည်။',
|
||||||
|
range: '${label} သည် ${min}-${max} စာလုံးကြားရှိရမည်။',
|
||||||
|
},
|
||||||
|
number: {
|
||||||
|
len: '${label} သည် ${len} နှင့် ညီရမည်',
|
||||||
|
min: '${label} သည် အနည်းဆုံး ${min} ဖြစ်ရမည်',
|
||||||
|
max: '${label} သည် အများဆုံး ${max} ဖြစ်ရမည်',
|
||||||
|
range: '${label} သည် ${min}-${max} ကြားရှိရမည်',
|
||||||
|
},
|
||||||
|
array: {
|
||||||
|
len: '${len} ${label} ဖြစ်ရမည်',
|
||||||
|
min: 'အနည်းဆုံး ${min} ${label}',
|
||||||
|
max: 'အများဆုံး ${max} ${label}',
|
||||||
|
range: '${label} ၏ ပမာဏသည် ${min}-${max} အကြား ဖြစ်ရမည်',
|
||||||
|
},
|
||||||
|
pattern: {
|
||||||
|
mismatch: '${label} သည် ပုံစံ ${pattern} နှင့် မကိုက်ညီပါ',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Image: {
|
||||||
|
preview: 'စမ်းကြည့်ပါ။',
|
||||||
|
},
|
||||||
|
QRCode: {
|
||||||
|
expired: 'QR ကုဒ် သက်တမ်းကုန်သွားပါပြီ။',
|
||||||
|
refresh: 'ပြန်လည်စတင်ပါ။',
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
export default localeValues;
|
8
components/time-picker/locale/my_MM.ts
Normal file
8
components/time-picker/locale/my_MM.ts
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
import type { TimePickerLocale } from '../index';
|
||||||
|
|
||||||
|
const locale: TimePickerLocale = {
|
||||||
|
placeholder: 'အချိန်ရွေးပါ။',
|
||||||
|
rangePlaceholder: ['စတင်ချိန်', 'ကုန်ဆုံးချိန်'],
|
||||||
|
};
|
||||||
|
|
||||||
|
export default locale;
|
@ -97,6 +97,7 @@ The following languages are currently supported:
|
|||||||
| Chinese (Simplified) | zh_CN |
|
| Chinese (Simplified) | zh_CN |
|
||||||
| Chinese (Traditional) | zh_HK |
|
| Chinese (Traditional) | zh_HK |
|
||||||
| Chinese (Traditional) | zh_TW |
|
| Chinese (Traditional) | zh_TW |
|
||||||
|
| Burmese | my_MM |
|
||||||
|
|
||||||
See more usage at [ConfigProvider](/components/config-provider).
|
See more usage at [ConfigProvider](/components/config-provider).
|
||||||
|
|
||||||
|
@ -94,6 +94,7 @@ return (
|
|||||||
| 简体中文 | zh_CN |
|
| 简体中文 | zh_CN |
|
||||||
| 繁体中文(中国香港) | zh_HK |
|
| 繁体中文(中国香港) | zh_HK |
|
||||||
| 繁体中文(中国台湾) | zh_TW |
|
| 繁体中文(中国台湾) | zh_TW |
|
||||||
|
| 缅甸语 | my_MM |
|
||||||
|
|
||||||
具体的使用方法请参考 [ConfigProvider 文档](/components/config-provider-cn)。
|
具体的使用方法请参考 [ConfigProvider 文档](/components/config-provider-cn)。
|
||||||
|
|
||||||
|
@ -134,8 +134,8 @@
|
|||||||
"rc-menu": "~9.8.2",
|
"rc-menu": "~9.8.2",
|
||||||
"rc-motion": "^2.6.1",
|
"rc-motion": "^2.6.1",
|
||||||
"rc-notification": "~5.0.0",
|
"rc-notification": "~5.0.0",
|
||||||
"rc-pagination": "~3.3.0",
|
"rc-pagination": "~3.3.1",
|
||||||
"rc-picker": "~3.3.1",
|
"rc-picker": "~3.3.4",
|
||||||
"rc-progress": "~3.4.1",
|
"rc-progress": "~3.4.1",
|
||||||
"rc-rate": "~2.10.0",
|
"rc-rate": "~2.10.0",
|
||||||
"rc-resize-observer": "^1.2.0",
|
"rc-resize-observer": "^1.2.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user