mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-21 13:18:04 +08:00
832cffcdf9
* refactor: support type update * chore: update clear style * chore: bump color picker * chore: use slider * chore: bump color picker * chore: range slider * chore: layout * chore: useModeColor * chore: simplify * chore: bump color picker * refactor: event * chore: tmp lock check * chore: of it * chore: update ts def * chore: update ts def * chore: remove useless ts * chore: linear * chore: adjust style * chore: rm useless code * chore: fill color * chore: basic linear * chore: support toStr * chore: limit minCount * chore: use cache * chore: drag support: * chore: yes * chore: update demo * chore: useLayoutEffect instead * chore: fix click to add point * chore: add smmoth * chore: support of locale * chore: add locale * chore: fix lint * chore: adjust style * chore: fix lint * chore: fix style * test: fix test case * chore: fix popover * test: fix test case * chore: fix test * test: clean up * chore: fix lint * chore: fix lint * chore: fix lint * test: coverage * test: coverage * test: coverage * test: coverage * test: coverage * test: coverage * chore: fix docs * docs: update demo desc * chore: enhance hover range * fix: delete not working * chore: fix lint * test: coverage * test: coverage * chore: clean up * chore: adjust * chore: highlight * chore: adjust style * chore: fix lint * chore: update demo * chore: memo perf * refactor: up to down colors * test: update snapshot
151 lines
3.7 KiB
TypeScript
151 lines
3.7 KiB
TypeScript
/* eslint-disable no-template-curly-in-string */
|
|
import Pagination from 'rc-pagination/lib/locale/ms_MY';
|
|
|
|
import type { Locale } from '.';
|
|
import Calendar from '../calendar/locale/ms_MY';
|
|
import DatePicker from '../date-picker/locale/ms_MY';
|
|
import TimePicker from '../time-picker/locale/ms_MY';
|
|
|
|
const typeTemplate = '${label} bukan ${type} jenis yang sah';
|
|
|
|
const localeValues: Locale = {
|
|
locale: 'ms-my',
|
|
Pagination,
|
|
DatePicker,
|
|
TimePicker,
|
|
Calendar,
|
|
global: {
|
|
placeholder: 'Sila pilih',
|
|
},
|
|
Table: {
|
|
filterTitle: 'Cari dengan tajuk',
|
|
filterConfirm: 'OK',
|
|
filterReset: 'Menetapkan semula',
|
|
emptyText: 'Tiada data',
|
|
selectAll: 'Pilih Semua',
|
|
selectInvert: 'Terbalikkan',
|
|
filterEmptyText: 'Tiada Saringan',
|
|
filterCheckall: 'Semak Semua',
|
|
filterSearchPlaceholder: 'Cari',
|
|
selectNone: 'Kosong Semua',
|
|
selectionAll: 'Semua Data',
|
|
sortTitle: 'Urutkan',
|
|
expand: 'Buka',
|
|
collapse: 'Tutup',
|
|
triggerDesc: 'Turun',
|
|
triggerAsc: 'Naik',
|
|
cancelSort: 'Batal Urut',
|
|
},
|
|
Modal: {
|
|
okText: 'OK',
|
|
cancelText: 'Batal',
|
|
justOkText: 'OK',
|
|
},
|
|
Tour: {
|
|
Next: 'Seterusnya',
|
|
Previous: 'Sebelumnya',
|
|
Finish: 'Tamat',
|
|
},
|
|
Popconfirm: {
|
|
okText: 'OK',
|
|
cancelText: 'Batal',
|
|
},
|
|
Transfer: {
|
|
titles: ['', ''],
|
|
notFoundContent: 'Tidak dijumpai',
|
|
searchPlaceholder: 'Carian di sini',
|
|
itemUnit: 'item',
|
|
itemsUnit: 'item',
|
|
remove: 'Buang',
|
|
selectCurrent: 'Pilih Halaman Ini',
|
|
removeCurrent: 'Buang Dari Halaman Ini',
|
|
selectAll: 'Pilih Semua',
|
|
removeAll: 'Buang Semua',
|
|
selectInvert: 'Balik Pilihan',
|
|
},
|
|
Upload: {
|
|
uploading: 'Sedang memuat naik...',
|
|
removeFile: 'Buang fail',
|
|
uploadError: 'Masalah muat naik',
|
|
previewFile: 'Tengok fail',
|
|
downloadFile: 'Muat turun fail',
|
|
},
|
|
Empty: {
|
|
description: 'Tiada data',
|
|
},
|
|
Icon: {
|
|
icon: 'ikon',
|
|
},
|
|
Text: {
|
|
edit: 'Sunting',
|
|
copy: 'Salin',
|
|
copied: 'Berjaya menyalin',
|
|
expand: 'Kembang',
|
|
},
|
|
Form: {
|
|
optional: '(Opsional)',
|
|
defaultValidateMessages: {
|
|
default: 'Ralat pengesahan untuk ${label}',
|
|
required: 'Isi ${label}',
|
|
enum: '${label} mesti salah satu dari [${enum}]',
|
|
whitespace: '${label} tidak boleh kosong',
|
|
date: {
|
|
format: 'Format tarikh ${label} salah',
|
|
parse: '${label} tidak boleh jadi tarikh',
|
|
invalid: '${label} adalah tarikh tidak sah',
|
|
},
|
|
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} mesti ${len} aksara',
|
|
min: 'Min ${min} aksara',
|
|
max: 'Max ${max} aksara',
|
|
range: '${label} antara ${min}-${max} aksara',
|
|
},
|
|
number: {
|
|
len: '${label} sama dengan ${len}',
|
|
min: 'Min ${min}',
|
|
max: 'Max ${max}',
|
|
range: '${label} antara ${min}-${max}',
|
|
},
|
|
array: {
|
|
len: '${len} ${label}',
|
|
min: 'Min ${min} ${label}',
|
|
max: 'Max ${max} ${label}',
|
|
range: '${label} antara ${min}-${max}',
|
|
},
|
|
pattern: {
|
|
mismatch: '${label} tidak sesuai ${pattern}',
|
|
},
|
|
},
|
|
},
|
|
Image: {
|
|
preview: 'Pratonton',
|
|
},
|
|
QRCode: {
|
|
expired: 'Kod QR luput',
|
|
refresh: 'Segar Semula',
|
|
},
|
|
ColorPicker: {
|
|
presetEmpty: 'Tiada',
|
|
transparent: 'Tidak tembus cahaya',
|
|
singleColor: 'Warna tunggal',
|
|
gradientColor: 'Warna gradien',
|
|
},
|
|
};
|
|
|
|
export default localeValues;
|