File size: 4,216 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 |
import Pagination from 'rc-pagination/lib/locale/id_ID';
import type { Locale } from '.';
import Calendar from '../calendar/locale/id_ID';
import DatePicker from '../date-picker/locale/id_ID';
import TimePicker from '../time-picker/locale/id_ID';
const typeTemplate = '${label} tidak valid ${type}';
const localeValues: Locale = {
locale: 'id',
Pagination,
DatePicker,
TimePicker,
Calendar,
global: {
placeholder: 'Silahkan pilih',
close: 'Tutup',
},
Table: {
filterTitle: 'Menu filter',
filterConfirm: 'OK',
filterReset: 'Reset',
filterEmptyText: 'Tidak ada filter',
filterCheckAll: 'Pilih semua item',
filterSearchPlaceholder: 'Cari di filter',
emptyText: 'Tidak ada data',
selectAll: 'Pilih halaman saat ini',
selectInvert: 'Balikkan halaman saat ini',
selectNone: 'Hapus semua data',
selectionAll: 'Pilih semua data',
sortTitle: 'Urutkan',
expand: 'Perluas baris',
collapse: 'Perkecil baris',
triggerDesc: 'Klik untuk mengurutkan secara menurun',
triggerAsc: 'Klik untuk mengurutkan secara menaik',
cancelSort: 'Klik untuk membatalkan pengurutan',
},
Tour: {
Next: 'Selanjutnya',
Previous: 'Sebelumnya',
Finish: 'Selesai',
},
Modal: {
okText: 'OK',
cancelText: 'Batal',
justOkText: 'OK',
},
Popconfirm: {
okText: 'OK',
cancelText: 'Batal',
},
Transfer: {
titles: ['', ''],
searchPlaceholder: 'Cari di sini',
itemUnit: 'data',
itemsUnit: 'data',
remove: 'Hapus',
selectCurrent: 'Pilih halaman saat ini',
removeCurrent: 'Hapus halaman saat ini',
selectAll: 'Pilih semua data',
deselectAll: 'Batal pilih semua data',
removeAll: 'Hapus semua data',
selectInvert: 'Balikkan halaman saat ini',
},
Upload: {
uploading: 'Mengunggah...',
removeFile: 'Hapus file',
uploadError: 'Kesalahan pengunggahan',
previewFile: 'Pratinjau file',
downloadFile: 'Unduh file',
},
Empty: {
description: 'Tidak ada data',
},
Icon: {
icon: 'ikon',
},
Text: {
edit: 'Ubah',
copy: 'Salin',
copied: 'Disalin',
expand: 'Perluas',
collapse: 'Perkecil',
},
Form: {
optional: '(optional)',
defaultValidateMessages: {
default: 'Kesalahan validasi untuk ${label}',
required: 'Tolong masukkan ${label}',
enum: '${label} harus menjadi salah satu dari [${enum}]',
whitespace: '${label} tidak boleh berupa karakter kosong',
date: {
format: '${label} format tanggal tidak valid',
parse: '${label} tidak dapat diubah menjadi tanggal',
invalid: '${label} adalah tanggal yang tidak valid',
},
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} harus berupa ${len} karakter',
min: '${label} harus minimal ${min} karakter',
max: '${label} harus maksimal ${max} karakter',
range: '${label} harus diantara ${min}-${max} karakter',
},
number: {
len: '${label} harus sama dengan ${len}',
min: '${label} harus minimal ${min}',
max: '${label} harus maksimal ${max}',
range: '${label} harus di antara ${min}-${max}',
},
array: {
len: 'Harus ${len} ${label}',
min: 'Minimal ${min} ${label}',
max: 'Maksimal ${max} ${label}',
range: 'Jumlah ${label} harus di antara ${min}-${max}',
},
pattern: {
mismatch: '${label} tidak sesuai dengan pola ${pattern}',
},
},
},
Image: {
preview: 'Pratinjau',
},
QRCode: {
expired: 'Kode QR sudah habis masa berlakunya',
refresh: 'Segarkan',
scanned: 'Dipindai',
},
ColorPicker: {
presetEmpty: 'Kosong',
transparent: 'Transparan',
singleColor: 'Warna tunggal',
gradientColor: 'Warna gradien',
},
};
export default localeValues;
|