mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-05 05:50:19 +08:00
feat: improve frontend i18n strings
This commit is contained in:
@ -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")}
|
||||
<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);}}>
|
||||
|
@ -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) => {
|
||||
|
Reference in New Issue
Block a user