feat: improve frontend i18n strings

This commit is contained in:
Yang Luo
2025-03-21 21:03:29 +08:00
parent 81102f8298
commit af55d0547f
31 changed files with 634 additions and 288 deletions

View File

@ -84,7 +84,7 @@ class FaceIdTable extends React.Component {
},
},
{
title: i18next.t("general:FaceIdData"),
title: i18next.t("general:Data"),
dataIndex: "faceIdData",
key: "faceIdData",
render: (text, record, index) => {
@ -94,7 +94,7 @@ class FaceIdTable extends React.Component {
},
},
{
title: i18next.t("general:ImageUrl"),
title: i18next.t("general:URL"),
dataIndex: "imageUrl",
key: "imageUrl",
render: (text, record, index) => {
@ -139,10 +139,10 @@ class FaceIdTable extends React.Component {
<div>
{i18next.t("user:Face IDs")}&nbsp;&nbsp;&nbsp;&nbsp;
<Button disabled={this.props.table?.length >= 5} style={{marginRight: "5px"}} type="primary" size="small" onClick={() => this.setState({openFaceRecognitionModal: true, withImage: false})}>
{i18next.t("general:Add Face Id")}
{i18next.t("application:Add Face ID")}
</Button>
<Button disabled={this.props.table?.length >= 5} style={{marginRight: "5px"}} type="primary" size="small" onClick={() => this.setState({openFaceRecognitionModal: true, withImage: true})}>
{i18next.t("general:Add Face Id with image")}
{i18next.t("application:Add Face ID with Image")}
</Button>
<Upload maxCount={1} accept="image/*" showUploadList={false}
beforeUpload={file => {return false;}} onChange={info => {handleUpload(info);}}>

View File

@ -80,7 +80,7 @@ class MfaAccountTable extends React.Component {
renderTable(table) {
const columns = [
{
title: i18next.t("mfaAccount:Account Name"),
title: i18next.t("forget:Account"),
dataIndex: "accountName",
key: "accountName",
width: "400px",
@ -93,7 +93,7 @@ class MfaAccountTable extends React.Component {
},
},
{
title: i18next.t("mfaAccount:Issuer"),
title: "Issuer",
dataIndex: "issuer",
key: "issuer",
width: "300px",
@ -106,7 +106,7 @@ class MfaAccountTable extends React.Component {
},
},
{
title: i18next.t("mfaAccount:Origin"),
title: "Origin",
dataIndex: "origin",
key: "origin",
render: (text, record, index) => {
@ -118,7 +118,7 @@ class MfaAccountTable extends React.Component {
},
},
{
title: i18next.t("mfaAccount:Secret Key"),
title: i18next.t("provider:Secret key"),
dataIndex: "secretKey",
key: "secretKey",
render: (text, record, index) => {