From 653a7a817ffd69398be48e48362fd7ebabd784ef Mon Sep 17 00:00:00 2001 From: neverland Date: Sun, 20 Mar 2022 10:34:58 +0800 Subject: [PATCH] feat(Locale): add Icelandic lang (#10418) --- packages/vant/src/locale/README.md | 1 + packages/vant/src/locale/README.zh-CN.md | 1 + packages/vant/src/locale/lang/is-IS.ts | 71 ++++++++++++++++++++++++ 3 files changed, 73 insertions(+) create mode 100644 packages/vant/src/locale/lang/is-IS.ts diff --git a/packages/vant/src/locale/README.md b/packages/vant/src/locale/README.md index c3d8cc8bb..ef846fef8 100644 --- a/packages/vant/src/locale/README.md +++ b/packages/vant/src/locale/README.md @@ -49,6 +49,7 @@ Current supported languages: | French | fr-FR | - | | Hindi | hi-IN | `v3.4.3` | | Indonesian | id-ID | `v3.4.5` | +| Icelandic | is-IS | `v3.4.7` | | 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 29db1db15..6564575d5 100644 --- a/packages/vant/src/locale/README.zh-CN.md +++ b/packages/vant/src/locale/README.zh-CN.md @@ -50,6 +50,7 @@ Locale.add(messages); | 法语 | fr-FR | - | | 印地语 | hi-IN | `v3.4.3` | | 印度尼西亚语 | id-ID | `v3.4.5` | +| 冰岛语 | is-IS | `v3.4.7` | | 意大利语 | it-IT | `v3.4.5` | | 日语 | ja-JP | - | | 韩语/朝鲜语 | ko-KR | `v3.4.3` | diff --git a/packages/vant/src/locale/lang/is-IS.ts b/packages/vant/src/locale/lang/is-IS.ts new file mode 100644 index 000000000..88a1e6da3 --- /dev/null +++ b/packages/vant/src/locale/lang/is-IS.ts @@ -0,0 +1,71 @@ +export default { + name: 'Nafn', + tel: 'Sími', + save: 'Vista', + confirm: 'Staðfesta', + cancel: 'hætta við', + delete: 'Eyða', + loading: 'Hleður...', + noCoupon: 'Engin afsláttarmiða', + nameEmpty: 'Vinsamlegast fylltu út nafn', + addContact: 'Bæta við tengilið', + telInvalid: 'Gangað símanúmer', + vanCalendar: { + end: 'Enda', + start: 'Byrja', + title: 'Dagatal', + weekdays: [ + 'sunnudag', + 'Mánudagur', + 'þriðjudag', + 'miðvikudag', + 'fimmtudag', + 'föstudag', + 'laugardag', + ], + monthTitle: (year: number, month: number) => `${year}/${month}`, + rangePrompt: (maxRange: number) => `Veldu ekki fleiri en ${maxRange} daga`, + }, + vanCascader: { + select: 'Velja', + }, + vanPagination: { + prev: 'Fyrri', + next: 'Næst', + }, + vanPullRefresh: { + pulling: 'Dregðu til að endurnýja...', + loosing: 'Loose to refresh...', + }, + vanSubmitBar: { + label: 'Samtals:', + }, + vanCoupon: { + unlimited: 'Ótakmarkað', + discount: (discount: number) => `${discount * 10}% afsláttur`, + condition: (condition: number) => `Að minnsta kosti ${condition}`, + }, + vanCouponCell: { + title: 'Afsláttarmiði', + count: (count: number) => `Þú átt ${count} afsláttarmiða`, + }, + vanCouponList: { + exchange: 'Skipti', + close: 'Loka', + enable: 'Laus', + disabled: 'Ótiltækt', + placeholder: 'Afsláttarmiðakóði', + }, + vanAddressEdit: { + area: 'Svæði', + postal: 'póstur', + areaEmpty: 'Vinsamlega veldu móttökusvæði', + addressEmpty: 'Heimilisfang má ekki vera tómt', + postalEmpty: 'Rangt póstnúmer', + addressDetail: 'Heimilisfang', + defaultAddress: 'Setja sem sjálfgefið heimilisfang', + }, + vanAddressList: { + add: 'Bæta við nýju heimilisfangi', + }, +};