Commit d65fb4ee authored by XieZhiXiong's avatar XieZhiXiong

chore: 补充优惠券翻译

parent 8480f4c0
......@@ -51,7 +51,7 @@ export default {
'merchantCoupon.useCondition':'Conditions of use',
'merchantCoupon.use':'Use',
'merchantCoupon.ReceivingConditions':'Receiving Conditions',
'merchantCoupon.zhang':'',
'merchantCoupon.zhang':'Piece',
'merchantCoupon.daily':'Daily',
'merchantCoupon.Vipname':'Member Name',
'merchantCoupon.lfy':'Member Type',
......
......@@ -101,7 +101,7 @@ const ApplicableGoods: React.FC<IProps> = (props) => {
const unitPrice = normalizeUnitPrice(text);
const start = unitPrice[0]?.price;
const end = unitPrice[unitPrice.length - 1]?.price;
return start !== end ? `¥ ${start}~${end}` : ${start}`;
return start !== end ? `${intl.formatMessage({ id: 'common.money' }, { default: '¥' })} ${start}~${end}` : `${intl.formatMessage({ id: 'common.money' }, { default: '¥' })} ${start}`;
},
},
];
......
......@@ -98,7 +98,7 @@ const CouponBacisInfo: React.FC<PropsType> = (props: PropsType) => {
},
{
title: intl.formatMessage({ id: 'merchantCoupon.moneySize' }),
value: `¥ ${dataSource.denomination || ''}`,
value: `${intl.formatMessage({ id: 'common.money' }, { default: '¥' })} ${dataSource.denomination || ''}`,
},
{
title: intl.formatMessage({ id: 'merchantCoupon.couponEndTime' }),
......
......@@ -75,7 +75,7 @@ const ApplicableGoodsFormItem = (props) => {
const unitPrice = normalizeUnitPrice(text);
const start = unitPrice[0]?.price;
const end = unitPrice[unitPrice.length - 1]?.price;
return start !== end ? `¥ ${start}~${end}` : ${start}`;
return start !== end ? `${intl.formatMessage({ id: 'common.money' }, { default: '¥' })} ${start}~${end}` : `${intl.formatMessage({ id: 'common.money' }, { default: '¥' })} ${start}`;
},
},
(
......
......@@ -184,7 +184,7 @@ const GoodsDrawer: React.FC<IProps> = (props) => {
const unitPrice = normalizeUnitPrice(text);
const start = unitPrice[0]?.price;
const end = unitPrice[unitPrice.length - 1]?.price;
return start !== end ? `¥ ${start}~${end}` : ${start}`;
return start !== end ? `${intl.formatMessage({ id: 'common.money' }, { default: '¥' })} ${start}~${end}` : `${intl.formatMessage({ id: 'common.money' }, { default: '¥' })} ${start}`;
},
},
];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment