From ba0c049f86db83ac4036c9137b3781446f88fa18 Mon Sep 17 00:00:00 2001 From: neverland Date: Wed, 26 Jan 2022 11:22:29 +0800 Subject: [PATCH] perf(Locale): simplify some words (#10246) --- packages/vant/src/coupon-list/README.zh-CN.md | 2 +- packages/vant/src/coupon-list/demo/index.vue | 2 +- packages/vant/src/locale/lang/ja-JP.ts | 4 ++-- packages/vant/src/locale/lang/th-TH.ts | 4 ++-- packages/vant/src/locale/lang/zh-CN.ts | 4 ++-- packages/vant/src/locale/lang/zh-HK.ts | 4 ++-- packages/vant/src/locale/lang/zh-TW.ts | 4 ++-- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/vant/src/coupon-list/README.zh-CN.md b/packages/vant/src/coupon-list/README.zh-CN.md index 422ce06a3..771f17b87 100644 --- a/packages/vant/src/coupon-list/README.zh-CN.md +++ b/packages/vant/src/coupon-list/README.zh-CN.md @@ -52,7 +52,7 @@ export default { setup() { const coupon = { available: 1, - condition: '无使用门槛\n最多优惠12元', + condition: '无门槛\n最多优惠12元', reason: '', value: 150, name: '优惠券名称', diff --git a/packages/vant/src/coupon-list/demo/index.vue b/packages/vant/src/coupon-list/demo/index.vue index 1260f7a3a..bb3888bd5 100644 --- a/packages/vant/src/coupon-list/demo/index.vue +++ b/packages/vant/src/coupon-list/demo/index.vue @@ -35,7 +35,7 @@ const exchangedCoupons = ref([]); const coupon = computed(() => ({ id: 1, - condition: '无使用门槛\n最多优惠12元', + condition: '无门槛\n最多优惠12元', reason: '', value: 150, name: t('coupon.name'), diff --git a/packages/vant/src/locale/lang/ja-JP.ts b/packages/vant/src/locale/lang/ja-JP.ts index 1d6327069..faee5817d 100644 --- a/packages/vant/src/locale/lang/ja-JP.ts +++ b/packages/vant/src/locale/lang/ja-JP.ts @@ -34,7 +34,7 @@ export default { label: '合計:', }, vanCoupon: { - unlimited: '入場ありません', + unlimited: '無制限', discount: (discount: number) => `${10 - discount}割引`, condition: (condition: number) => `${condition}円以上で利用可能`, }, @@ -44,7 +44,7 @@ export default { }, vanCouponList: { exchange: '両替', - close: 'クーポンを使用しません', + close: '使用禁止', enable: '利用可能', disabled: '利用できません', placeholder: '割引コードを入力してください', diff --git a/packages/vant/src/locale/lang/th-TH.ts b/packages/vant/src/locale/lang/th-TH.ts index 1d28aeedf..79203c935 100644 --- a/packages/vant/src/locale/lang/th-TH.ts +++ b/packages/vant/src/locale/lang/th-TH.ts @@ -35,7 +35,7 @@ export default { label: 'รวม:', }, vanCoupon: { - unlimited: 'ไม่มีเกณฑ์การใช้งาน', + unlimited: 'ไม่ จำกัด', discount: (discount: number) => `ลด${discount}`, condition: (condition: number) => `มีจำหน่ายในราคา ${condition} กว่าหยวน`, }, @@ -45,7 +45,7 @@ export default { }, vanCouponList: { exchange: 'แลกเปลี่ยน', - close: 'ห้ามใช้คูปอง', + close: 'ไม่ได้ใช้', enable: 'พร้อมใช้งาน', disabled: 'ไม่พร้อมใช้งาน', placeholder: 'กรุณากรอกรหัสคูปอง', diff --git a/packages/vant/src/locale/lang/zh-CN.ts b/packages/vant/src/locale/lang/zh-CN.ts index 8203f5d73..d60914ccd 100644 --- a/packages/vant/src/locale/lang/zh-CN.ts +++ b/packages/vant/src/locale/lang/zh-CN.ts @@ -34,7 +34,7 @@ export default { label: '合计:', }, vanCoupon: { - unlimited: '无使用门槛', + unlimited: '无门槛', discount: (discount: number) => `${discount}折`, condition: (condition: number) => `满${condition}元可用`, }, @@ -44,7 +44,7 @@ export default { }, vanCouponList: { exchange: '兑换', - close: '不使用优惠券', + close: '不使用', enable: '可用', disabled: '不可用', placeholder: '请输入优惠码', diff --git a/packages/vant/src/locale/lang/zh-HK.ts b/packages/vant/src/locale/lang/zh-HK.ts index 851a33aa6..f8d021a65 100644 --- a/packages/vant/src/locale/lang/zh-HK.ts +++ b/packages/vant/src/locale/lang/zh-HK.ts @@ -34,7 +34,7 @@ export default { label: '合計:', }, vanCoupon: { - unlimited: '無使用門檻', + unlimited: '無門檻', discount: (discount: number) => `${discount}折`, condition: (condition: number) => `滿${condition}元可用`, }, @@ -44,7 +44,7 @@ export default { }, vanCouponList: { exchange: '兌換', - close: '不使用優惠', + close: '不使用', enable: '可使用優惠券', disabled: '不可使用優惠券', placeholder: '請輸入優惠碼', diff --git a/packages/vant/src/locale/lang/zh-TW.ts b/packages/vant/src/locale/lang/zh-TW.ts index 04c0f339f..b22b26005 100644 --- a/packages/vant/src/locale/lang/zh-TW.ts +++ b/packages/vant/src/locale/lang/zh-TW.ts @@ -34,7 +34,7 @@ export default { label: '合計:', }, vanCoupon: { - unlimited: '無使用門檻', + unlimited: '無門檻', discount: (discount: number) => `${discount}折`, condition: (condition: number) => `滿${condition}元可用`, }, @@ -44,7 +44,7 @@ export default { }, vanCouponList: { exchange: '兌換', - close: '不使用優惠', + close: '不使用', enable: '可使用優惠券', disabled: '不可使用優惠券', placeholder: '請輸入優惠代碼',