Fix translation.

This commit is contained in:
Yang Luo 2021-12-19 01:13:11 +08:00
parent 5814ae6baf
commit 29d512d316
9 changed files with 37 additions and 44 deletions

View File

@ -109,7 +109,7 @@ class TokenEditPage extends React.Component {
</Row> </Row>
<Row style={{marginTop: '20px'}} > <Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={(Setting.isMobile()) ? 22 : 2}> <Col style={{marginTop: '5px'}} span={(Setting.isMobile()) ? 22 : 2}>
{i18next.t("general:Authorization code")}: {i18next.t("token:Authorization code")}:
</Col> </Col>
<Col span={22} > <Col span={22} >
<Input value={this.state.token.code} onChange={e => { <Input value={this.state.token.code} onChange={e => {
@ -119,7 +119,7 @@ class TokenEditPage extends React.Component {
</Row> </Row>
<Row style={{marginTop: '20px'}} > <Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={(Setting.isMobile()) ? 22 : 2}> <Col style={{marginTop: '5px'}} span={(Setting.isMobile()) ? 22 : 2}>
{i18next.t("general:Access token")}: {i18next.t("token:Access token")}:
</Col> </Col>
<Col span={22} > <Col span={22} >
<Input value={this.state.token.accessToken} onChange={e => { <Input value={this.state.token.accessToken} onChange={e => {
@ -129,7 +129,7 @@ class TokenEditPage extends React.Component {
</Row> </Row>
<Row style={{marginTop: '20px'}} > <Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={(Setting.isMobile()) ? 22 : 2}> <Col style={{marginTop: '5px'}} span={(Setting.isMobile()) ? 22 : 2}>
{i18next.t("general:Expires in")}: {i18next.t("token:Expires in")}:
</Col> </Col>
<Col span={22} > <Col span={22} >
<Input value={this.state.token.expiresIn} onChange={e => { <Input value={this.state.token.expiresIn} onChange={e => {
@ -139,7 +139,7 @@ class TokenEditPage extends React.Component {
</Row> </Row>
<Row style={{marginTop: '20px'}} > <Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={(Setting.isMobile()) ? 22 : 2}> <Col style={{marginTop: '5px'}} span={(Setting.isMobile()) ? 22 : 2}>
{i18next.t("general:Scope")}: {i18next.t("token:Scope")}:
</Col> </Col>
<Col span={22} > <Col span={22} >
<Input value={this.state.token.scope} onChange={e => { <Input value={this.state.token.scope} onChange={e => {
@ -149,7 +149,7 @@ class TokenEditPage extends React.Component {
</Row> </Row>
<Row style={{marginTop: '20px'}} > <Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={(Setting.isMobile()) ? 22 : 2}> <Col style={{marginTop: '5px'}} span={(Setting.isMobile()) ? 22 : 2}>
{i18next.t("general:Token type")}: {i18next.t("token:Token type")}:
</Col> </Col>
<Col span={22} > <Col span={22} >
<Input value={this.state.token.tokenType} onChange={e => { <Input value={this.state.token.tokenType} onChange={e => {

View File

@ -164,7 +164,7 @@ class TokenListPage extends React.Component {
} }
}, },
{ {
title: i18next.t("general:Authorization code"), title: i18next.t("token:Authorization code"),
dataIndex: 'code', dataIndex: 'code',
key: 'code', key: 'code',
// width: '150px', // width: '150px',
@ -174,7 +174,7 @@ class TokenListPage extends React.Component {
} }
}, },
{ {
title: i18next.t("general:Access token"), title: i18next.t("token:Access token"),
dataIndex: 'accessToken', dataIndex: 'accessToken',
key: 'accessToken', key: 'accessToken',
// width: '150px', // width: '150px',
@ -185,14 +185,14 @@ class TokenListPage extends React.Component {
} }
}, },
{ {
title: i18next.t("general:Expires in"), title: i18next.t("token:Expires in"),
dataIndex: 'expiresIn', dataIndex: 'expiresIn',
key: 'expiresIn', key: 'expiresIn',
width: '120px', width: '120px',
sorter: (a, b) => a.expiresIn - b.expiresIn, sorter: (a, b) => a.expiresIn - b.expiresIn,
}, },
{ {
title: i18next.t("general:Scope"), title: i18next.t("token:Scope"),
dataIndex: 'scope', dataIndex: 'scope',
key: 'scope', key: 'scope',
width: '100px', width: '100px',

View File

@ -55,7 +55,6 @@
"Verify": "Verify" "Verify": "Verify"
}, },
"general": { "general": {
"Access token": "Access token",
"Action": "Action", "Action": "Action",
"Add": "Add", "Add": "Add",
"Affiliation URL": "Affiliation URL", "Affiliation URL": "Affiliation URL",
@ -63,7 +62,6 @@
"Application": "Application", "Application": "Application",
"Applications": "Applications", "Applications": "Applications",
"Applications that require authentication": "Applications that require authentication", "Applications that require authentication": "Applications that require authentication",
"Authorization code": "Authorization code",
"Avatar": "Avatar", "Avatar": "Avatar",
"Avatar - Tooltip": "Avatar to show to others", "Avatar - Tooltip": "Avatar to show to others",
"Back Home": "Back Home", "Back Home": "Back Home",
@ -81,7 +79,6 @@
"Edit": "Edit", "Edit": "Edit",
"Email": "Email", "Email": "Email",
"Email - Tooltip": "email", "Email - Tooltip": "email",
"Expires in": "Expires in",
"Favicon - Tooltip": "Application icon", "Favicon - Tooltip": "Application icon",
"Forget URL": "Forget URL", "Forget URL": "Forget URL",
"Forget URL - Tooltip": "Unique string-style identifier", "Forget URL - Tooltip": "Unique string-style identifier",
@ -122,7 +119,6 @@
"Resources": "Resources", "Resources": "Resources",
"Save": "Save", "Save": "Save",
"Save & Exit": "Save & Exit", "Save & Exit": "Save & Exit",
"Scope": "Scope",
"Signin URL": "Signin URL", "Signin URL": "Signin URL",
"Signin URL - Tooltip": "sign in url", "Signin URL - Tooltip": "sign in url",
"Signup URL": "Signup URL", "Signup URL": "Signup URL",
@ -131,7 +127,6 @@
"Swagger": "Swagger", "Swagger": "Swagger",
"Syncers": "Syncers", "Syncers": "Syncers",
"Timestamp": "Timestamp", "Timestamp": "Timestamp",
"Token type": "Token type",
"Tokens": "Tokens", "Tokens": "Tokens",
"URL": "URL", "URL": "URL",
"Up": "Up", "Up": "Up",
@ -338,7 +333,11 @@
"Table - Tooltip": "Table - Tooltip" "Table - Tooltip": "Table - Tooltip"
}, },
"token": { "token": {
"Access token": "Access token",
"Authorization code": "Authorization code",
"Edit Token": "Edit Token", "Edit Token": "Edit Token",
"Expires in": "Expires in",
"Scope": "Scope",
"Token type": "Token type" "Token type": "Token type"
}, },
"user": { "user": {

View File

@ -55,7 +55,6 @@
"Verify": "Verify" "Verify": "Verify"
}, },
"general": { "general": {
"Access token": "Access token",
"Action": "Action", "Action": "Action",
"Add": "Add", "Add": "Add",
"Affiliation URL": "Affiliation URL", "Affiliation URL": "Affiliation URL",
@ -63,7 +62,6 @@
"Application": "Application", "Application": "Application",
"Applications": "Applications", "Applications": "Applications",
"Applications that require authentication": "Applications that require authentication", "Applications that require authentication": "Applications that require authentication",
"Authorization code": "Authorization code",
"Avatar": "Avatar", "Avatar": "Avatar",
"Avatar - Tooltip": "Avatar - Tooltip", "Avatar - Tooltip": "Avatar - Tooltip",
"Back Home": "Back Home", "Back Home": "Back Home",
@ -81,7 +79,6 @@
"Edit": "Edit", "Edit": "Edit",
"Email": "Email", "Email": "Email",
"Email - Tooltip": "Email - Tooltip", "Email - Tooltip": "Email - Tooltip",
"Expires in": "Expires in",
"Favicon - Tooltip": "Favicon - Tooltip", "Favicon - Tooltip": "Favicon - Tooltip",
"Forget URL": "Forget URL", "Forget URL": "Forget URL",
"Forget URL - Tooltip": "Forget URL - Tooltip", "Forget URL - Tooltip": "Forget URL - Tooltip",
@ -122,7 +119,6 @@
"Resources": "Resources", "Resources": "Resources",
"Save": "Save", "Save": "Save",
"Save & Exit": "Save & Exit", "Save & Exit": "Save & Exit",
"Scope": "Scope",
"Signin URL": "Signin URL", "Signin URL": "Signin URL",
"Signin URL - Tooltip": "Signin URL - Tooltip", "Signin URL - Tooltip": "Signin URL - Tooltip",
"Signup URL": "Signup URL", "Signup URL": "Signup URL",
@ -131,7 +127,6 @@
"Swagger": "Swagger", "Swagger": "Swagger",
"Syncers": "Syncers", "Syncers": "Syncers",
"Timestamp": "Timestamp", "Timestamp": "Timestamp",
"Token type": "Token type",
"Tokens": "Tokens", "Tokens": "Tokens",
"URL": "URL", "URL": "URL",
"Up": "Up", "Up": "Up",
@ -338,7 +333,11 @@
"Table - Tooltip": "Table - Tooltip" "Table - Tooltip": "Table - Tooltip"
}, },
"token": { "token": {
"Access token": "Access token",
"Authorization code": "Authorization code",
"Edit Token": "Edit Token", "Edit Token": "Edit Token",
"Expires in": "Expires in",
"Scope": "Scope",
"Token type": "Token type" "Token type": "Token type"
}, },
"user": { "user": {

View File

@ -55,7 +55,6 @@
"Verify": "Verify" "Verify": "Verify"
}, },
"general": { "general": {
"Access token": "Access token",
"Action": "Action", "Action": "Action",
"Add": "Add", "Add": "Add",
"Affiliation URL": "Affiliation URL", "Affiliation URL": "Affiliation URL",
@ -63,7 +62,6 @@
"Application": "Application", "Application": "Application",
"Applications": "Applications", "Applications": "Applications",
"Applications that require authentication": "Applications that require authentication", "Applications that require authentication": "Applications that require authentication",
"Authorization code": "Authorization code",
"Avatar": "Avatar", "Avatar": "Avatar",
"Avatar - Tooltip": "Avatar to show to others", "Avatar - Tooltip": "Avatar to show to others",
"Back Home": "Back Home", "Back Home": "Back Home",
@ -81,7 +79,6 @@
"Edit": "Edit", "Edit": "Edit",
"Email": "Email", "Email": "Email",
"Email - Tooltip": "email", "Email - Tooltip": "email",
"Expires in": "Expires in",
"Favicon - Tooltip": "Application icon", "Favicon - Tooltip": "Application icon",
"Forget URL": "Forget URL", "Forget URL": "Forget URL",
"Forget URL - Tooltip": "Unique string-style identifier", "Forget URL - Tooltip": "Unique string-style identifier",
@ -122,7 +119,6 @@
"Resources": "Resources", "Resources": "Resources",
"Save": "Save", "Save": "Save",
"Save & Exit": "Save & Exit", "Save & Exit": "Save & Exit",
"Scope": "Scope",
"Signin URL": "Signin URL", "Signin URL": "Signin URL",
"Signin URL - Tooltip": "sign in url", "Signin URL - Tooltip": "sign in url",
"Signup URL": "Signup URL", "Signup URL": "Signup URL",
@ -131,7 +127,6 @@
"Swagger": "Swagger", "Swagger": "Swagger",
"Syncers": "Syncers", "Syncers": "Syncers",
"Timestamp": "Timestamp", "Timestamp": "Timestamp",
"Token type": "Token type",
"Tokens": "Tokens", "Tokens": "Tokens",
"URL": "URL", "URL": "URL",
"Up": "Up", "Up": "Up",
@ -338,7 +333,11 @@
"Table - Tooltip": "Table - Tooltip" "Table - Tooltip": "Table - Tooltip"
}, },
"token": { "token": {
"Access token": "Access token",
"Authorization code": "Authorization code",
"Edit Token": "Edit Token", "Edit Token": "Edit Token",
"Expires in": "Expires in",
"Scope": "Scope",
"Token type": "Token type" "Token type": "Token type"
}, },
"user": { "user": {

View File

@ -55,7 +55,6 @@
"Verify": "Verify" "Verify": "Verify"
}, },
"general": { "general": {
"Access token": "Access token",
"Action": "Action", "Action": "Action",
"Add": "Add", "Add": "Add",
"Affiliation URL": "Affiliation URL", "Affiliation URL": "Affiliation URL",
@ -63,7 +62,6 @@
"Application": "Application", "Application": "Application",
"Applications": "Applications", "Applications": "Applications",
"Applications that require authentication": "Applications that require authentication", "Applications that require authentication": "Applications that require authentication",
"Authorization code": "Authorization code",
"Avatar": "Avatar", "Avatar": "Avatar",
"Avatar - Tooltip": "Avatar to show to others", "Avatar - Tooltip": "Avatar to show to others",
"Back Home": "Back Home", "Back Home": "Back Home",
@ -81,7 +79,6 @@
"Edit": "Edit", "Edit": "Edit",
"Email": "Email", "Email": "Email",
"Email - Tooltip": "email", "Email - Tooltip": "email",
"Expires in": "Expires in",
"Favicon - Tooltip": "Application icon", "Favicon - Tooltip": "Application icon",
"Forget URL": "Forget URL", "Forget URL": "Forget URL",
"Forget URL - Tooltip": "Unique string-style identifier", "Forget URL - Tooltip": "Unique string-style identifier",
@ -122,7 +119,6 @@
"Resources": "Resources", "Resources": "Resources",
"Save": "Save", "Save": "Save",
"Save & Exit": "Save & Exit", "Save & Exit": "Save & Exit",
"Scope": "Scope",
"Signin URL": "Signin URL", "Signin URL": "Signin URL",
"Signin URL - Tooltip": "sign in url", "Signin URL - Tooltip": "sign in url",
"Signup URL": "Signup URL", "Signup URL": "Signup URL",
@ -131,7 +127,6 @@
"Swagger": "Swagger", "Swagger": "Swagger",
"Syncers": "Syncers", "Syncers": "Syncers",
"Timestamp": "Timestamp", "Timestamp": "Timestamp",
"Token type": "Token type",
"Tokens": "Tokens", "Tokens": "Tokens",
"URL": "URL", "URL": "URL",
"Up": "Up", "Up": "Up",
@ -338,7 +333,11 @@
"Table - Tooltip": "Table - Tooltip" "Table - Tooltip": "Table - Tooltip"
}, },
"token": { "token": {
"Access token": "Access token",
"Authorization code": "Authorization code",
"Edit Token": "Edit Token", "Edit Token": "Edit Token",
"Expires in": "Expires in",
"Scope": "Scope",
"Token type": "Token type" "Token type": "Token type"
}, },
"user": { "user": {

View File

@ -55,7 +55,6 @@
"Verify": "Verify" "Verify": "Verify"
}, },
"general": { "general": {
"Access token": "Access token",
"Action": "Action", "Action": "Action",
"Add": "Add", "Add": "Add",
"Affiliation URL": "Affiliation URL", "Affiliation URL": "Affiliation URL",
@ -63,7 +62,6 @@
"Application": "Application", "Application": "Application",
"Applications": "Applications", "Applications": "Applications",
"Applications that require authentication": "Applications that require authentication", "Applications that require authentication": "Applications that require authentication",
"Authorization code": "Authorization code",
"Avatar": "Avatar", "Avatar": "Avatar",
"Avatar - Tooltip": "Avatar to show to others", "Avatar - Tooltip": "Avatar to show to others",
"Back Home": "Back Home", "Back Home": "Back Home",
@ -81,7 +79,6 @@
"Edit": "Edit", "Edit": "Edit",
"Email": "Email", "Email": "Email",
"Email - Tooltip": "email", "Email - Tooltip": "email",
"Expires in": "Expires in",
"Favicon - Tooltip": "Application icon", "Favicon - Tooltip": "Application icon",
"Forget URL": "Forget URL", "Forget URL": "Forget URL",
"Forget URL - Tooltip": "Unique string-style identifier", "Forget URL - Tooltip": "Unique string-style identifier",
@ -122,7 +119,6 @@
"Resources": "Resources", "Resources": "Resources",
"Save": "Save", "Save": "Save",
"Save & Exit": "Save & Exit", "Save & Exit": "Save & Exit",
"Scope": "Scope",
"Signin URL": "Signin URL", "Signin URL": "Signin URL",
"Signin URL - Tooltip": "sign in url", "Signin URL - Tooltip": "sign in url",
"Signup URL": "Signup URL", "Signup URL": "Signup URL",
@ -131,7 +127,6 @@
"Swagger": "Swagger", "Swagger": "Swagger",
"Syncers": "Syncers", "Syncers": "Syncers",
"Timestamp": "Timestamp", "Timestamp": "Timestamp",
"Token type": "Token type",
"Tokens": "Tokens", "Tokens": "Tokens",
"URL": "URL", "URL": "URL",
"Up": "Up", "Up": "Up",
@ -338,7 +333,11 @@
"Table - Tooltip": "Table - Tooltip" "Table - Tooltip": "Table - Tooltip"
}, },
"token": { "token": {
"Access token": "Access token",
"Authorization code": "Authorization code",
"Edit Token": "Edit Token", "Edit Token": "Edit Token",
"Expires in": "Expires in",
"Scope": "Scope",
"Token type": "Token type" "Token type": "Token type"
}, },
"user": { "user": {

View File

@ -55,7 +55,6 @@
"Verify": "Verify" "Verify": "Verify"
}, },
"general": { "general": {
"Access token": "Access token",
"Action": "Action", "Action": "Action",
"Add": "Add", "Add": "Add",
"Affiliation URL": "Affiliation URL", "Affiliation URL": "Affiliation URL",
@ -63,7 +62,6 @@
"Application": "Application", "Application": "Application",
"Applications": "Applications", "Applications": "Applications",
"Applications that require authentication": "Applications that require authentication", "Applications that require authentication": "Applications that require authentication",
"Authorization code": "Authorization code",
"Avatar": "Avatar", "Avatar": "Avatar",
"Avatar - Tooltip": "Avatar to show to others", "Avatar - Tooltip": "Avatar to show to others",
"Back Home": "Back Home", "Back Home": "Back Home",
@ -81,7 +79,6 @@
"Edit": "Edit", "Edit": "Edit",
"Email": "Email", "Email": "Email",
"Email - Tooltip": "email", "Email - Tooltip": "email",
"Expires in": "Expires in",
"Favicon - Tooltip": "Application icon", "Favicon - Tooltip": "Application icon",
"Forget URL": "Forget URL", "Forget URL": "Forget URL",
"Forget URL - Tooltip": "Unique string-style identifier", "Forget URL - Tooltip": "Unique string-style identifier",
@ -122,7 +119,6 @@
"Resources": "Resources", "Resources": "Resources",
"Save": "Save", "Save": "Save",
"Save & Exit": "Save & Exit", "Save & Exit": "Save & Exit",
"Scope": "Scope",
"Signin URL": "Signin URL", "Signin URL": "Signin URL",
"Signin URL - Tooltip": "sign in url", "Signin URL - Tooltip": "sign in url",
"Signup URL": "Signup URL", "Signup URL": "Signup URL",
@ -131,7 +127,6 @@
"Swagger": "Swagger", "Swagger": "Swagger",
"Syncers": "Syncers", "Syncers": "Syncers",
"Timestamp": "Timestamp", "Timestamp": "Timestamp",
"Token type": "Token type",
"Tokens": "Tokens", "Tokens": "Tokens",
"URL": "URL", "URL": "URL",
"Up": "Up", "Up": "Up",
@ -338,7 +333,11 @@
"Table - Tooltip": "Table - Tooltip" "Table - Tooltip": "Table - Tooltip"
}, },
"token": { "token": {
"Access token": "Access token",
"Authorization code": "Authorization code",
"Edit Token": "Edit Token", "Edit Token": "Edit Token",
"Expires in": "Expires in",
"Scope": "Scope",
"Token type": "Token type" "Token type": "Token type"
}, },
"user": { "user": {

View File

@ -55,7 +55,6 @@
"Verify": "验证" "Verify": "验证"
}, },
"general": { "general": {
"Access token": "访问令牌",
"Action": "操作", "Action": "操作",
"Add": "添加", "Add": "添加",
"Affiliation URL": "工作单位URL", "Affiliation URL": "工作单位URL",
@ -63,7 +62,6 @@
"Application": "应用", "Application": "应用",
"Applications": "应用", "Applications": "应用",
"Applications that require authentication": "需要鉴权的应用", "Applications that require authentication": "需要鉴权的应用",
"Authorization code": "授权码",
"Avatar": "头像", "Avatar": "头像",
"Avatar - Tooltip": "向其他人展示的头像", "Avatar - Tooltip": "向其他人展示的头像",
"Back Home": "返回到首页", "Back Home": "返回到首页",
@ -81,7 +79,6 @@
"Edit": "修改", "Edit": "修改",
"Email": "电子邮箱", "Email": "电子邮箱",
"Email - Tooltip": "电子邮件:", "Email - Tooltip": "电子邮件:",
"Expires in": "有效期",
"Favicon - Tooltip": "网站的图标", "Favicon - Tooltip": "网站的图标",
"Forget URL": "忘记密码URL", "Forget URL": "忘记密码URL",
"Forget URL - Tooltip": "忘记密码URL", "Forget URL - Tooltip": "忘记密码URL",
@ -122,7 +119,6 @@
"Resources": "资源", "Resources": "资源",
"Save": "保存", "Save": "保存",
"Save & Exit": "保存 & 退出", "Save & Exit": "保存 & 退出",
"Scope": "范围",
"Signin URL": "登录URL", "Signin URL": "登录URL",
"Signin URL - Tooltip": "用户的登录地址", "Signin URL - Tooltip": "用户的登录地址",
"Signup URL": "注册URL", "Signup URL": "注册URL",
@ -131,7 +127,6 @@
"Swagger": "API文档", "Swagger": "API文档",
"Syncers": "同步器", "Syncers": "同步器",
"Timestamp": "时间戳", "Timestamp": "时间戳",
"Token type": "令牌类型",
"Tokens": "令牌", "Tokens": "令牌",
"URL": "链接", "URL": "链接",
"Up": "上移", "Up": "上移",
@ -338,7 +333,11 @@
"Table - Tooltip": "数据库表名" "Table - Tooltip": "数据库表名"
}, },
"token": { "token": {
"Access token": "Access token",
"Authorization code": "授权码",
"Edit Token": "修改令牌", "Edit Token": "修改令牌",
"Expires in": "有效期",
"Scope": "范围",
"Token type": "令牌类型" "Token type": "令牌类型"
}, },
"user": { "user": {