Commit bc66f2e4 authored by XieZhiXiong's avatar XieZhiXiong

chore: 完善国际化相关

parent 5199f69d
......@@ -4,8 +4,8 @@ import cx from 'classnames';
import moment, { Moment } from 'moment';
import styles from './index.less';
import { getIntl } from 'umi';
const intl = getIntl();
const intl = getIntl();
function range(start, end) {
const result = [];
......
......@@ -120,7 +120,7 @@ export default {
"merchantCoupon.time": "Time",
"merchantCoupon.reason": "Reason",
"merchantCoupon.DealsCoupontype": "Coupon Type",
"merchantCoupon.劵Validperioddeadline": "Coupon Valid Period Deadline",
"merchantCoupon.effectiveTimeEnd": "Coupon Valid Period Deadline",
"merchantCoupon.Quantity": "Coupon Issuance Quantity",
"merchantCoupon.Restart": "Restart",
"merchantCoupon.Pleasechoosethemallfirst": "Pleasechoosethemallfirst",
......
......@@ -120,7 +120,7 @@ export default {
"merchantCoupon.time": '타임',
"merchantCoupon.reason": '까닭',
"merchantCoupon.DealsCoupontype": '쿠폰 유형',
"merchantCoupon.劵Validperioddeadline": '쿠폰 유효기간 마감 시간',
"merchantCoupon.effectiveTimeEnd": '쿠폰 유효기간 마감 시간',
"merchantCoupon.Quantity": '발행 수량',
"merchantCoupon.Restart": '재부팅',
"merchantCoupon.Pleasechoosethemallfirst": '우선 상점을 선택하세요',
......
......@@ -120,7 +120,7 @@ export default {
"merchantCoupon.time": "时间",
"merchantCoupon.reason": "原因",
"merchantCoupon.DealsCoupontype": "优惠劵类型",
"merchantCoupon.劵Validperioddeadline": "劵有效期截止时间",
"merchantCoupon.effectiveTimeEnd": "劵有效期截止时间",
"merchantCoupon.Quantity": "发劵数量",
"merchantCoupon.Restart": "重启",
"merchantCoupon.Pleasechoosethemallfirst": "请先选择商城",
......
......@@ -126,7 +126,7 @@ const MerchantCouponQuery: React.FC = () => {
render: (text) => text ? moment(text).format('YYYY-MM-DD HH:mm:ss') : '-',
},
{
title: `${intl.formatMessage({ id: 'merchantCoupon.劵Validperioddeadline'})}`,
title: `${intl.formatMessage({ id: 'merchantCoupon.effectiveTimeEnd'})}`,
dataIndex: 'effectiveTimeEnd',
align: 'center',
sorter: (a, b) => a.effectiveTimeEnd - b.effectiveTimeEnd,
......
......@@ -11,15 +11,8 @@ import moment from 'moment';
import themeConfig from '@/../config/lingxi.theme.config';
import { PATTERN_MAPS } from '@/constants/regExp';
import { getIntl} from 'umi'
const intl = getIntl();
function range(start, end) {
const result = [];
for (let i = start; i < end; i++) {
result.push(i);
}
return result;
}
const intl = getIntl();
const schema: ISchema = {
type: 'object',
......@@ -291,7 +284,7 @@ const schema: ISchema = {
type: 'string',
'x-component': 'FormilyRangeTime',
'x-component-props': {
placeholder: [`${intl.formatMessage({ id: 'merchantCoupon.effectiveTimeEnd'})}`, `${intl.formatMessage({ id: 'merchantCoupon.劵Validperioddeadline'})}`],
placeholder: [`${intl.formatMessage({ id: 'merchantCoupon.effectiveTimeEnd'})}`, `${intl.formatMessage({ id: 'merchantCoupon.effectiveTimeEnd'})}`],
showTime: true,
},
},
......
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