diff --git a/components/calendar/locale/id_ID.tsx b/components/calendar/locale/id_ID.tsx new file mode 100644 index 0000000000..494bcf4a51 --- /dev/null +++ b/components/calendar/locale/id_ID.tsx @@ -0,0 +1,2 @@ +import id_ID from '../../date-picker/locale/id_ID'; +export default id_ID; diff --git a/components/date-picker/locale/id_ID.tsx b/components/date-picker/locale/id_ID.tsx new file mode 100644 index 0000000000..e1390af7dd --- /dev/null +++ b/components/date-picker/locale/id_ID.tsx @@ -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; diff --git a/components/locale-provider/id_ID.tsx b/components/locale-provider/id_ID.tsx new file mode 100644 index 0000000000..93b5dd0a27 --- /dev/null +++ b/components/locale-provider/id_ID.tsx @@ -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', + }, +}; diff --git a/components/time-picker/locale/id_ID.tsx b/components/time-picker/locale/id_ID.tsx new file mode 100644 index 0000000000..92c81ffe17 --- /dev/null +++ b/components/time-picker/locale/id_ID.tsx @@ -0,0 +1,5 @@ +const locale = { + placeholder: 'Pilih waktu', +}; + +export default locale;