From c51f1cfa5fb1c394520a2c791c819d950c00e59b Mon Sep 17 00:00:00 2001 From: neverland Date: Fri, 11 Feb 2022 16:46:21 +0800 Subject: [PATCH] feat(Locale): add Indonesian translation (#10289) * feat(Locale): add Indonesian translation * docs: upd --- packages/vant/src/locale/README.md | 1 + packages/vant/src/locale/README.zh-CN.md | 5 +- packages/vant/src/locale/lang/id-ID.ts | 64 ++++++++++++++++++++++++ 3 files changed, 68 insertions(+), 2 deletions(-) create mode 100644 packages/vant/src/locale/lang/id-ID.ts diff --git a/packages/vant/src/locale/README.md b/packages/vant/src/locale/README.md index 7c6236473..5839e0ecc 100644 --- a/packages/vant/src/locale/README.md +++ b/packages/vant/src/locale/README.md @@ -48,6 +48,7 @@ Current supported languages: | Spanish (Spain) | es-ES | - | | French | fr-FR | - | | Hindi | hi-IN | `v3.4.3` | +| Indonesian | id-ID | `v3.4.5` | | Italian | it-IT | `v3.4.5` | | Japanese | ja-JP | - | | Korean | ko-KR | `v3.4.3` | diff --git a/packages/vant/src/locale/README.zh-CN.md b/packages/vant/src/locale/README.zh-CN.md index 4cb4c3098..c11d73c82 100644 --- a/packages/vant/src/locale/README.zh-CN.md +++ b/packages/vant/src/locale/README.zh-CN.md @@ -44,16 +44,17 @@ Locale.add(messages); | -------------------- | ------------ | -------- | | 孟加拉语(孟加拉国) | bn-BD | `v3.4.5` | | 德语 | de-DE | - | -| 德语 (正式) | de-DE-formal | - | +| 德语(正式) | de-DE-formal | - | | 英语 | en-US | - | | 西班牙语 | es-ES | - | | 法语 | fr-FR | - | | 印地语 | hi-IN | `v3.4.3` | +| 印度尼西亚语 | id-ID | `v3.4.5` | | 意大利语 | it-IT | `v3.4.5` | | 日语 | ja-JP | - | | 韩语/朝鲜语 | ko-KR | `v3.4.3` | | 挪威语 | nb-NO | - | -| 葡萄牙语 (巴西) | pt-BR | `v3.3.3` | +| 葡萄牙语(巴西) | pt-BR | `v3.3.3` | | 罗马尼亚语 | ro-RO | - | | 俄罗斯语 | ru-RU | `v3.1.5` | | 土耳其语 | tr-TR | - | diff --git a/packages/vant/src/locale/lang/id-ID.ts b/packages/vant/src/locale/lang/id-ID.ts new file mode 100644 index 000000000..b8a3cee90 --- /dev/null +++ b/packages/vant/src/locale/lang/id-ID.ts @@ -0,0 +1,64 @@ +export default { + name: 'Nama', + tel: 'Telepon', + save: 'Simpan', + confirm: 'Konfirmasi', + cancel: 'Batal', + delete: 'Hapus', + loading: 'Memuat...', + noCoupon: 'Tidak ada kupon', + nameEmpty: 'Silakan isi nama', + addContact: 'Tambahkan kontak', + telInvalid: 'Nomor telepon salah format', + vanCalendar: { + end: 'Akhir', + start: 'Mulai', + title: 'Kalender', + weekdays: ['minggu', 'Senin', 'Selasa', 'Rabu', 'Kamis', 'Jumat', 'Sabtu'], + monthTitle: (year: number, month: number) => `${year}/${month}`, + rangePrompt: (maxRange: number) => + `Pilih tidak lebih dari ${maxRange} hari`, + }, + vanCascader: { + select: 'Pilih', + }, + vanPagination: { + prev: 'Sebelumnya', + next: 'Selanjutnya', + }, + vanPullRefresh: { + pulling: 'Tarik untuk menyegarkan...', + loosing: 'Loose untuk menyegarkan...', + }, + vanSubmitBar: { + label: 'Jumlah:', + }, + vanCoupon: { + unlimited: 'Tidak terbatas', + discount: (discount: number) => `${discount * 10}% off`, + condition: (condition: number) => `Setidaknya ${condition}`, + }, + vanCouponCell: { + title: 'Kupon', + count: (count: number) => `Anda memiliki kupon ${count}`, + }, + vanCouponList: { + exchange: 'Pertukaran', + close: 'Tutup', + enable: 'Tersedia', + disabled: 'Tidak tersedia', + placeholder: 'Kode kupon', + }, + vanAddressEdit: { + area: 'Daerah', + postal: 'pos', + areaEmpty: 'Silakan pilih area penerima', + addressEmpty: 'Alamat tidak boleh kosong', + postalEmpty: 'Kode pos salah', + addressDetail: 'Alamat', + defaultAddress: 'Tetapkan sebagai alamat default', + }, + vanAddressList: { + add: 'Tambahkan alamat baru', + }, +};