From d1977c180e223cc9141b9e256ee4dfa08c9863a4 Mon Sep 17 00:00:00 2001 From: Jimmy Liow Date: Fri, 9 Aug 2024 15:31:36 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=88=A0=E9=99=A4=E4=B8=8D=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E7=9A=84=E5=A4=9A=E8=AF=AD=E8=A8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/locales/en/products.json | 22 ++++++------------- public/locales/zh/products.json | 13 +++++------ .../products/Detail/ProductInfoQuotation.jsx | 14 ++++++------ 3 files changed, 20 insertions(+), 29 deletions(-) diff --git a/public/locales/en/products.json b/public/locales/en/products.json index 3f271b1..423f086 100644 --- a/public/locales/en/products.json +++ b/public/locales/en/products.json @@ -70,21 +70,13 @@ "adultPrice": "Adult price", "childrenPrice": "Child price", "currency": "Currency", - "Types": "Type", - "number": "Number", - "validityPeriod":"Validity period", - "operation": "Operation", - "price": "Price", - "weekends":"Weekends", - - "Quotation": "Quotation", - "Offer": "Offer", - - "Unit": "Unit", - "GroupSize": "Group Size", - "UseDates": "Use Dates", - - "Weekdays": "Weekdays", + "unit_name": "类型", + "group_size": "人等", + "use_dates": "有效期", + "operation": "操作", + "price": "价格", + "Offer": "报价", + "Weekdays": "周末", "OnWeekdays": "On Weekdays: ", "Unlimited": "Unlimited", diff --git a/public/locales/zh/products.json b/public/locales/zh/products.json index c78f35c..87df899 100644 --- a/public/locales/zh/products.json +++ b/public/locales/zh/products.json @@ -67,17 +67,16 @@ "adultPrice": "成人价", "childrenPrice": "儿童价", "currency": "币种", - "Types": "类型", - "number": "人等", - "validityPeriod": "有效期", + + "unit_name": "类型", + "group_size": "人等", + "use_dates": "有效期", "operation": "操作", "price": "价格", - "Quotation": "报价", "Offer": "报价", - "Unit": "单位", - "GroupSize": "人等", - "UseDates": "使用日期", + "Weekdays": "周末", + "OnWeekdays": "周: ", "Unlimited": "不限", "UseYear": "年份", diff --git a/src/views/products/Detail/ProductInfoQuotation.jsx b/src/views/products/Detail/ProductInfoQuotation.jsx index 680ada5..7dcdf66 100644 --- a/src/views/products/Detail/ProductInfoQuotation.jsx +++ b/src/views/products/Detail/ProductInfoQuotation.jsx @@ -204,20 +204,20 @@ const ProductInfoQuotation = ({ editable, ...props }) => { { title: t('products:childrenPrice'), dataIndex: 'child_cost', width: '4rem' }, { title: t('products:currency'), dataIndex: 'currency', width: '4rem' }, { - title: t('products:Types'), + title: t('products:unit_name'), dataIndex: 'unit_id', width: '4rem', render: (text) => (text === '0' ? '每人' : text === '1' ? '每团' : text), }, { - title: t('products:number'), + title: t('products:group_size'), dataIndex: 'group_size', width: '4rem', render: (_, record) => `${record.group_size_min}-${record.group_size_max}`, }, { - title: t('products:validityPeriod'), + title: t('products:use_dates'), dataIndex: 'use_dates', width: '6rem', render: (_, record) => `${record.use_dates_start}-${record.use_dates_end}`, @@ -411,7 +411,7 @@ const ProductInfoQuotation = ({ editable, ...props }) => { { { {