From d5bf5d75bee2ee6ef6a34fc2edfd51a02339b667 Mon Sep 17 00:00:00 2001 From: wisonic Date: Wed, 18 Dec 2024 15:45:42 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=9B=BD=E9=99=85=E5=8C=96?= =?UTF-8?q?=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/locales/en.ts | 14 ++++- core/core-frontend/src/locales/tw.ts | 12 +++- core/core-frontend/src/locales/zh-CN.ts | 12 +++- .../views/system/parameter/map/Geometry.vue | 55 ++++++++++--------- 4 files changed, 65 insertions(+), 28 deletions(-) diff --git a/core/core-frontend/src/locales/en.ts b/core/core-frontend/src/locales/en.ts index c7f67decc9..43c45040e9 100644 --- a/core/core-frontend/src/locales/en.ts +++ b/core/core-frontend/src/locales/en.ts @@ -640,7 +640,19 @@ export default { the_maximum_date: 'Please select the maximum date', on_the_left_p: 'Please select the left variable', edit_variable_value: 'Edit variable value', - secret_length: 'Secret length' + secret_length: 'Secret length', + custom_area: 'Custom area', + custom_area_tip: + 'Only supports custom geographic areas for provinces and municipalities in China', + add_area: 'Add area', + area_name: 'Area name', + area_scope: 'Area scope', + operation: 'Operation', + sub_area_tip: 'Please select a province or municipality', + delete_custom_area_tip: + 'This operation will cause the map using the custom area to fail to display normally, are you sure to delete?', + please_select_area: 'Please select an area', + delete_custom_sub_area_tip: 'Are you sure you want to delete this custom area?' }, components: { dashboard_style: 'Dashboard style', diff --git a/core/core-frontend/src/locales/tw.ts b/core/core-frontend/src/locales/tw.ts index fec3af0c58..63c95a973b 100644 --- a/core/core-frontend/src/locales/tw.ts +++ b/core/core-frontend/src/locales/tw.ts @@ -624,7 +624,17 @@ export default { the_maximum_date: '請選擇最大日期', on_the_left_p: '請選擇左側變數', edit_variable_value: '編輯變數值', - secret_length: '密鑰長度' + secret_length: '密鑰長度', + custom_area: '自定義區域', + custom_area_tip: '僅對中國的省份、直轄市,支持自定義地理區域', + add_area: '添加區域', + area_name: '區域名稱', + area_scope: '區域範圍', + operation: '操作', + sub_area_tip: '請選擇省份或直轄市', + delete_custom_area_tip: '該操作會導致使用了自定義區域的地圖無法正常展示,確定刪除?', + please_select_area: '請選擇區域', + delete_custom_sub_area_tip: '確定刪除該自定義區域?' }, components: { effective_during_link: '公共連結生效', diff --git a/core/core-frontend/src/locales/zh-CN.ts b/core/core-frontend/src/locales/zh-CN.ts index 598098cd65..18628767f1 100644 --- a/core/core-frontend/src/locales/zh-CN.ts +++ b/core/core-frontend/src/locales/zh-CN.ts @@ -627,7 +627,17 @@ export default { the_maximum_date: '请选择最大日期', on_the_left_p: '请选择左侧变量', edit_variable_value: '编辑变量值', - secret_length: '密钥长度' + secret_length: '密钥长度', + custom_area: '自定义区域', + custom_area_tip: '仅对中国的省份、直辖市,支持自定义地理区域', + add_area: '添加区域', + area_name: '区域名称', + area_scope: '区域范围', + operation: '操作', + sub_area_tip: '请选择省份或直辖市', + delete_custom_area_tip: '该操作会导致使用了自定义区域的地图无法正常展示,确定删除?', + please_select_area: '请选择区域', + delete_custom_sub_area_tip: '确定删除该自定义区域?' }, components: { dashboard_style: '仪表板风格', diff --git a/core/core-frontend/src/views/system/parameter/map/Geometry.vue b/core/core-frontend/src/views/system/parameter/map/Geometry.vue index 386db155ff..5704ba6944 100644 --- a/core/core-frontend/src/views/system/parameter/map/Geometry.vue +++ b/core/core-frontend/src/views/system/parameter/map/Geometry.vue @@ -92,14 +92,17 @@ - @@ -154,18 +157,18 @@ - 自定义区域 - (仅对中国的省份、直辖市,支持自定义地理区域) + {{ t('system.custom_area') }} + ({{ t('system.custom_area_tip') }}) - 添加区域 + {{ t('system.add_area') }} - + - - + +