From bb7faf965fa3a2e18cd0c4a7fb45a26141ae3ac6 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Wed, 30 Oct 2024 13:33:10 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=9B=BD=E9=99=85=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/locales/en.ts | 35 ++++++++++++++++++++++++- core/core-frontend/src/locales/zh-CN.ts | 34 +++++++++++++++++++++++- 2 files changed, 67 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/locales/en.ts b/core/core-frontend/src/locales/en.ts index fbb24e233b..63759a3bae 100644 --- a/core/core-frontend/src/locales/en.ts +++ b/core/core-frontend/src/locales/en.ts @@ -164,7 +164,40 @@ export default { 'Logo on the right side of the login page, recommended size 204 x 52, support JPG, PNG, SVG, size not exceeding 200KB', not_exceeding_5m_de: 'Background image on the left, recommended size 640 x 900 for vector graphics, recommended size 1280 x 1800 for bitmaps; support JPG, PNG, SVG, size not exceeding 5M', - tab: 'Tab' + tab: 'Tab', + incorrect_please_re_enter: 'The callback domain name format is incorrect, please re-enter', + cas_settings: 'CAS settings', + callback_domain_name: 'Callback domain name', + authentication_settings: 'Authentication settings', + be_turned_on: 'After the test connection is valid, it can be turned on', + platform_information_first: 'Please save the platform information first', + for_example: 'For example: {"account":"uid","name":"cn","email":"mail"}', + in_json_format: 'Please enter in json format', + ldap_settings: 'LDAP settings', + ldap_address: 'LDAP address', + such_as_ldap: 'LDAP address (such as ldap://127.0.0.1:389)', + bind_dn: 'Bind DN', + user_ou: 'User OU', + separate_each_ou: 'OU (use | to separate each OU)', + user_filter: 'User filter', + such_as_uid: + 'Filter [Possible options are cn or uid or sAMAccountName={0}, such as: (uid={0})]', + ldap_attribute_mapping: 'LDAP attribute mapping', + incorrect_please_re_enter_de: 'The url format is incorrect, please re-enter', + oauth2_settings: 'OAUTH2 settings', + authorization_end_address: 'Authorization end address', + token_end_address: 'Token end address', + information_end_address: 'User information end address', + connection_range: 'Connection range', + client_id: 'Client ID', + client_key: 'Client key', + callback_address: 'Callback address', + field_mapping: 'Field mapping', + oauth2name: 'For example: {"account": "oauth2Account", "name": "oauth2Name", "email": "email"}', + oidc_settings: 'OIDC settings', + test_mail_recipient: '仅用来作为测试邮件收件人', + to_enable_ssl: '如果SMTP端口是 465 ,通常需要启用SSL', + to_enable_tsl: '如果SMTP端口是 587 ,通常需要启用TSL' }, components: { dashboard_style: 'Dashboard style', diff --git a/core/core-frontend/src/locales/zh-CN.ts b/core/core-frontend/src/locales/zh-CN.ts index be1ee93f4f..8f8b788913 100644 --- a/core/core-frontend/src/locales/zh-CN.ts +++ b/core/core-frontend/src/locales/zh-CN.ts @@ -506,7 +506,39 @@ export default { '登录页面右侧 Logo,建议尺寸 204 x 52,支持 JPG、PNG、SVG,大小不超过 200KB', not_exceeding_5m_de: '左侧背景图,矢量图建议尺寸 640 x 900,位图建议尺寸 1280 x 1800;支持 JPG、PNG、SVG,大小不超过 5M', - tab: '页签' + tab: '页签', + incorrect_please_re_enter: '回调域名格式错误,请重新输入', + cas_settings: 'CAS设置', + callback_domain_name: '回调域名', + authentication_settings: '认证设置', + be_turned_on: '测试连接有效后,可开启', + platform_information_first: '请先保存平台信息', + for_example: '如:{"account":"uid","name":"cn","email":"mail"}', + in_json_format: '请输入json格式', + ldap_settings: 'LDAP设置', + ldap_address: 'LDAP地址', + such_as_ldap: 'LDAP地址(如 ldap://127.0.0.1:389)', + bind_dn: '绑定DN', + user_ou: '用户OU', + separate_each_ou: 'OU(使用|分割各OU)', + user_filter: '用户过滤器', + such_as_uid: '过滤器 [可能的选项是cn或uid或sAMAccountName={0}, 如:(uid={0})]', + ldap_attribute_mapping: 'LDAP属性映射', + incorrect_please_re_enter_de: 'url格式错误,请重新输入', + oauth2_settings: 'OAUTH2设置', + authorization_end_address: '授权端地址', + token_end_address: 'Token 端地址', + information_end_address: '用户信息端地址', + connection_range: '连接范围', + client_id: '客户端 ID', + client_key: '客户端密钥', + callback_address: '回调地址', + field_mapping: '字段映射', + oauth2name: '例如:{"account": "oauth2Account", "name": "oauth2Name", "email": "email"}', + oidc_settings: 'OIDC设置', + test_mail_recipient: '仅用来作为测试邮件收件人', + to_enable_ssl: '如果SMTP端口是 465 ,通常需要启用SSL', + to_enable_tsl: '如果SMTP端口是 587 ,通常需要启用TSL' }, components: { dashboard_style: '仪表板风格',