diff --git a/packages/locale/en-US.md b/packages/locale/en-US.md index 83e73b5cb..3ef357203 100644 --- a/packages/locale/en-US.md +++ b/packages/locale/en-US.md @@ -34,8 +34,9 @@ Current supported languages: | Language | Filename | |------|------| | Chinese | zh-CN | +| Traditional Chinese (HK) | zh-HK | +| Traditional Chinese (TW) | zh-TW | | English | en-US | -| Traditional Chinese | zh-HK | | Turkish | tr-TR | View all language configs [Here](https://github.com/youzan/vant/tree/dev/packages/locale/lang). diff --git a/packages/locale/lang/en-US.js b/packages/locale/lang/en-US.ts similarity index 88% rename from packages/locale/lang/en-US.js rename to packages/locale/lang/en-US.ts index 7a4b2be50..fa0f096f7 100644 --- a/packages/locale/lang/en-US.js +++ b/packages/locale/lang/en-US.ts @@ -31,13 +31,13 @@ export default { vanCoupon: { valid: 'Valid', unlimited: 'Unlimited', - discount: discount => `${discount * 10}% off`, - condition: condition => `At least ${condition}` + discount: (discount: number) => `${discount * 10}% off`, + condition: (condition: number) => `At least ${condition}` }, vanCouponCell: { title: 'Coupon', tips: 'Select coupon', - count: count => `You have ${count} coupons` + count: (count: number) => `You have ${count} coupons` }, vanCouponList: { empty: 'No coupons', diff --git a/packages/locale/lang/tr-TR.js b/packages/locale/lang/tr-TR.ts similarity index 88% rename from packages/locale/lang/tr-TR.js rename to packages/locale/lang/tr-TR.ts index e27e5c849..09b29a7f1 100644 --- a/packages/locale/lang/tr-TR.js +++ b/packages/locale/lang/tr-TR.ts @@ -28,10 +28,16 @@ export default { vanSubmitBar: { label: 'Toplam:' }, + vanCoupon: { + valid: 'Geçerli', + unlimited: 'Sınırsız', + discount: (discount: number) => `%${discount * 10} indirim`, + condition: (condition: number) => `En az ${condition}` + }, vanCouponCell: { title: 'Kupon', tips: 'Kupon seç', - count: count => `${count} adet teklif var` + count: (count: number) => `${count} adet teklif var` }, vanCouponList: { empty: 'Kupon yok', @@ -41,12 +47,6 @@ export default { disabled: 'Mevcut değil', placeholder: 'Kupon kodu' }, - vanCouponItem: { - valid: 'Geçerli', - unlimited: 'Sınırsız', - discount: discount => `%${discount * 10} indirim`, - condition: condition => `En az ${condition}` - }, vanAddressEdit: { area: 'Alan', postal: 'Posta', diff --git a/packages/locale/lang/zh-CN.js b/packages/locale/lang/zh-CN.ts similarity index 90% rename from packages/locale/lang/zh-CN.js rename to packages/locale/lang/zh-CN.ts index 39167617a..08b4d5779 100644 --- a/packages/locale/lang/zh-CN.js +++ b/packages/locale/lang/zh-CN.ts @@ -31,13 +31,13 @@ export default { vanCoupon: { valid: '有效期', unlimited: '无使用门槛', - discount: discount => `${discount}折`, - condition: (condition) => `满${condition}元可用` + discount: (discount: number) => `${discount}折`, + condition: (condition: number) => `满${condition}元可用` }, vanCouponCell: { title: '优惠券', tips: '使用优惠', - count: count => `${count}张可用` + count: (count: number) => `${count}张可用` }, vanCouponList: { empty: '暂无优惠券', diff --git a/packages/locale/lang/zh-HK.js b/packages/locale/lang/zh-HK.ts similarity index 90% rename from packages/locale/lang/zh-HK.js rename to packages/locale/lang/zh-HK.ts index 515b2f0e4..094ced3e5 100644 --- a/packages/locale/lang/zh-HK.js +++ b/packages/locale/lang/zh-HK.ts @@ -31,13 +31,13 @@ export default { vanCoupon: { valid: '有效期', unlimited: '無使用門檻', - discount: discount => `${discount}折`, - condition: (condition) => `滿${condition}元可用` + discount: (discount: number) => `${discount}折`, + condition: (condition: number) => `滿${condition}元可用` }, vanCouponCell: { title: '優惠券', tips: '使用優惠', - count: count => `${count}張可用` + count: (count: number) => `${count}張可用` }, vanCouponList: { empty: '暫無優惠券', diff --git a/packages/locale/lang/zh-TW.js b/packages/locale/lang/zh-TW.ts similarity index 90% rename from packages/locale/lang/zh-TW.js rename to packages/locale/lang/zh-TW.ts index bd78cbb18..f33dacd8c 100644 --- a/packages/locale/lang/zh-TW.js +++ b/packages/locale/lang/zh-TW.ts @@ -31,13 +31,13 @@ export default { vanCoupon: { valid: '有效期限', unlimited: '無使用門檻', - discount: discount => `${discount}折`, - condition: (condition) => `滿${condition}元可用` + discount: (discount: number) => `${discount}折`, + condition: (condition: number) => `滿${condition}元可用` }, vanCouponCell: { title: '優惠券', tips: '使用優惠', - count: count => `${count}張可用` + count: (count: number) => `${count}張可用` }, vanCouponList: { empty: '暫無優惠券', diff --git a/packages/locale/zh-CN.md b/packages/locale/zh-CN.md index 4a0ff227b..16b419781 100644 --- a/packages/locale/zh-CN.md +++ b/packages/locale/zh-CN.md @@ -35,8 +35,9 @@ Locale.add(messages); | 语言 | 文件名 | |------|------| | 简体中文 | zh-CN | +| 繁體中文(港) | zh-HK | +| 繁體中文(台) | zh-TW | | 英语 | en-US | -| 繁體中文 | zh-HK | | 土耳其语 | tr-TR | 在 [这里](https://github.com/youzan/vant/tree/dev/packages/locale/lang) 查看所有的 i18n 配置文件。