feat: 【国际化】数据导出中心国际化

This commit is contained in:
taojinlong 2024-11-14 17:05:15 +08:00
parent 164b1a0de6
commit 9d06bf8c51
2 changed files with 100 additions and 2 deletions

View File

@ -28,6 +28,7 @@ const appearanceStore = useAppearanceStoreWithOut()
const { push } = useRouter()
const route = useRoute()
import { useCache } from '@/hooks/web/useCache'
import { useI18n } from '@/hooks/web/useI18n'
const { wsCache } = useCache('localStorage')
const aiBaseUrl = ref('https://maxkb.fit2cloud.com/ui/chat/2ddd8b594ce09dbb?mode=embed')
const handleIconClick = () => {
@ -38,7 +39,7 @@ const handleIconClick = () => {
const handleAiClick = () => {
useEmitt().emitter.emit('aiComponentChange')
}
const { t } = useI18n()
const handleCopilotClick = () => {
push('/copilot/index')
}
@ -158,7 +159,7 @@ onMounted(() => {
>
<Icon name="dv-ai"><dvAi @click="handleAiClick" class="svg-icon" /></Icon>
</el-icon>
<el-tooltip effect="dark" content="数据导出中心" placement="bottom">
<el-tooltip effect="dark" :content="t('data_export.export_center')" placement="bottom">
<el-icon
class="preview-download_icon"
:class="navigateBg === 'light' && 'is-light-setting'"

View File

@ -1124,6 +1124,7 @@ export default {
end_time: '結束時間',
parse_filed: '解析字段',
field_rename: '重命名',
set_key: '设为主键',
select_type: '選擇數據源類型',
sync_table: '同步指定表',
req_completed: '請求成功',
@ -2554,6 +2555,102 @@ export default {
sql_variable: {
variable_mgm: '參數設置'
},
v_query: {
msg_center: '消息中心',
to_be_filled: '待填报',
the_minimum_value: '数值区间最大值必须大于最小值',
before_querying: '查询条件是必填项请设置选项值后再进行查询',
here_or_click: '将右侧的字段拖拽到这里 点击',
add_query_condition: '添加查询条件',
set_filter_condition: '设置过滤条件',
delete_condition: '删除条件',
last_3_months: '最近 3 ',
last_6_months: '最近 6 ',
last_12_months: '最近 12 ',
last_3_days: '最近 3 ',
month_to_date: '月初至今',
year_to_date: '年初至今',
exact_match: '精确匹配',
fuzzy_match: '模糊匹配',
option_type: '选项类型',
time_filter_range: '设置时间筛选范围',
configured: '已配置',
is_not_supported: '绑定参数后不支持传空数据',
contains_empty_data: '选项值包含空数据',
unnamed: '未命名',
cannot_be_empty: '查询条件或字段不能为空',
the_first_level: '第一级无需配置被级联字段',
configure_cascaded_fields: '与上一级使用同一个数据集,无需配置被级联字段',
condition_cascade_configuration: '查询条件级联配置',
not_reverse_cascade: '(仅上级能级联下级,不可反向级联)',
must_be_met: '基于当前查询组件的查询条件如果需要进行级联配置需要满足以下条件',
select_data_set: '1. 展示类型文本下拉组件和数字下拉组件2. 选项值来源选择数据集',
add_cascade_configuration: '添加级联配置',
add_cascade_condition: '添加级联条件',
query_condition_level: '查询条件层级',
select_query_condition: '请选择查询条件',
select_cascaded_field: '请选择被级联字段',
level_1: '{msg}',
to_modify_it: '数据集的修改会导致级联配置失效因此对应的级联关系将被清除确定修改吗',
be_linked_first: '请先勾选需要联动的图表及字段',
cannot_be_performed: '所选字段类型不一致无法进行查询配置',
numerical_parameter_configuration: '数值参数配置必须配置最大值和最小值',
format_is_inconsistent: '时间格式不一致',
cannot_be_empty_de: '查询条件为必填项,默认值不能为空',
the_start_time: '结束时间必须大于开始时间!',
and_end_time: '时间参数配置必须配置开始时间和结束时间',
cannot_be_empty_time: '默认时间不能为空!',
range_please_reset: '默认值超出日期筛选范围内请重新设置',
cannot_be_empty_input: '手工输入-选项值不能为空',
option_value_field: '请选择数据集及选项值字段',
the_data_set: '请选择数据集的选项值字段',
cannot_be_empty_name: '字段名称不能为空',
query_condition_setting: '查询条件设置',
query_condition: '查询条件',
chart_and_field: '选择关联图表及字段',
be_switched_to: '注意:自动模式支持同数据集自动关联字段可切换到',
to_automatic_again: '自定义模式切换到自定义模式后无法再切换为自动',
as_query_conditions: '脱敏字段不能被设置为查询条件',
query_condition_configuration: '查询条件配置',
required_items: '必填项',
display_type: '展示类型',
text_drop_down: '文本下拉',
text_search: '文本搜索',
drop_down_tree: '下拉树',
number_drop_down: '数字下拉',
number_range: '数值区间',
of_option_values: '选项值数量',
tree_structure_design: '下拉树结构设计',
the_tree_structure: '点击进行树结构设计',
time_granularity: '时间粒度',
the_time_granularity: '请选择时间粒度',
option_value_source: '选项值来源',
manual_input: '手动输入',
query_field: '查询字段',
display_field: '显示字段',
the_sorting_field: '请选择排序字段',
condition_type: '条件类型',
single_condition: '单条件',
with_condition: '与条件',
or_condition: '或条件',
hide_condition_switch: '隐藏条件切换',
cannot_be_displayed: '图表所使用的数据集不同, 无法展示配置项',
component_cascade_configuration: '查询组件级联配置',
time_type: '时间类型',
start_at: '开始于',
end_at: '结束于',
time_interval: '时间区间',
interval_type: '区间类型',
query_time_window: '动态查询时间窗口',
maximum_single_query: '单次查询最多',
empty_data: '空数据',
time_selection: '时间选择',
select_a_field: '层级字段不能为空,请选择字段!',
add_level: '添加层级',
tree_query_field: '下拉树查询字段',
query_condition_width: '查询条件宽度',
custom_condition_style: '自定义条件样式'
},
panel: {
column_name: '字段名稱'
},