-
-
Notifications
You must be signed in to change notification settings - Fork 46.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: translate all to indonesian (#48287)
* feat: translate all to indonesian I have transalate all to Indonesian Signed-off-by: Edi Kurniawan <edikurniawan.dev@gmail.com> * fix: use ' instead of " Signed-off-by: Edi Kurniawan <edikurniawan.dev@gmail.com> * feat: ✨ translate to indonesian --------- Signed-off-by: Edi Kurniawan <edikurniawan.dev@gmail.com> Co-authored-by: vagusX <vagusxl@gmail.com>
- Loading branch information
1 parent
8c50a65
commit acbc46d
Showing
2 changed files
with
118 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,148 @@ | ||
/* eslint-disable no-template-curly-in-string */ | ||
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', | ||
}, | ||
Table: { | ||
filterTitle: 'Saring', | ||
filterConfirm: 'OK', | ||
filterReset: 'Hapus', | ||
selectAll: 'Pilih semua di halaman ini', | ||
selectInvert: 'Balikkan pilihan di halaman ini', | ||
filterTitle: 'Menu filter', | ||
filterConfirm: 'Oke', | ||
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', | ||
okText: 'Oke', | ||
cancelText: 'Batal', | ||
justOkText: 'OK', | ||
justOkText: 'Oke', | ||
}, | ||
Popconfirm: { | ||
okText: 'OK', | ||
okText: 'Oke', | ||
cancelText: 'Batal', | ||
}, | ||
Transfer: { | ||
titles: ['', ''], | ||
searchPlaceholder: 'Cari', | ||
itemUnit: 'item', | ||
itemsUnit: 'item', | ||
searchPlaceholder: 'Cari di sini', | ||
itemUnit: 'data', | ||
itemsUnit: 'data', | ||
remove: 'Hapus', | ||
selectCurrent: 'Pilih halaman saat ini', | ||
removeCurrent: 'Hapus halaman saat ini', | ||
selectAll: 'Pilih semua data', | ||
removeAll: 'Hapus semua data', | ||
selectInvert: 'Balikkan halaman saat ini', | ||
}, | ||
Upload: { | ||
uploading: 'Mengunggah...', | ||
removeFile: 'Hapus file', | ||
uploadError: 'Kesalahan pengunggahan', | ||
previewFile: 'File pratinjau', | ||
downloadFile: 'Unduh berkas', | ||
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', | ||
}, | ||
}; | ||
|
||
export default localeValues; |