mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 05:05:48 +08:00
Add support for Indonesian internationalization
This commit is contained in:
parent
c79d69275b
commit
02cedda1e9
2
components/calendar/locale/id_ID.tsx
Normal file
2
components/calendar/locale/id_ID.tsx
Normal file
@ -0,0 +1,2 @@
|
||||
import id_ID from '../../date-picker/locale/id_ID';
|
||||
export default id_ID;
|
19
components/date-picker/locale/id_ID.tsx
Normal file
19
components/date-picker/locale/id_ID.tsx
Normal file
@ -0,0 +1,19 @@
|
||||
import CalendarLocale from 'rc-calendar/lib/locale/id_ID';
|
||||
import TimePickerLocale from '../../time-picker/locale/id_ID';
|
||||
|
||||
// Merge into a locale object
|
||||
const locale = {
|
||||
lang: {
|
||||
placeholder: 'Pilih tanggal',
|
||||
rangePlaceholder: ['Mulai tanggal', 'Tanggal akhir'],
|
||||
...CalendarLocale,
|
||||
},
|
||||
timePickerLocale: {
|
||||
...TimePickerLocale,
|
||||
},
|
||||
};
|
||||
|
||||
// All settings at:
|
||||
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
|
||||
|
||||
export default locale;
|
46
components/locale-provider/id_ID.tsx
Normal file
46
components/locale-provider/id_ID.tsx
Normal file
@ -0,0 +1,46 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/id_ID';
|
||||
import DatePicker from '../date-picker/locale/id_ID';
|
||||
import TimePicker from '../time-picker/locale/id_ID';
|
||||
import Calendar from '../calendar/locale/id_ID';
|
||||
|
||||
export default {
|
||||
locale: 'id',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Menu filter',
|
||||
filterConfirm: 'baik',
|
||||
filterReset: 'Setel ulang',
|
||||
emptyText: 'Tidak ada data',
|
||||
selectAll: 'Pilih halaman saat ini',
|
||||
selectInvert: 'Balikkan halaman saat ini',
|
||||
sortTitle: 'Menyortir',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'baik',
|
||||
cancelText: 'Membatalkan',
|
||||
justOkText: 'baik',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'baik',
|
||||
cancelText: 'Membatalkan',
|
||||
},
|
||||
Transfer: {
|
||||
titles: ['', ''],
|
||||
notFoundContent: 'Tidak ditemukan',
|
||||
searchPlaceholder: 'Cari di sini',
|
||||
itemUnit: 'barang',
|
||||
itemsUnit: 'item',
|
||||
},
|
||||
Select: {
|
||||
notFoundContent: 'Tidak ditemukan',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Mengunggah...',
|
||||
removeFile: 'Hapus file',
|
||||
uploadError: 'Kesalahan pengunggahan',
|
||||
previewFile: 'File pratinjau',
|
||||
},
|
||||
};
|
5
components/time-picker/locale/id_ID.tsx
Normal file
5
components/time-picker/locale/id_ID.tsx
Normal file
@ -0,0 +1,5 @@
|
||||
const locale = {
|
||||
placeholder: 'Pilih waktu',
|
||||
};
|
||||
|
||||
export default locale;
|
Loading…
Reference in New Issue
Block a user