From 737f699e36539599d31a433bcd5ffb7be3752f73 Mon Sep 17 00:00:00 2001 From: ulleo Date: Wed, 30 Oct 2024 17:36:42 +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 | 37 +++++++-- core/core-frontend/src/locales/tw.ts | 81 +++++++++++++++++-- core/core-frontend/src/locales/zh-CN.ts | 14 +++- .../src/views/share/share/ShareGrid.vue | 6 +- .../src/views/share/share/ShareHandler.vue | 34 ++++---- .../src/views/share/share/ShareTicket.vue | 17 ++-- .../src/views/share/share/ShareVisualHead.vue | 36 +++++---- .../src/views/share/share/option.ts | 10 ++- .../src/views/template-market/index.vue | 2 +- 9 files changed, 178 insertions(+), 59 deletions(-) diff --git a/core/core-frontend/src/locales/en.ts b/core/core-frontend/src/locales/en.ts index 621368af87..be4227bcba 100644 --- a/core/core-frontend/src/locales/en.ts +++ b/core/core-frontend/src/locales/en.ts @@ -103,12 +103,24 @@ export default { }, commons: { date: { + select_date: 'Select Date', + start_date: 'Start Date', + end_date: 'End Date', + select_date_time: 'Select Date and Time', + start_date_time: 'Start Date and Time', + end_date_time: 'End Date and Time', + range_separator: 'to', + data_time_error: 'Start date cannot be after end date', + one_hour: 'One Hour', + one_day: 'One Day', + one_week: 'One Week', + one_month: 'One Month', permanent: 'Permanent', - one_year: 'One year', - six_months: 'Six months', - three_months: 'Three months', - of_range_1_59: 'Minutes out of range [1-59]', - of_range_1_23: 'Hours out of range [1-23]' + one_year: 'One Year', + six_months: 'Six Months', + three_months: 'Three Months', + of_range_1_59: 'Minute out of range [1-59]', + of_range_1_23: 'Hour out of range [1-23]' } }, system: { @@ -386,7 +398,20 @@ export default { cancel_favorites: 'Cancel favorites', open_dataset: 'Open dataset', administrator_for_authorization: - 'There is no business menu permission, please contact the administrator for authorization' + 'There is no business menu permission, please contact the administrator for authorization', + public_link_share: 'Public Link Sharing', + share_time_limit: 'Must be greater than the current time', + ticket_setting: 'Ticket Settings', + cannot_share_link: + 'Global link sharing is disabled. Sharing function is temporarily unavailable. Please contact the administrator!', + open_link_hint: 'Once enabled, users can access via this link', + uuid_checker: 'Only supports 8-16 characters (alphanumeric). Please re-enter!', + error_password_hint: 'Password format is incorrect. Please refill!', + error_link_hint: 'Link format is incorrect. Please refill!', + password_null_hint: 'Password cannot be empty. Please re-enter!', + password_hint: + 'Password must be a 4-10 character string containing numbers, letters, and special characters [!@#$%^&*()_+]', + max_ticket_count: 'Supports up to 5 Tickets creation' }, data_set: { ten_wan: '100000', diff --git a/core/core-frontend/src/locales/tw.ts b/core/core-frontend/src/locales/tw.ts index 3e38a8c2de..e2abe686dc 100644 --- a/core/core-frontend/src/locales/tw.ts +++ b/core/core-frontend/src/locales/tw.ts @@ -150,7 +150,18 @@ export default { new_page_preview: '新頁面預覽', cancel_favorites: '取消收藏', open_dataset: '打開數據集', - administrator_for_authorization: '沒有任何業務菜單權限,請聯系管理員授權' + administrator_for_authorization: '沒有任何業務菜單權限,請聯系管理員授權', + public_link_share: '公共鏈接分享', + share_time_limit: '必須大于當前時間', + ticket_setting: 'Ticket 設置', + cannot_share_link: '已經開啟全局禁用分享,分享功能暫不可用,請聯系管理員!', + open_link_hint: '開啟后,用戶可以通過該鏈接訪問', + uuid_checker: '僅支持8-16位(字母數字),請重新輸入!', + error_password_hint: '密碼格式錯誤,請重新填寫!', + error_link_hint: '鏈接格式錯誤,請重新填寫!', + password_null_hint: '密碼不能為空,請重新輸入!', + password_hint: '密碼必須是包含數字、字母、特殊字符[!@#$%^&*()_+]的4-10位字符串', + max_ticket_count: '最多支持創建5個Ticket' }, data_set: { ten_wan: '10萬', @@ -577,7 +588,7 @@ export default { authentication_settings: '認證設置', be_turned_on: '測試連接有效后,可開啟', platform_information_first: '請先保存平台信息', - for_example: '如:{"account":"uid","name":"cn","email":"mail"}', + for_example: "如:{'{'}'account':'uid','name':'cn','email':'mail'{'}'}", in_json_format: '請輸入json格式', ldap_settings: 'LDAP設置', ldap_address: 'LDAP地址', @@ -586,7 +597,7 @@ export default { user_ou: '用戶OU', separate_each_ou: 'OU(使用|分割各OU)', user_filter: '用戶過濾器', - such_as_uid: '過濾器 [可能的選項是cn或uid或sAMAccountName={0}, 如:(uid={0})]', + such_as_uid: "過濾器 [可能的選項是cn或uid或sAMAccountName={'{'}0{'}'}, 如:(uid={'{'}0{'}'})]", ldap_attribute_mapping: 'LDAP屬性映射', incorrect_please_re_enter_de: 'url格式錯誤,請重新輸入', oauth2_settings: 'OAUTH2設置', @@ -598,11 +609,70 @@ export default { client_key: '客戶端密鑰', callback_address: '回調地址', field_mapping: '字段映射', - oauth2name: '例如:{"account": "oauth2Account", "name": "oauth2Name", "email": "email"}', + 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' + to_enable_tsl: '如果SMTP端口是 587 ,通常需要啟用TSL', + wrong_please_re_enter: '地址格式錯誤,請重新輸入', + create_embedded_application: '創建嵌入式應用', + edit_embedded_application: '編輯嵌入式應用', + application_name: '應用名稱', + cross_domain_settings: '跨域設置', + embedded_management: '嵌入式管理', + to_5_applications: '最多支持創建5個應用', + update_app_secret: '確定更新APP Secret嗎?', + operate_with_caution: '重置后現有的APP Secret將會失效,請謹慎操作。', + no_application: '暫無應用', + delete_this_application: '確定刪除此應用嗎', + platform_connection: '平台對接', + dingtalk_settings: '釘釘設置', + enabled: '已開啟', + close: '已關閉', + can_enable_it: '測試連接有效后,可開啟', + access: '接入', + feishu_settings: '飛書設置', + international_feishu_settings: '國際飛書設置', + international_feishu: '國際飛書', + enterprise_wechat_settings: '企業微信設置', + enterprise_wechat: '企業微信', + plugin_management: '插件管理', + search_plugin_name: '搜索插件名稱', + local_installation: '本地安裝', + relevant_content_found: '沒有找到相關內容', + no_plugins_yet: '暫無插件', + installation_time: '安裝時間:', + developer: '開發者:', + update_the_plugin: '確認更新該插件嗎?', + to_take_effect_update: '更新並重啟服務器之后才能生效', + uninstall_the_plugin: '確認卸載該插件嗎?', + to_take_effect_de: '卸載並重啟服務器之后才能生效', + uninstall_successful: '卸載成功', + update_successful: '更新成功', + installation_successful: '安裝成功', + can_be_uploaded: '只能上傳jar文件', + to_change_it: '變量類型修改后,變量值將清空,確認要修改嗎?', + add_variable: '添加變量', + edit_variable: '編輯變量', + variable_name: '變量名稱', + variable_type: '變量類型', + system_built_in_variable: '系統內置變量', + custom_variable: '自定義變量', + account: '賬戶', + delete_this_variable: '確定刪除該變量嗎?', + this_variable_value: '確定刪除該變量值嗎?', + variable_list: '變量列表', + add_variable_value: '添加變量值', + search_variable_value: '搜索變量值', + variable_value: '變量值', + set_variable_value: '設置變量值', + the_minimum_value: '請輸入最小值', + the_maximum_value: '請輸入最大值', + the_minimum_date: '請選擇最小日期', + the_maximum_date: '請選擇最大日期', + on_the_left_p: '請選擇左側變量', + edit_variable_value: '編輯變量值' }, components: { dashboard_style: '儀表板風格', @@ -2393,6 +2463,7 @@ export default { end_date_time: '結束日期時間', range_separator: '至', data_time_error: '開始日期不能大于結束日期', + one_hour: '一小時', one_day: '一天', one_week: '一周', one_month: '一個月', diff --git a/core/core-frontend/src/locales/zh-CN.ts b/core/core-frontend/src/locales/zh-CN.ts index 35493cb0a0..05871d12b8 100644 --- a/core/core-frontend/src/locales/zh-CN.ts +++ b/core/core-frontend/src/locales/zh-CN.ts @@ -150,7 +150,18 @@ export default { new_page_preview: '新页面预览', cancel_favorites: '取消收藏', open_dataset: '打开数据集', - administrator_for_authorization: '没有任何业务菜单权限,请联系管理员授权' + administrator_for_authorization: '没有任何业务菜单权限,请联系管理员授权', + public_link_share: '公共链接分享', + share_time_limit: '必须大于当前时间', + ticket_setting: 'Ticket 设置', + cannot_share_link: '已经开启全局禁用分享,分享功能暂不可用,请联系管理员!', + open_link_hint: '开启后,用户可以通过该链接访问', + uuid_checker: '仅支持8-16位(字母数字),请重新输入!', + error_password_hint: '密码格式错误,请重新填写!', + error_link_hint: '链接格式错误,请重新填写!', + password_null_hint: '密码不能为空,请重新输入!', + password_hint: '密码必须是包含数字、字母、特殊字符[!@#$%^&*()_+]的4-10位字符串', + max_ticket_count: '最多支持创建5个Ticket' }, data_set: { ten_wan: '10万', @@ -2452,6 +2463,7 @@ export default { end_date_time: '结束日期时间', range_separator: '至', data_time_error: '开始日期不能大于结束日期', + one_hour: '一小时', one_day: '一天', one_week: '一周', one_month: '一个月', diff --git a/core/core-frontend/src/views/share/share/ShareGrid.vue b/core/core-frontend/src/views/share/share/ShareGrid.vue index a4b4479a89..e20f31fbd7 100644 --- a/core/core-frontend/src/views/share/share/ShareGrid.vue +++ b/core/core-frontend/src/views/share/share/ShareGrid.vue @@ -107,7 +107,7 @@ const getEmptyImg = (): string => { const getEmptyDesc = (): string => { if (panelKeyword.value) { - return '没有找到相关内容' + return t('work_branch.relevant_content_found') } return '' @@ -172,7 +172,7 @@ watch( v-model="panelKeyword" clearable @change="triggerFilterPanel" - placeholder="搜索关键词" + :placeholder="t('work_branch.search_keyword')" >