Skip to content

Commit 0959b2a

Browse files
feat: i18n
1 parent 8cb9350 commit 0959b2a

File tree

25 files changed

+443
-419
lines changed

25 files changed

+443
-419
lines changed

ui/src/locales/lang/en_US/index.ts

Lines changed: 3 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -40,103 +40,8 @@ export default {
4040
exportSuccess: 'Export successful',
4141
unavailable: '(Unavailable)',
4242
public: 'Public',
43-
paramSetting: 'Parameter Settings'
43+
paramSetting: 'Parameter Settings',
44+
edit: 'Edit',
4445
},
45-
login: {
46-
authentication: 'Login Authentication',
47-
ldap: {
48-
title: 'LDAP Settings',
49-
address: 'LDAP Address',
50-
serverPlaceholder: 'Please enter LDAP address',
51-
bindDN: 'Bind DN',
52-
bindDNPlaceholder: 'Please enter Bind DN',
53-
password: 'Password',
54-
passwordPlaceholder: 'Please enter password',
55-
ou: 'User OU',
56-
ouPlaceholder: 'Please enter User OU',
57-
ldap_filter: 'User Filter',
58-
ldap_filterPlaceholder: 'Please enter User Filter',
59-
ldap_mapping: 'LDAP Attribute Mapping',
60-
ldap_mappingPlaceholder: 'Please enter LDAP Attribute Mapping',
61-
test: 'Test Connection',
62-
enableAuthentication: 'Enable LDAP Authentication',
63-
save: 'Save',
64-
testConnectionSuccess: 'Test Connection Success',
65-
testConnectionFailed: 'Test Connection Failed',
66-
saveSuccess: 'Save Success'
67-
},
68-
cas: {
69-
title: 'CAS Settings',
70-
ldpUri: 'ldpUri',
71-
ldpUriPlaceholder: 'Please enter ldpUri',
72-
validateUrl: 'Validation Address',
73-
validateUrlPlaceholder: 'Please enter Validation Address',
74-
redirectUrl: 'Callback Address',
75-
redirectUrlPlaceholder: 'Please enter Callback Address',
76-
enableAuthentication: 'Enable CAS Authentication',
77-
saveSuccess: 'Save Success',
78-
save: 'Save'
79-
},
80-
oidc: {
81-
title: 'OIDC Settings',
82-
authEndpoint: 'Auth Endpoint',
83-
authEndpointPlaceholder: 'Please enter Auth Endpoint',
84-
tokenEndpoint: 'Token Endpoint',
85-
tokenEndpointPlaceholder: 'Please enter Token Endpoint',
86-
userInfoEndpoint: 'User Info Endpoint',
87-
userInfoEndpointPlaceholder: 'Please enter User Info Endpoint',
88-
clientId: 'Client ID',
89-
clientIdPlaceholder: 'Please enter Client ID',
90-
clientSecret: 'Client Secret',
91-
clientSecretPlaceholder: 'Please enter Client Secret',
92-
logoutEndpoint: 'Logout Endpoint',
93-
logoutEndpointPlaceholder: 'Please enter Logout Endpoint',
94-
redirectUrl: 'Redirect URL',
95-
redirectUrlPlaceholder: 'Please enter Redirect URL',
96-
enableAuthentication: 'Enable OIDC Authentication'
97-
},
98-
jump_tip: 'Jumping to the authentication source page for authentication',
99-
jump: 'Jump',
100-
oauth2: {
101-
title: 'OAuth2 Settings',
102-
authEndpoint: 'Auth Endpoint',
103-
authEndpointPlaceholder: 'Please enter Auth Endpoint',
104-
tokenEndpoint: 'Token Endpoint',
105-
tokenEndpointPlaceholder: 'Please enter Token Endpoint',
106-
userInfoEndpoint: 'User Info Endpoint',
107-
userInfoEndpointPlaceholder: 'Please enter User Info Endpoint',
108-
scope: 'Scope',
109-
scopePlaceholder: 'Please enter Scope',
110-
clientId: 'Client ID',
111-
clientIdPlaceholder: 'Please enter Client ID',
112-
clientSecret: 'Client Secret',
113-
clientSecretPlaceholder: 'Please enter Client Secret',
114-
redirectUrl: 'Redirect URL',
115-
redirectUrlPlaceholder: 'Please enter Redirect URL',
116-
filedMapping: 'Field Mapping',
117-
filedMappingPlaceholder: 'Please enter Field Mapping',
118-
enableAuthentication: 'Enable OAuth2 Authentication',
119-
save: 'Save',
120-
saveSuccess: 'Save Success'
121-
},
122-
scanTheQRCode: {
123-
title: 'Scan the QR code',
124-
wecom: 'WeCom',
125-
dingtalk: 'DingTalk',
126-
lark: 'Lark',
127-
effective: 'Effective',
128-
alreadyTurnedOn: 'Turned On',
129-
notEnabled: 'Not Enabled',
130-
edit: 'Edit',
131-
validate: 'Validate',
132-
validateSuccess: 'Validation Successful',
133-
validateFailed: 'Validation Failed',
134-
validateFailedTip: 'Please fill in all required fields and ensure the format is correct',
135-
appKeyPlaceholder: 'Please enter App Key',
136-
appSecretPlaceholder: 'Please enter App Secret',
137-
corpIdPlaceholder: 'Please enter Corp ID',
138-
agentIdPlaceholder: 'Please enter Agent ID',
139-
callbackWarning: 'Please enter a valid URL address'
140-
}
141-
}
46+
14247
}

ui/src/locales/lang/en_US/views/application.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ export default {
2121
tip: {
2222
ExportError: 'Export Failed',
2323
professionalMessage:
24-
'The Community Edition supports up to 5 applications. If you need more applications, please upgrade to the Professional Edition.'
24+
'The Community Edition supports up to 5 applications. If you need more applications, please upgrade to the Professional Edition.',
25+
saveErrorMessage: 'Saving failed, please check your input or try again later',
26+
loadingErrorMessage: 'Failed to load configuration, please check your input or try again later'
2527
},
2628

2729
applicationForm: {
@@ -196,8 +198,6 @@ export default {
196198
urlInfo:
197199
'-Events and callbacks - event configuration - configure the "request address" of the subscription method'
198200
},
199-
saveErrorMessage: 'Saving failed, please check your input or try again later',
200-
loadingErrorMessage: 'Failed to load configuration, please check your input or try again later',
201201
copyUrl: 'Copy the link and fill it in'
202202
}
203203
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import notFound from './404';
22
import application from './application';
33
import applicationOverview from './application-overview';
4+
import system from './system';
45
export default {
56
notFound,
67
application,
7-
applicationOverview
8+
applicationOverview,
9+
system
810
};
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export default {
2+
jump_tip: 'Jumping to the authentication source page for authentication',
3+
jump: 'Jump'
4+
}
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
export default {
2+
authentication: {
3+
title: 'Login Authentication',
4+
ldap: {
5+
title: 'LDAP Settings',
6+
address: 'LDAP Address',
7+
serverPlaceholder: 'Please enter LDAP address',
8+
bindDN: 'Bind DN',
9+
bindDNPlaceholder: 'Please enter Bind DN',
10+
password: 'Password',
11+
passwordPlaceholder: 'Please enter password',
12+
ou: 'User OU',
13+
ouPlaceholder: 'Please enter User OU',
14+
ldap_filter: 'User Filter',
15+
ldap_filterPlaceholder: 'Please enter User Filter',
16+
ldap_mapping: 'LDAP Attribute Mapping',
17+
ldap_mappingPlaceholder: 'Please enter LDAP Attribute Mapping',
18+
test: 'Test Connection',
19+
enableAuthentication: 'Enable LDAP Authentication',
20+
testConnectionSuccess: 'Test Connection Success',
21+
testConnectionFailed: 'Test Connection Failed'
22+
},
23+
cas: {
24+
title: 'CAS Settings',
25+
ldpUri: 'ldpUri',
26+
ldpUriPlaceholder: 'Please enter ldpUri',
27+
validateUrl: 'Validation Address',
28+
validateUrlPlaceholder: 'Please enter Validation Address',
29+
redirectUrl: 'Callback Address',
30+
redirectUrlPlaceholder: 'Please enter Callback Address',
31+
enableAuthentication: 'Enable CAS Authentication'
32+
},
33+
oidc: {
34+
title: 'OIDC Settings',
35+
authEndpoint: 'Auth Endpoint',
36+
authEndpointPlaceholder: 'Please enter Auth Endpoint',
37+
tokenEndpoint: 'Token Endpoint',
38+
tokenEndpointPlaceholder: 'Please enter Token Endpoint',
39+
userInfoEndpoint: 'User Info Endpoint',
40+
userInfoEndpointPlaceholder: 'Please enter User Info Endpoint',
41+
clientId: 'Client ID',
42+
clientIdPlaceholder: 'Please enter Client ID',
43+
clientSecret: 'Client Secret',
44+
clientSecretPlaceholder: 'Please enter Client Secret',
45+
logoutEndpoint: 'Logout Endpoint',
46+
logoutEndpointPlaceholder: 'Please enter Logout Endpoint',
47+
redirectUrl: 'Redirect URL',
48+
redirectUrlPlaceholder: 'Please enter Redirect URL',
49+
enableAuthentication: 'Enable OIDC Authentication'
50+
},
51+
52+
oauth2: {
53+
title: 'OAuth2 Settings',
54+
authEndpoint: 'Auth Endpoint',
55+
authEndpointPlaceholder: 'Please enter Auth Endpoint',
56+
tokenEndpoint: 'Token Endpoint',
57+
tokenEndpointPlaceholder: 'Please enter Token Endpoint',
58+
userInfoEndpoint: 'User Info Endpoint',
59+
userInfoEndpointPlaceholder: 'Please enter User Info Endpoint',
60+
scope: 'Scope',
61+
scopePlaceholder: 'Please enter Scope',
62+
clientId: 'Client ID',
63+
clientIdPlaceholder: 'Please enter Client ID',
64+
clientSecret: 'Client Secret',
65+
clientSecretPlaceholder: 'Please enter Client Secret',
66+
redirectUrl: 'Redirect URL',
67+
redirectUrlPlaceholder: 'Please enter Redirect URL',
68+
filedMapping: 'Field Mapping',
69+
filedMappingPlaceholder: 'Please enter Field Mapping',
70+
enableAuthentication: 'Enable OAuth2 Authentication'
71+
},
72+
scanTheQRCode: {
73+
title: 'Scan the QR code',
74+
wecom: 'WeCom',
75+
dingtalk: 'DingTalk',
76+
lark: 'Lark',
77+
effective: 'Effective',
78+
alreadyTurnedOn: 'Turned On',
79+
notEnabled: 'Not Enabled',
80+
validate: 'Validate',
81+
validateSuccess: 'Validation Successful',
82+
validateFailed: 'Validation Failed',
83+
validateFailedTip: 'Please fill in all required fields and ensure the format is correct',
84+
appKeyPlaceholder: 'Please enter App Key',
85+
appSecretPlaceholder: 'Please enter App Secret',
86+
corpIdPlaceholder: 'Please enter Corp ID',
87+
agentIdPlaceholder: 'Please enter Agent ID',
88+
callbackWarning: 'Please enter a valid URL address'
89+
}
90+
},
91+
theme: {
92+
title: 'Appearance Settings'
93+
},
94+
email: {
95+
title: 'Email Setting'
96+
}
97+
}

ui/src/locales/lang/zh_CN/index.ts

Lines changed: 2 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -40,103 +40,7 @@ export default {
4040
exportSuccess: '导出成功',
4141
unavailable: '(不可用)',
4242
public: '公用',
43-
paramSetting: '参数设置'
44-
},
45-
login: {
46-
authentication: '登录认证',
47-
ldap: {
48-
title: 'LDAP 设置',
49-
address: 'LDAP 地址',
50-
serverPlaceholder: '请输入LDAP 地址',
51-
bindDN: '绑定DN',
52-
bindDNPlaceholder: '请输入绑定 DN',
53-
password: '密码',
54-
passwordPlaceholder: '请输入密码',
55-
ou: '用户OU',
56-
ouPlaceholder: '请输入用户 OU',
57-
ldap_filter: '用户过滤器',
58-
ldap_filterPlaceholder: '请输入用户过滤器',
59-
ldap_mapping: 'LDAP 属性映射',
60-
ldap_mappingPlaceholder: '请输入 LDAP 属性映射',
61-
test: '测试连接',
62-
enableAuthentication: '启用 LDAP 认证',
63-
save: '保存',
64-
testConnectionSuccess: '测试连接成功',
65-
testConnectionFailed: '测试连接失败',
66-
saveSuccess: '保存成功'
67-
},
68-
cas: {
69-
title: 'CAS 设置',
70-
ldpUri: 'ldpUri',
71-
ldpUriPlaceholder: '请输入ldpUri',
72-
validateUrl: '验证地址',
73-
validateUrlPlaceholder: '请输入验证地址',
74-
redirectUrl: '回调地址',
75-
redirectUrlPlaceholder: '请输入回调地址',
76-
enableAuthentication: '启用 CAS 认证',
77-
saveSuccess: '保存成功',
78-
save: '保存'
79-
},
80-
oidc: {
81-
title: 'OIDC 设置',
82-
authEndpoint: '授权端地址',
83-
authEndpointPlaceholder: '请输入授权端地址',
84-
tokenEndpoint: 'Token端地址',
85-
tokenEndpointPlaceholder: '请输入 Token 端地址',
86-
userInfoEndpoint: '用户信息端地址',
87-
userInfoEndpointPlaceholder: '请输入用户信息端地址',
88-
clientId: '客户端 ID',
89-
clientIdPlaceholder: '请输入客户端 ID',
90-
clientSecret: '客户端密钥',
91-
clientSecretPlaceholder: '请输入客户端密钥',
92-
logoutEndpoint: '注销端地址',
93-
logoutEndpointPlaceholder: '请输入注销端地址',
94-
redirectUrl: '回调地址',
95-
redirectUrlPlaceholder: '请输入回调地址',
96-
enableAuthentication: '启用 OIDC 认证'
97-
},
98-
jump_tip: '即将跳转至认证源页面进行认证',
99-
jump: '跳转',
100-
oauth2: {
101-
title: 'OAuth2 设置',
102-
authEndpoint: '授权端地址',
103-
authEndpointPlaceholder: '请输入授权端地址',
104-
tokenEndpoint: 'Token 端地址',
105-
tokenEndpointPlaceholder: '请输入 Token 端地址',
106-
userInfoEndpoint: '用户信息端地址',
107-
userInfoEndpointPlaceholder: '请输入用户信息端地址',
108-
scope: '连接范围',
109-
scopePlaceholder: '请输入连接范围',
110-
clientId: '客户端 ID',
111-
clientIdPlaceholder: '请输入客户端 ID',
112-
clientSecret: '客户端密钥',
113-
clientSecretPlaceholder: '请输入客户端密钥',
114-
redirectUrl: '回调地址',
115-
redirectUrlPlaceholder: '请输入回调地址',
116-
filedMapping: '字段映射',
117-
filedMappingPlaceholder: '请输入字段映射',
118-
enableAuthentication: '启用 OAuth2 认证',
119-
save: '保存',
120-
saveSuccess: '保存成功'
121-
},
122-
scanTheQRCode: {
123-
title: '扫码登录',
124-
wecom: '企业微信',
125-
dingtalk: '钉钉',
126-
lark: '飞书',
127-
effective: '有效',
128-
alreadyTurnedOn: '已开启',
129-
notEnabled: '未开启',
130-
edit: '编辑',
131-
validate: '校验',
132-
validateSuccess: '校验成功',
133-
validateFailed: '校验失败',
134-
validateFailedTip: '请填写所有必填项并确保格式正确',
135-
appKeyPlaceholder: '请输入 App Key',
136-
appSecretPlaceholder: '请输入 App Secret',
137-
corpIdPlaceholder: '请输入 Corp Id',
138-
agentIdPlaceholder: '请输入 Agent Id',
139-
callbackWarning: '请输入有效的 URL 地址'
140-
}
43+
paramSetting: '参数设置',
44+
edit: '编辑'
14145
}
14246
}

ui/src/locales/lang/zh_CN/views/application.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ export default {
1818
},
1919
tip: {
2020
ExportError: '导出失败',
21-
professionalMessage: '社区版最多支持 5 个应用,如需拥有更多应用,请升级为专业版。'
21+
professionalMessage: '社区版最多支持 5 个应用,如需拥有更多应用,请升级为专业版。',
22+
saveErrorMessage: '保存失败,请检查输入或稍后再试',
23+
loadingErrorMessage: '加载配置失败,请检查输入或稍后再试'
2224
},
2325
applicationForm: {
2426
title: {
@@ -187,8 +189,7 @@ export default {
187189
verificationTokenPlaceholder: '请输入Verification Token',
188190
urlInfo: '-事件与回调-事件配置-配置订阅方式的 "请求地址" 中'
189191
},
190-
saveErrorMessage: '保存失败,请检查输入或稍后再试',
191-
loadingErrorMessage: '加载配置失败,请检查输入或稍后再试',
192+
192193
copyUrl: '复制链接填入到'
193194
}
194195
}

ui/src/locales/lang/zh_CN/views/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ import notFound from './404';
22
import application from './application';
33
import applicationOverview from './application-overview';
44
import dataset from './dataset';
5+
import system from './system';
56
export default {
67
notFound,
78
application,
89
applicationOverview,
9-
dataset
10+
dataset,
11+
system
1012
};
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export default {
2+
jump_tip: '即将跳转至认证源页面进行认证',
3+
jump: '跳转'
4+
}

0 commit comments

Comments
 (0)