refactor: 国际化适配

This commit is contained in:
wangjiahao 2024-11-18 13:20:56 +08:00
parent 2ecd05ca61
commit 7cd2d34597
3 changed files with 411 additions and 36 deletions

View File

@ -344,6 +344,381 @@ export default {
on_the_left_p: 'Please select the variable on the left',
edit_variable_value: 'Edit variable value'
},
visualization: {
filter_no_select: 'No selection required for the filter component',
forbidden_copy: 'Copying is not allowed for the current component',
url_check_error: 'Navigation error: URL is invalid',
view_style: 'Chart Style',
view_color_setting: 'Chart Color Scheme',
border_color_setting: 'Border Color Scheme',
unpublished_tips:
'Once unpublished, this dashboard cannot be viewed. Are you sure you want to unpublish?',
position_adjust_component: 'Position Adjustment',
active_font_size: 'Selected Font Size',
carousel: 'Carousel',
enable_carousel: 'Enable Carousel',
switch_time: 'Switch Time',
position_adjust: 'Position',
space_top: 'Top',
space_left: 'Left',
space_width: 'Width',
space_height: 'Height',
to_top: 'Move to Top',
down: 'Download',
mobile_style_setting: 'Style Settings',
mobile_style_setting_tips: 'Customize mobile background',
board: 'Border',
text: 'Text',
board_background: 'Background',
title_color: 'Title Color',
input_style: 'Input Field Style (Color)',
overall_setting: 'Overall Settings',
panel_background: 'Dashboard Background',
component_color: 'Component Color Scheme',
chart_title: 'Chart Title',
filter_component: 'Filter Component',
enable_refresh_view: 'Enable Refresh',
enable_view_loading: 'Enable Chart Loading Indicator',
image_size_tips: 'Images should not exceed 15MB',
image_add_tips: 'Only images can be inserted',
watermark: 'Watermark',
panel_get_data_error:
'Failed to fetch dashboard information. The dashboard may have been deleted. Please check its status.',
panel_no_save_tips: 'There are unsaved changes on the dashboard',
panel_cache_use_tips:
'There are unsaved changes from your last session. Would you like to recover them?',
template_name_tips: 'Dashboard name is required',
panel_background_item: 'Custom Dashboard Background',
panel_background_image_tips: 'Supported formats: JPG, PNG, GIF, SVG',
reUpload: 'Re-upload',
create_by: 'Created By',
create_time: 'Creation Time',
update_by: 'Last Modified By',
update_time: 'Last Modified Time',
target_url: 'Target URL',
target_url_tips: 'Fields can be clicked to append to the URL or parameters',
select_world: 'Click to reference a field',
template_market: 'Template Market',
template_preview: 'Preview Template',
apply: 'Apply',
apply_this_template: 'Apply This Template',
market_network_tips:
'To access templates from the market, the server must connect to the template market (https://templates.dataease.cn). Please check the network...',
enter_name_tips: 'Please enter the dashboard name',
name: 'Name',
apply_template: 'Apply Template',
style_template: 'Style Template',
all_type: 'All Categories',
enter_template_name_tips: 'Search template by name',
pic_adaptation: 'Fit Component',
pic_equiratio: 'Proportional Fit',
pic_original: 'Original Size',
pic_size: 'Image Size',
web_addr: 'Web Address',
stream_media_info: 'Streaming Media Info',
video_info: 'Video Info',
title_position: 'Title Position',
tab_inner_style: 'Tab Inner Style',
data_format: 'Date Format',
border_color: 'Border Color',
theme_change_warn: 'Theme Change',
theme_change_tips:
'Changing the theme will overwrite related chart attributes. Please back up your settings beforehand. Continue?',
theme_color_change_warn: 'Theme Color Change',
theme_color_change_tips: 'Changing theme color will overwrite existing chart properties',
theme_color: 'Theme Color',
theme_color_dark: 'Dark',
theme_color_light: 'Light',
refresh_frequency: 'Refresh Frequency',
card_color_matching: 'Card Color Scheme',
table_color_matching: 'Table Color Scheme',
background_color: 'Background Color',
more: 'More',
level: 'Level',
enlarge: 'Enlarge',
panel_style: 'Dashboard Style',
multiplexing: 'Reuse',
panel_off: 'Dashboard Unpublished',
batch_opt: 'Batch Operations',
cancel_batch_opt: 'Exit Batch Operations',
edit_leave_tips: 'Leave without saving changes?',
hyperlinks: 'Hyperlinks',
is_live: 'Is it Live?',
yes: 'Yes',
no: 'No',
live_tips: 'HTTPS links are preferred',
stream_media_add_tips: 'Please add streaming media info...',
stream_mobile_tips: 'Might not display on iOS devices',
json_params_error: 'Failed to parse third-party parameters. Please check the format.',
inner_padding: 'Inner Padding',
board_radio: 'Border Radius',
background: 'Background',
component_style: 'Component Style',
web_set_tips: 'Some websites may restrict embedding and may not display',
repeat_params: 'Duplicate parameter names exist',
enable_outer_param_set: 'Enable External Parameter Settings',
select_param: 'Please select a parameter...',
add_param_link_field: 'Add Parameter Link Field',
add_param: 'Add Parameter',
enable_param: 'Enable Parameter',
param_name: 'Parameter Name',
outer_param_set: 'External Parameter Settings',
outer_param_decode_error:
'External parameter decoding failed. Please follow the required encoding rules.',
input_param_name: 'Please enter the parameter name',
params_setting: 'External Parameter Settings',
template_view_tips: 'This is a template chart. Please replace the dataset.',
edit_web_tips: 'Webpage editing is disabled in edit mode',
no_auth_role: 'No shared role',
auth_role: 'Shared Role',
picture_limit: 'Only images can be inserted',
drag_here: 'Drag fields from the left here',
copy_link_passwd: 'Copy Link and Password',
copy_link: 'Copy Link',
copy_short_link: 'Copy Short Link',
copy_short_link_passwd: 'Copy Short Link and Password',
passwd_protect: 'Password Protection',
auto_pwd: 'Auto-generate Password',
link: 'Link',
over_time: 'Expiration Time',
link_expire: 'Link has expired!',
link_share: 'Link Sharing',
link_share_desc: 'With link sharing enabled, anyone can access this dashboard via the link.',
share: 'Share',
remove_share_confirm: 'Are you sure you want to cancel all shares of this dashboard?',
share_in: 'Shared with Me',
share_out: 'My Shares',
who_share: 'Shared By',
when_share: 'Share Time',
share_to: 'Share To',
share_to_some: 'Share [{some}] with',
org: 'Organization',
role: 'Role',
user: 'User',
datalist: 'Chart List',
group: 'Directory',
panel: 'Dashboard',
panel_list: 'Dashboards',
groupAdd: 'Create New Directory',
panelAdd: 'Create New Dashboard',
delete: 'Delete',
move_to: 'Move To',
rename: 'Rename',
import: 'Import Template',
tips: 'Tips',
confirm_delete: 'Confirm Delete',
delete_success: 'Deleted Successfully',
confirm: 'Confirm',
cancel: 'Cancel',
search: 'Search',
back: 'Back',
view: 'Chart',
module: 'Component',
filter_module: 'Filter Component',
select_by_module: 'Select by Component',
edit: 'Edit',
sys_template: 'System Template',
user_template: 'User Template',
add_category: 'Add Category',
add_app_category: 'Add Application Category',
filter_keywords: 'Enter keywords to filter',
dashboard_theme: 'Dashboard Theme',
table: 'Table',
gap: 'With Gap',
no_gap: 'No Gap',
component_gap: 'Component Gap',
refresh_time: 'Refresh Time',
minute: 'Minute',
second: 'Second',
photo: 'Image',
default_panel: 'Default Dashboard',
create_public_links: 'Create Public Links',
to_default: 'Save as Default',
to_default_panel: 'Save as Default Dashboard',
store: 'Favorite',
save_to_panel: 'Save as Template',
export_to_panel: 'Export as Template',
export_to_pdf: 'Export to PDF',
export_to_img: 'Export to Image',
export_to_app: 'Export to Application',
preview: 'Preview',
fullscreen_preview: 'Fullscreen Preview',
new_tab_preview: 'Preview in New Tab',
select_panel_from_left: 'Please select a dashboard from the left',
template_name: 'Template Name',
template: 'Template',
category: 'Category',
all_org: 'All Organizations',
custom: 'Custom',
import_template: 'Import Template',
copy_template: 'Reuse Template',
upload_template: 'Upload Template',
belong_to_category: 'Belongs to Category',
pls_select_belong_to_category: 'Please select the category it belongs to',
template_name_cannot_be_empty: 'Template name cannot be empty',
select_by_table: 'Select by Table',
data_list: 'Data List',
component_list: 'Component List',
custom_scope: 'Control Scope',
binding_parameters: 'Parameters',
multiple_choice: 'Multiple Choice',
show_time: 'Display Time',
single_choice: 'Single Choice',
field: 'Field',
unshared_people: 'Unshared People',
shared_people: 'Shared People',
error_data: 'Error retrieving data, please contact the administrator',
canvas_size: 'Canvas Size',
canvas_scale: 'Canvas Scale',
style: 'Style',
clean_canvas: 'Clear Canvas',
insert_picture: 'Insert Picture',
redo: 'Redo',
undo: 'Undo',
panelNull: 'This is an empty dashboard. Add content via editing.',
copy: 'Copy',
paste: 'Paste',
cut: 'Cut',
lock: 'Lock',
topComponent: 'Bring to Front',
bottomComponent: 'Send to Back',
upComponent: 'Move Up',
downComponent: 'Move Down',
linkage_setting: 'Linkage Settings',
add_tab: 'Add Tab',
open_aided_design: 'Open Aided Design',
close_aided_design: 'Close Aided Design',
open_style_design: 'Open Style Design',
close_style_design: 'Close Style Design',
matrix_design: 'Matrix Design',
left: 'X Coordinate',
top: 'Y Coordinate',
height: 'Height',
width: 'Width',
color: 'Color',
backgroundColor: 'Background Color',
borderStyle: 'Border Style',
borderWidth: 'Border Width',
borderColor: 'Border Color',
borderRadius: 'Border Radius',
fontSize: 'Font Size',
fontWeight: 'Font Weight',
lineHeight: 'Line Height',
letterSpacing: 'Letter Spacing',
padding: 'Padding',
margin: 'Margin',
textAlign: 'Text Alignment',
opacity: 'Opacity',
verticalAlign: 'Vertical Alignment',
text_align_left: 'Align Left',
text_align_center: 'Center Align',
text_align_right: 'Align Right',
vertical_align_top: 'Align Top',
vertical_align_middle: 'Align Middle',
vertical_align_bottom: 'Align Bottom',
border_style_solid: 'Solid',
border_style_dashed: 'Dashed',
select_component: 'Please Select a Component',
other_module: 'Others',
content: 'Content',
default_panel_name: 'Default Dashboard Name',
source_panel_name: 'Source Dashboard Name',
content_style: 'Content Style',
canvas_self_adaption: 'Adapt to Canvas Area',
panel_save_tips: 'The dashboard has changed. Save changes?',
panel_save_warn_tips: 'Unsaved changes to the dashboard will be lost!',
do_not_save: 'Do Not Save',
save: 'Save',
drill: 'Drill',
linkage: 'Linkage',
linkage_and_drill: 'Linkage and Drill',
jump: 'Jump',
cancel_linkage: 'Cancel Linkage',
switch_picture: 'Switch Picture',
select_field: 'Select Chart Field',
remove_all_linkage: 'Remove All Linkage',
exit_un_march_linkage_field: 'Associated field cannot be empty',
details: 'Details',
setting: 'Settings',
no_drill_field: 'Missing Associated Field',
matrix: 'Matrix',
suspension: 'Suspension',
new_element_distribution: 'Element Distribution Method',
aided_grid: 'Aided Design Grid',
aided_grid_open: 'Open',
aided_grid_close: 'Close',
export_pdf_page: 'Page Break',
export_pdf_page_remark: 'Effective only for API dashboard PDF export',
subject_no_edit: 'System themes cannot be edited',
subject_name_not_null: 'Theme name must be 1~20 characters',
is_enable: 'Is Enabled',
open_mode: 'Open Mode',
new_window: 'New Page',
now_window: 'Current Page',
pop_window: 'Popup Page',
hyperLinks: 'Target Address',
link_open_tips: 'Links can be opened in non-edit mode',
data_loading: 'Data is being prepared...',
export_loading: 'Exporting...',
export_pdf: 'Export PDF',
jump_set: 'Jump Settings',
enable_jump: 'Enable Jump',
column_name: 'Column Name',
enable_column: 'Enable Column',
open_model: 'Open Mode',
link_type: 'Jump Type',
link_outer: 'External Link',
link_panel: 'Dashboard',
select_jump_panel: 'Select Associated Dashboard',
link_view: 'Link Chart',
link_view_field: 'Link Chart Field',
add_jump_field: 'Add Dependency Field for Jump',
input_jump_link: 'Please enter the jump link',
select_dimension: 'Please select a dimension...',
select_dimension_hint: 'Check the fields you want to jump to first',
please_select: 'Please Select',
video_type: 'Video Type',
online_video: 'Online Video',
streaming_media: 'Streaming Media',
auto_play: 'Auto Play',
video_tips: 'Prefer HTTPS links; Supported formats: mp4, webm',
play_frequency: 'Playback Frequency',
play_once: 'Play Once',
play_circle: 'Loop Playback',
video_links: 'Video Links',
web_url: 'Web Address',
video_add_tips: 'Configure video details...',
link_add_tips_pre: 'Configure web page details...',
web_add_tips_suf: 'Add webpage details...',
panel_view_result_show: 'Chart Results',
panel_view_result_tips: 'Choosing {0} will override the charts result display range (1~10000)',
timeout_refresh: 'Request timed out, refresh later...',
mobile_layout: 'Mobile Layout',
component_hidden: 'Hidden Component',
public_link_tips:
'Currently in public link mode. The target dashboard is not set to public link and cannot be jumped to.',
input_title: 'Enter Title',
show_title: 'Title',
default_settings: 'Default Settings',
choose_background: 'Select Component Background',
choose_background_tips: 'The components own background overrides this setting',
setting_background: 'Set Background',
setting_jump: 'Set Jump',
select_view: 'Please Select a Chart...',
visual: 'Virtualization',
prohibit_multiple: 'Multiple fields from the same dataset are not allowed',
be_empty_dir: 'Is an empty directory!',
fold: 'Collapse',
expand: 'Expand',
pdf_export: 'PDF Export',
switch_pdf_template: 'Switch PDF Template',
pdf_template_with_params: 'Default Template (with Dashboard Description)',
pdf_template_only_pic: 'Default Template (Screenshots Only)',
panel_name: 'Dashboard Name',
export_user: 'Export User',
export_time: 'Export Time',
you_can_type_here: 'You can type other content here'
},
components: {
dashboard_style: 'Dashboard style',
overall_configuration: 'Overall configuration',

View File

@ -2657,12 +2657,12 @@ export default {
},
visualization: {
filter_no_select: '過濾組件無需選擇',
forbidden_copy: '當前組件不允許復制',
forbidden_copy: '當前組件不允許複製',
url_check_error: '跳轉錯誤URL不合法',
view_style: '圖表樣式',
view_color_setting: '圖表配色',
border_color_setting: '邊框配色',
unpublished_tips: '取消發布該儀表板不能被查看確定要取消發布',
unpublished_tips: '取消發布該儀表板不能被查看確定要取消發布',
position_adjust_component: '位置調整',
active_font_size: '選中字體大小',
carousel: '輪播',
@ -2689,7 +2689,7 @@ export default {
filter_component: '查詢組件',
enable_refresh_view: '開啟刷新',
enable_view_loading: '圖表加載提示',
image_size_tips: '圖片請不要大15M',
image_size_tips: '圖片請不要大15M',
image_add_tips: '只能插入圖片',
watermark: '水印',
panel_get_data_error: '獲取儀表板信息失敗儀表板可能已經被刪除請檢查儀表板狀態',
@ -2730,7 +2730,7 @@ export default {
data_format: '日期格式',
border_color: '邊框顏色',
theme_change_warn: '主題更換',
theme_change_tips: '更換主題將會覆蓋圖表相關主題屬性建議提前備份,是否繼續更換',
theme_change_tips: '更換主題將會覆蓋圖表相關主題屬性建議提前備份是否繼續更換',
theme_color_change_warn: '主題色更換',
theme_color_change_tips: '主題色變更將會覆蓋原有圖表屬性',
theme_color: '主題色',
@ -2744,7 +2744,7 @@ export default {
level: '層級',
enlarge: '放大',
panel_style: '儀表板樣式',
multiplexing: '',
multiplexing: '',
panel_off: '儀表板已下架',
batch_opt: '批量操作',
cancel_batch_opt: '退出批量操作',
@ -2762,7 +2762,7 @@ export default {
background: '背景',
component_style: '組件樣式',
web_set_tips: '部分網站可能設置不允許嵌入而無法顯示',
repeat_params: '存在名稱重的參數',
repeat_params: '存在名稱重的參數',
enable_outer_param_set: '啟用外部參數設置',
select_param: '請選擇參數...',
add_param_link_field: '添加參數聯動字段',
@ -2773,23 +2773,23 @@ export default {
outer_param_decode_error: '外部參數解析錯誤未生效請按規定編碼方式傳參',
input_param_name: '請輸入參數名稱',
params_setting: '外部參數設置',
template_view_tips: '當前是模板圖表,請點擊更換數據集',
template_view_tips: '當前是模板圖表請點擊更換數據集',
edit_web_tips: '編輯狀態不可操作網頁內部',
no_auth_role: '未分享角色',
auth_role: '已分享角色',
picture_limit: '只能插入圖片',
drag_here: '請將左側字段拖至此處',
copy_link_passwd: '復制鏈接及密碼',
copy_link: '復制鏈接',
copy_short_link: '復制短鏈接',
copy_short_link_passwd: '復制短鏈接及密碼',
copy_link_passwd: '複製鏈接及密碼',
copy_link: '複製鏈接',
copy_short_link: '複製短鏈接',
copy_short_link_passwd: '複製短鏈接及密碼',
passwd_protect: '密碼保護',
auto_pwd: '自動生成密碼',
link: '鏈接',
over_time: '有效期',
link_expire: '鏈接已過期',
link_share: '鏈接分享',
link_share_desc: '開啟鏈接任何人可通過此鏈接訪問儀表板',
link_share_desc: '開啟鏈接任何人可通過此鏈接訪問儀表板',
share: '分享',
remove_share_confirm: '確認取消當前儀表板所有分享',
share_in: '分享給我',
@ -2843,20 +2843,20 @@ export default {
to_default_panel: '另存為默認儀表板',
store: '收藏',
save_to_panel: '保存為模板',
export_to_panel: '出為模板',
export_to_pdf: '出為PDF',
export_to_img: '出為圖片',
export_to_app: '出為應用',
export_to_panel: '出為模板',
export_to_pdf: '出為PDF',
export_to_img: '出為圖片',
export_to_app: '出為應用',
preview: '預覽',
fullscreen_preview: '全屏預覽',
new_tab_preview: '新Tab頁預覽',
select_panel_from_left: '請從左側選擇儀表板',
template_nale: '模板名稱',
template_name: '模板名稱',
template: '模板',
category: '分類',
all_org: '所有組織',
custom: '自定義',
import_template: '入模板',
import_template: '入模板',
copy_template: '復用模板',
upload_template: '上傳模板',
belong_to_category: '所屬類別',
@ -2865,7 +2865,7 @@ export default {
select_by_table: '按表選擇',
data_list: '數據列表',
component_list: '組件列表',
custom_scope: '控制',
custom_scope: '控制',
binding_parameters: '參數',
multiple_choice: '多選',
show_time: '顯示時間',
@ -2873,7 +2873,7 @@ export default {
field: '字段',
unshared_people: '未分享人員',
shared_people: '已分享人員',
error_data: '獲取數據出錯請聯管理員',
error_data: '獲取數據出錯請聯管理員',
canvas_size: '畫布大小',
canvas_scale: '畫布比例',
style: '樣式',
@ -2881,8 +2881,8 @@ export default {
insert_picture: '插入圖片',
redo: '重做',
undo: '撤銷',
panelNull: '這是個空的儀表板可以通過編輯來豐富內容',
copy: '復制',
panelNull: '這是個空的儀表板可以通過編輯來豐富內容',
copy: '複製',
paste: '粘貼',
cut: '剪切',
lock: '鎖定',
@ -2949,12 +2949,12 @@ export default {
no_drill_field: '缺少關聯字段',
matrix: '矩陣',
suspension: '懸浮',
new_element_distribution: '元素移入分方式',
new_element_distribution: '元素移入分方式',
aided_grid: '輔助設計網格',
aided_grid_open: '打開',
aided_grid_close: '關閉',
export_pdf_page: '分頁線',
export_pdf_page_remark: '僅對API出儀表板PDF分頁有效',
export_pdf_page_remark: '僅對API出儀表板PDF分頁有效',
subject_no_edit: '系統主題不能修改',
subject_name_not_null: '主題名稱需要1~20字符',
is_enable: '是否啟用',
@ -2964,9 +2964,9 @@ export default {
pop_window: '彈窗頁面',
hyperLinks: '目標地址',
link_open_tips: '儀表板非編輯狀態可打開鏈接',
data_loading: '數據備中...',
export_loading: '出中...',
export_pdf: '出PDF',
data_loading: '數據備中...',
export_loading: '出中...',
export_pdf: '出PDF',
jump_set: '跳轉設置',
enable_jump: '啟用跳轉',
column_name: '字段名稱',
@ -2979,7 +2979,7 @@ export default {
link_view: '聯動圖表',
link_view_field: '聯動圖表字段',
add_jump_field: '追加跳轉聯動依賴字段',
input_jump_link: '請輸入跳轉',
input_jump_link: '請輸入跳轉',
select_dimension: '請選擇維度...',
select_dimension_hint: '請先勾選需要跳轉的字段',
please_select: '請選擇',
@ -2997,9 +2997,9 @@ export default {
link_add_tips_pre: '請配置網頁信息..',
web_add_tips_suf: '添加網頁信息...',
panel_view_result_show: '圖表結果',
panel_view_result_tips: '選擇{0}會覆蓋圖表的結果展示數量取值圍1~10000',
timeout_refresh: '請求超時刷新...',
mobile_layout: '移動端',
panel_view_result_tips: '選擇{0}會覆蓋圖表的結果展示數量取值圍1~10000',
timeout_refresh: '請求超時刷新...',
mobile_layout: '移動端',
component_hidden: '隱藏的組件',
public_link_tips: '當前是公共鏈接模式目標儀表板未設置公共鏈接無法跳轉',
input_title: '請輸入標題',
@ -3015,14 +3015,14 @@ export default {
be_empty_dir: '是空目錄',
fold: '收起',
expand: '展開',
pdf_export: 'PDF ',
pdf_export: 'PDF ',
switch_pdf_template: '切換 PDF 模板',
pdf_template_with_params: '默認模板(加儀表板描述)',
pdf_template_only_pic: '默認模板(只截圖)',
panel_name: '儀表板名稱',
export_user: '出用戶',
export_time: '出時間',
you_can_type_here: '可以在這輸入其他內容'
export_user: '出用戶',
export_time: '出時間',
you_can_type_here: '可以在這輸入其他內容'
},
link_ticket: {
require: '必選',

View File

@ -2858,7 +2858,7 @@ export default {
fullscreen_preview: '全屏预览',
new_tab_preview: '新Tab页预览',
select_panel_from_left: '请从左侧选择仪表板',
template_nale: '模板名称',
template_name: '模板名称',
template: '模板',
category: '分类',
all_org: '所有组织',