Add support for Indonesian internationalization

This commit is contained in:
CORP\lianyufeng 2018-11-06 18:50:37 +08:00 committed by 偏右
parent c79d69275b
commit 02cedda1e9
4 changed files with 72 additions and 0 deletions

View File

@ -0,0 +1,2 @@
import id_ID from '../../date-picker/locale/id_ID';
export default id_ID;

View 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;

View 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',
},
};

View File

@ -0,0 +1,5 @@
const locale = {
placeholder: 'Pilih waktu',
};
export default locale;