Merge pull request #11345 from dataease/pr@dev-v2_st

feat(数据集): 国际化
This commit is contained in:
dataeaseShu 2024-08-02 16:37:50 +08:00 committed by GitHub
commit bb1c76a5b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 167 additions and 1 deletions

View File

@ -55,6 +55,90 @@ export default {
administrator_for_authorization:
'There is no business menu permission, please contact the administrator for authorization'
},
data_set: {
field_name: 'Field Name',
field_type: 'Field Type',
field_notes: 'Field notes',
operate_with_caution:
'After deletion, all resources under this folder will be deleted, so please operate with caution.',
delete_this_folder: 'Are you sure you want to delete this folder?',
a_new_dataset: 'Create a new dataset',
structure_preview: 'Structure preview',
by_creation_time: 'Sort ascending by creation time',
by_creation_time_de: 'Descending order by creation time',
by_name_ascending: 'Sort by name ascending',
order_by_name: 'Descending order by name',
data_set_yet: 'No data set yet',
new_data_screen: 'Create a new data screen',
pieces_in_total: 'Display 100 pieces of data, {msg} pieces in total',
no_data: 'No data',
no_tasks_yet: 'No tasks yet',
exporting: 'Exporting',
success: 'success',
fail: 'fail',
waiting: 'Waiting',
all: 'all',
successful_go_to: 'Export successful, go to',
failed_go_to: 'Export failed, go to',
data_set: 'data set',
view: 'view',
organization: 'Organization',
download: 'download',
re_export: 'Re-export',
delete: 'delete',
reason_for_failure: 'Reason for failure',
closure: 'closure',
cannot_be_empty: 'SQL name cannot be empty',
cannot_be_empty_de: 'SQL cannot be empty',
sure_to_exit: 'The information you filled in has not been saved. Are you sure to exit?',
copied_successfully: 'Copied successfully',
not_support_copying: 'Your browser does not support copying:',
parameters_set_successfully: 'Parameters set successfully',
run: 'run',
parameter_settings: 'parameter settings',
save: 'save',
current_data_source: 'Current data source',
relevant_content_found: 'No relevant content found',
physical_field_name: 'Physical field name',
click_above: 'Click above',
see_the_results: 'Run to see the results',
a_folder_name: 'Please enter a folder name',
the_dataset_name: 'Please enter the dataset name',
the_destination_folder: 'Please select the destination folder',
moved_successfully: 'Moved successfully',
rename_successful: 'Rename successful',
field: 'Field',
want_to_continue:
'If not selected, its related new fields will be deleted. Do you want to continue?',
field_selection: 'Field selection',
edit_sql: 'Edit SQL',
custom_sql_here: 'Drag the table or custom SQL here',
on_the_left: 'Change the data table and custom SQL on the left',
a_data_set: 'Drag and drop here to create a data set',
rename_table: 'Rename table',
table_name: 'table name',
table_name_de: 'Table Name',
table_remarks: 'Table remarks',
customize: 'customize',
change_field_type: 'Change field type',
text: 'text',
time: 'time',
geographical_location: 'geographical location',
numerical_value: 'numerical value',
numeric_value_decimal: 'Numeric value (decimal)',
edit: 'edit',
rename: 'Rename',
copy: 'copy',
unnamed_dataset: 'unnamed dataset',
cannot_be_empty_time: 'Custom time format cannot be empty',
custom_sql: 'Custom SQL',
want_to_exit: 'The current changes have not been saved. Are you sure you want to exit?',
saved_successfully: 'Saved successfully',
cannot_be_empty_de_: 'Expression cannot be empty!',
copy_a_dataset: 'Copy a dataset',
cannot_be_empty_de_field: 'The related field cannot be empty!',
dataset_cannot_be: 'The dataset cannot be'
},
login: {
welcome: 'Welcome',
btn: 'Login',

View File

@ -78,6 +78,88 @@ export default {
open_dataset: '打开数据集',
administrator_for_authorization: '没有任何业务菜单权限请联系管理员授权'
},
data_set: {
field_name: '字段名称',
field_type: '字段类型',
field_notes: '字段备注',
operate_with_caution: '删除后此文件夹下的所有资源都会被删除请谨慎操作',
delete_this_folder: '确定删除该文件夹吗',
a_new_dataset: '新建数据集',
structure_preview: '结构预览',
by_creation_time: '按创建时间升序',
by_creation_time_de: '按创建时间降序',
by_name_ascending: '按照名称升序',
order_by_name: '按照名称降序',
data_set_yet: '暂无数据集',
new_data_screen: '新建数据大屏',
pieces_in_total: '显示 100 条数据 {msg} ',
no_data: '暂无数据',
no_tasks_yet: '暂无任务',
exporting: '导出中',
success: '成功',
fail: '失败',
waiting: '等待中',
all: '全部',
successful_go_to: '导出成功前往',
failed_go_to: '导出失败前往',
data_set: '数据集',
view: '视图',
organization: '所属组织',
download: '下载',
re_export: '重新导出',
delete: '删除',
reason_for_failure: '失败原因',
closure: '关闭',
cannot_be_empty: 'SQL名字不能为空',
cannot_be_empty_de: 'SQL不能为空',
sure_to_exit: '你填写的信息未保存确认退出吗',
copied_successfully: '复制成功',
not_support_copying: '您的浏览器不支持复制',
parameters_set_successfully: '参数设置成功',
run: '运行',
parameter_settings: '参数设置',
save: '保存',
current_data_source: '当前数据源',
relevant_content_found: '没有找到相关内容',
physical_field_name: '物理字段名',
click_above: '点击上方',
see_the_results: '运行即可查看运行结果',
a_folder_name: '请输入文件夹名称',
the_dataset_name: '请输入数据集名称',
the_destination_folder: '请选择目标文件夹',
moved_successfully: '移动成功',
rename_successful: '重命名成功',
field: '字段',
want_to_continue: '未被选择其相关的新建字段将被删除是否继续',
field_selection: '字段选择',
edit_sql: '编辑SQL',
custom_sql_here: '拖拽表或自定义SQL至此处',
on_the_left: '将左侧的数据表自定义SQL',
a_data_set: '拖拽到这里创建数据集',
rename_table: '重命名表',
table_name: '表名称',
table_name_de: '表名',
table_remarks: '表备注',
customize: '自定义',
change_field_type: '更换字段类型',
text: '文本',
time: '时间',
geographical_location: '地理位置',
numerical_value: '数值',
numeric_value_decimal: '数值 (小数)',
edit: '编辑',
rename: '重命名',
copy: '复制',
unnamed_dataset: '未命名数据集',
cannot_be_empty_time: '自定义时间格式不能为空',
custom_sql: '自定义SQL',
want_to_exit: '当前的更改尚未保存,确定退出吗?',
saved_successfully: '保存成功',
cannot_be_empty_de_: '表达式不能为空!',
copy_a_dataset: '复制数据集',
cannot_be_empty_de_field: '关联字段不能为空!',
dataset_cannot_be: '数据集不能为'
},
dynamic_time: {
set_default: '设置默认值',
fix: '固定时间',

View File

@ -758,7 +758,7 @@ const getMenuList = (val: boolean) => {
</div>
<div class="dataset-table-info">
<div v-if="activeName === 'dataPreview'" class="preview-num">
显示 100 条数据 {{ total }}
{{ t('data_set.pieces_in_total', { msg: total }) }}
</div>
<template v-if="['dataPreview', 'structPreview'].includes(activeName)">
<div class="info-table" :class="[{ 'struct-preview': activeName === 'structPreview' }]">