Skip to content

Commit 39e7119

Browse files
committed
fix: login i18n bug
--bug=1051922 --user=王孝刚 【国际化】扫码登录没有国际化 https://www.tapd.cn/57709429/s/1649970
1 parent bb77448 commit 39e7119

File tree

9 files changed

+353
-342
lines changed

9 files changed

+353
-342
lines changed

ui/src/locales/lang/en-US/views/system.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default {
1818
ldap_filterPlaceholder: 'Please enter user filter',
1919
ldap_mapping: 'LDAP Attribute Mapping',
2020
ldap_mappingPlaceholder: 'Please enter LDAP attribute mapping',
21-
enableAuthentication: 'Enable LDAP Authentication',
21+
enableAuthentication: 'Enable LDAP Authentication'
2222
},
2323
cas: {
2424
title: 'CAS Settings',
@@ -85,7 +85,9 @@ export default {
8585
appSecretPlaceholder: 'Please enter APP secret',
8686
corpIdPlaceholder: 'Please enter corp ID',
8787
agentIdPlaceholder: 'Please enter agent ID',
88-
callbackWarning: 'Please enter a valid URL address'
88+
callbackWarning: 'Please enter a valid URL address',
89+
larkQrCode: 'Lark Scan Code Login',
90+
dingtalkQrCode: 'DingTalk Scan Code Login'
8991
}
9092
},
9193
theme: {
@@ -143,6 +145,6 @@ export default {
143145
smtpPassword: 'SMTP Password',
144146
smtpPasswordPlaceholder: 'Please enter SMTP password',
145147
enableSSL: 'Enable SSL (if the SMTP port is 465, you usually need to enable SSL)',
146-
enableTLS: 'Enable TLS (if the SMTP port is 587, you usually need to enable TLS)',
148+
enableTLS: 'Enable TLS (if the SMTP port is 587, you usually need to enable TLS)'
147149
}
148150
}

ui/src/locales/lang/zh-CN/views/system.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ export default {
8585
appSecretPlaceholder: '请输入 App Secret',
8686
corpIdPlaceholder: '请输入 Corp Id',
8787
agentIdPlaceholder: '请输入 Agent Id',
88-
callbackWarning: '请输入有效的 URL 地址'
88+
callbackWarning: '请输入有效的 URL 地址',
89+
larkQrCode: '飞书扫码登录',
90+
dingtalkQrCode: '钉钉扫码登录'
8991
}
9092
},
9193
theme: {

ui/src/locales/lang/zh-Hant/views/system.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default {
1919
ldap_filterPlaceholder: '請輸入使用者過濾器',
2020
ldap_mapping: 'LDAP 屬性對應',
2121
ldap_mappingPlaceholder: '請輸入 LDAP 屬性對應',
22-
enableAuthentication: '啟用 LDAP 認證',
22+
enableAuthentication: '啟用 LDAP 認證'
2323
},
2424
cas: {
2525
title: 'CAS 設定',
@@ -86,7 +86,9 @@ export default {
8686
appSecretPlaceholder: '請輸入 App Secret',
8787
corpIdPlaceholder: '請輸入 Corp Id',
8888
agentIdPlaceholder: '請輸入 Agent Id',
89-
callbackWarning: '請輸入有效的 URL 位址'
89+
callbackWarning: '請輸入有效的 URL 位址',
90+
larkQrCode: '飛書掃碼登錄',
91+
dingtalkQrCode: '釘釘掃碼登錄'
9092
}
9193
},
9294
theme: {
@@ -142,6 +144,6 @@ export default {
142144
smtpPassword: '發件人密碼',
143145
smtpPasswordPlaceholder: '請輸入發件人密碼',
144146
enableSSL: '啟用 SSL(如果 SMTP 端口是 465,通常需要啟用 SSL)',
145-
enableTLS: '啟用 TLS(如果 SMTP 端口是 587,通常需要啟用 TLS)',
147+
enableTLS: '啟用 TLS(如果 SMTP 端口是 587,通常需要啟用 TLS)'
146148
}
147149
}

0 commit comments

Comments
 (0)