From f2c12965f2576fc1258b242c5d3585855a29cd5b Mon Sep 17 00:00:00 2001 From: neverland Date: Sun, 20 Mar 2022 10:43:59 +0800 Subject: [PATCH] feat(Locale): add Swedish lang (#10419) --- packages/vant/src/locale/README.md | 1 + packages/vant/src/locale/README.zh-CN.md | 1 + packages/vant/src/locale/lang/sv-SE.ts | 63 ++++++++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 packages/vant/src/locale/lang/sv-SE.ts diff --git a/packages/vant/src/locale/README.md b/packages/vant/src/locale/README.md index ef846fef8..9d7cdb31f 100644 --- a/packages/vant/src/locale/README.md +++ b/packages/vant/src/locale/README.md @@ -58,6 +58,7 @@ Current supported languages: | Portuguese (Brazil) | pt-BR | `v3.3.3` | | Romanian | ro-RO | - | | Russian | ru-RU | `v3.1.5` | +| Swedish | sv-SE | `v3.4.7` | | Turkish | tr-TR | - | | Thai | th-TH | - | | Ukrainian | uk-UA | `v3.4.5` | diff --git a/packages/vant/src/locale/README.zh-CN.md b/packages/vant/src/locale/README.zh-CN.md index 6564575d5..8af0706e3 100644 --- a/packages/vant/src/locale/README.zh-CN.md +++ b/packages/vant/src/locale/README.zh-CN.md @@ -59,6 +59,7 @@ Locale.add(messages); | 葡萄牙语(巴西) | pt-BR | `v3.3.3` | | 罗马尼亚语 | ro-RO | - | | 俄罗斯语 | ru-RU | `v3.1.5` | +| 瑞典语 | sv-SE | `v3.4.7` | | 土耳其语 | tr-TR | - | | 泰语 | th-TH | - | | 乌克兰语 | uk-UA | `v3.4.5` | diff --git a/packages/vant/src/locale/lang/sv-SE.ts b/packages/vant/src/locale/lang/sv-SE.ts new file mode 100644 index 000000000..8d03bda4c --- /dev/null +++ b/packages/vant/src/locale/lang/sv-SE.ts @@ -0,0 +1,63 @@ +export default { + name: 'Namn', + tel: 'Telefon', + save: 'Spara', + confirm: 'Bekräfta', + cancel: 'Avbryt', + delete: 'Radera', + loading: 'Laddar...', + noCoupon: 'Inga kuponger', + nameEmpty: 'Vänligen fyll i namnet', + addContact: 'Lägg till kontakt', + telInvalid: 'Felformat telefonnummer', + vanCalendar: { + end: 'Slut', + start: 'Start', + title: 'Kalender', + weekdays: ['sön', 'mån', 'tis', 'ons', 'tors', 'fre', 'lör'], + monthTitle: (year: number, month: number) => `${year}/${month}`, + rangePrompt: (maxRange: number) => `Välj högst ${maxRange} dagar`, + }, + vanCascader: { + select: 'Välj', + }, + vanPagination: { + prev: 'Föregående', + next: 'Nästa', + }, + vanPullRefresh: { + pulling: 'Dra för att uppdatera...', + loosing: 'Lös för att uppdatera...', + }, + vanSubmitBar: { + label: 'Totalt:', + }, + vanCoupon: { + unlimited: 'Obegränsat', + discount: (discount: number) => `${discount * 10}% rabatt`, + condition: (condition: number) => `Minst ${condition}`, + }, + vanCouponCell: { + title: 'Kupong', + count: (count: number) => `Du har ${count} kuponger`, + }, + vanCouponList: { + exchange: 'Utbyta', + close: 'Stäng', + enable: 'Tillgängliga', + disabled: 'Inte tillgänglig', + placeholder: 'Kupongkod', + }, + vanAddressEdit: { + area: 'Område', + postal: 'Post', + areaEmpty: 'Välj ett mottagningsområde', + addressEmpty: 'Adressen får inte vara tom', + postalEmpty: 'Fel postnummer', + addressDetail: 'Adress', + defaultAddress: 'Ange som standardadress', + }, + vanAddressList: { + add: 'Lägg till ny adress', + }, +};