浏览代码

fix i18n

master
Anna Ho 2 年前
父节点
当前提交
c0811a72df
共有 2 个文件被更改,包括 3 次插入 和 4 次删除
  1. +2
    -3
      src/pages/Proof/Payment/Pay_DN.js
  2. +1
    -1
      src/pages/Proof/Payment/Pay_Office.js

+ 2
- 3
src/pages/Proof/Payment/Pay_DN.js 查看文件

@@ -26,7 +26,6 @@ const BackgroundHead = {
const Index = ({ record }) => { const Index = ({ record }) => {
const navigate = useNavigate() const navigate = useNavigate()
const intl = useIntl(); const intl = useIntl();
const { local } = intl;


return ( return (
( (
@@ -68,7 +67,7 @@ const Index = ({ record }) => {
id: 'proofPaymentBody_demandNote2' id: 'proofPaymentBody_demandNote2'
}, },
{ {
closingDateOff: local === "en"? DateUtils.dateStr_Eng(record.closingDateOff): DateUtils.dateStr_Cht(record?.closingDateOff),
closingDateOff: DateUtils.dateFormat(record?.closingDateOff, intl.formatMessage({id: "dateStrFormat"})),
email: record?.mail, email: record?.mail,
} }
) )
@@ -80,7 +79,7 @@ const Index = ({ record }) => {
id: 'proofPaymentBody_demandNote3' id: 'proofPaymentBody_demandNote3'
}, },
{ {
paymentDeadline: local === "en"? DateUtils.dateStr_Eng(record?.closingDate): DateUtils.dateStr_Cht(record?.closingDate),
paymentDeadline: DateUtils.dateFormat(record?.closingDate, intl.formatMessage({id: "dateStrFormat"})),
} }
) )
}} /> }} />


+ 1
- 1
src/pages/Proof/Payment/Pay_Office.js 查看文件

@@ -92,7 +92,7 @@ const Index = ({ record }) => {
id: 'proofPaymentBody_office5' id: 'proofPaymentBody_office5'
}, },
{ {
paymentDeadline: locale ==='en'? DateUtils.dateStr_Eng(record?.closingDate):DateUtils.dateStr_Cht(record?.closingDate)
paymentDeadline: DateUtils.dateFormat(record?.closingDate, intl.formatMessage({id: "dateStrFormat"})),
} }
) )
}} /> }} />


正在加载...
取消
保存