Fix some missed i18n for ui (#10472)

This commit is contained in:
Wilson Wu 2023-05-12 09:44:42 +08:00 committed by GitHub
parent 9824743655
commit b535293bc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 18 additions and 10 deletions

View File

@ -293,6 +293,7 @@ const I18N_CONF = {
configurationManagement8: 'configuration management',
queryResults: 'Found',
articleMeetRequirements: 'configuration items',
fuzzydMode: 'Default fuzzy query mode',
fuzzyd: "Add wildcard '*' for fuzzy query",
defaultFuzzyd: 'Default fuzzy query mode opened',
fuzzyg: "Add wildcard '*' for fuzzy query",
@ -580,6 +581,7 @@ const I18N_CONF = {
operation: 'Operation',
refresh: 'Refresh',
query: 'Search',
fuzzydMode: 'Default fuzzy query mode',
defaultFuzzyd: 'Default fuzzy query mode opened',
fuzzyd: "Add wildcard '*' for fuzzy query",
},
@ -616,6 +618,7 @@ const I18N_CONF = {
deleteRole: 'Delete',
deleteRoleTip: 'Do you want to delete this role?',
refresh: 'Refresh',
fuzzydMode: 'Default fuzzy query mode',
defaultFuzzyd: 'Default fuzzy query mode opened',
fuzzyd: "Add wildcard '*' for fuzzy query",
query: 'Search',
@ -642,6 +645,7 @@ const I18N_CONF = {
writeOnly: 'write only',
readWrite: 'Read and write',
refresh: 'Refresh',
fuzzydMode: 'Default fuzzy query mode',
defaultFuzzyd: 'Default fuzzy query mode opened',
fuzzyd: "Add wildcard '*' for fuzzy query",
query: 'Search',

View File

@ -290,6 +290,7 @@ const I18N_CONF = {
configurationManagement8: '配置管理',
queryResults: '查询到',
articleMeetRequirements: '条满足要求的配置',
fuzzydMode: '默认模糊匹配',
fuzzyd: "添加通配符'*'进行模糊查询",
defaultFuzzyd: '已开启默认模糊查询',
fuzzyg: "添加通配符'*'进行模糊查询",
@ -575,6 +576,7 @@ const I18N_CONF = {
operation: '操作',
refresh: '刷新',
query: '查询',
fuzzydMode: '默认模糊匹配',
defaultFuzzyd: '已开启默认模糊查询',
fuzzyd: "添加通配符'*'进行模糊查询",
},
@ -611,6 +613,7 @@ const I18N_CONF = {
deleteRole: '删除',
deleteRoleTip: '是否要删除该角色',
refresh: '刷新',
fuzzydMode: '默认模糊匹配',
defaultFuzzyd: '已开启默认模糊查询',
fuzzyd: "添加通配符'*'进行模糊查询",
query: '查询',
@ -637,6 +640,7 @@ const I18N_CONF = {
writeOnly: '只写',
readWrite: '读写',
refresh: '刷新',
fuzzydMode: '默认模糊匹配',
defaultFuzzyd: '已开启默认模糊查询',
fuzzyd: "添加通配符'*'进行模糊查询",
query: '查询',

View File

@ -118,7 +118,7 @@ class PermissionsManagement extends React.Component {
<>
<RegionGroup left={locale.privilegeManagement} />
<Form inline>
<Form.Item label="角色名">
<Form.Item label={locale.role}>
<Input
value={this.state.role}
htmlType="text"
@ -129,13 +129,13 @@ class PermissionsManagement extends React.Component {
}}
/>
</Form.Item>
<Form.Item label="默认模糊匹配">
<Form.Item label={locale.fuzzydMode}>
<Switch
checkedChildren=""
unCheckedChildren=""
defaultChecked={this.state.defaultFuzzySearch}
onChange={this.handleDefaultFuzzySwitchChange}
title={'自动在搜索参数前后加上*'}
title={locale.fuzzyd}
/>
</Form.Item>
<Form.Item label={''}>

View File

@ -131,13 +131,13 @@ class RolesManagement extends React.Component {
}}
/>
</Form.Item>
<Form.Item label="默认模糊匹配">
<Form.Item label={locale.fuzzydMode}>
<Switch
checkedChildren=""
unCheckedChildren=""
defaultChecked={this.state.defaultFuzzySearch}
onChange={this.handleDefaultFuzzySwitchChange}
title={'自动在搜索参数前后加上*'}
title={locale.fuzzyd}
/>
</Form.Item>
<Form.Item label={''}>

View File

@ -121,7 +121,7 @@ class UserManagement extends React.Component {
<>
<RegionGroup left={locale.userManagement} />
<Form inline>
<Form.Item label="用户名">
<Form.Item label={locale.username}>
<Input
value={this.username}
htmlType="text"
@ -133,13 +133,13 @@ class UserManagement extends React.Component {
}}
/>
</Form.Item>
<Form.Item label="默认模糊匹配">
<Form.Item label={locale.fuzzydMode}>
<Switch
checkedChildren=""
unCheckedChildren=""
defaultChecked={this.state.defaultFuzzySearch}
onChange={this.handleDefaultFuzzySwitchChange}
title={'自动在搜索参数前后加上*'}
title={locale.fuzzyd}
/>
</Form.Item>
<Form.Item label={''}>

View File

@ -1201,13 +1201,13 @@ class ConfigurationManagement extends React.Component {
/>
</Form.Item>
<Form.Item label="默认模糊匹配">
<Form.Item label={locale.fuzzydMode}>
<Switch
checkedChildren=""
unCheckedChildren=""
defaultChecked={this.state.defaultFuzzySearch}
onChange={this.handleDefaultFuzzySwitchChange}
title={'自动在搜索参数前后加上*'}
title={locale.fuzzyd}
/>
</Form.Item>