Merge pull request #13934 from dataease/pr@dev-v2@chart-default-confi-i18n

feat(图表): 国际化(图表一些配置的默认值)
This commit is contained in:
jianneng-fit2cloud 2024-12-10 14:24:35 +08:00 committed by GitHub
commit 67869d32e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 16 additions and 13 deletions

View File

@ -1865,7 +1865,8 @@ Scatter chart (bubble) chart: {a} (series name), {b} (data name), {c} (value arr
field_is_empty_export_error: 'No fields available, unable to export',
chart_symbolic_map: 'Symbolic map',
chart_stock_line: 'K line',
liquid_condition_style_tips: `Condition style settings, determine water wave chart interval colors, leave blank to disable thresholds, range (0-100), incremental levels<br>Example: input 30,70; this means: divided into 3 segments, namely [0,30], [30,70], [70,100]`
liquid_condition_style_tips: `Condition style settings, determine water wave chart interval colors, leave blank to disable thresholds, range (0-100), incremental levels<br>Example: input 30,70; this means: divided into 3 segments, namely [0,30], [30,70], [70,100]`,
conversion_rate: 'Conversion rate'
},
dataset: {
scope_edit: 'only effective when editing',

View File

@ -1825,7 +1825,8 @@ export default {
field_is_empty_export_error: '目前無欄位無法匯出',
chart_symbolic_map: '符號地圖',
chart_stock_line: 'K 線圖',
liquid_condition_style_tips: `條件樣式設定決定水波圖區間顏色為空則不啟用閾值範圍(0-100)逐級遞增<br/>例如輸入 30,70表示分為3段分別為[0,30],[30,70],[70,100]`
liquid_condition_style_tips: `條件樣式設定決定水波圖區間顏色為空則不啟用閾值範圍(0-100)逐級遞增<br/>例如輸入 30,70表示分為3段分別為[0,30],[30,70],[70,100]`,
conversion_rate: '轉換率'
},
dataset: {
scope_edit: '僅編輯時生效',

View File

@ -1827,7 +1827,8 @@ export default {
field_is_empty_export_error: '当前无字段无法导出',
chart_symbolic_map: '符号地图',
chart_stock_line: 'K 线图',
liquid_condition_style_tips: `条件样式设置决定水波图颜色为空则不开启阈值范围(0-100)逐级递增<br/>例如输入 30,70表示分为3段分别为[0,30],[30,70],[70,100]`
liquid_condition_style_tips: `条件样式设置决定水波图颜色为空则不开启阈值范围(0-100)逐级递增<br/>例如输入 30,70表示分为3段分别为[0,30],[30,70],[70,100]`,
conversion_rate: '转化率'
},
dataset: {
scope_edit: '仅编辑时生效',

View File

@ -336,7 +336,7 @@ export const DEFAULT_LABEL: ChartLabelAttr = {
conversionTag: {
show: false,
precision: 2,
text: '转化率'
text: t('chart.conversion_rate')
},
showTotal: false,
totalFontSize: 12,
@ -374,8 +374,8 @@ export const DEFAULT_TABLE_TOTAL: ChartTableTotalAttr = {
showSubTotals: true,
reverseLayout: false,
reverseSubLayout: false,
label: '总计',
subLabel: '小计',
label: t('chart.total_show'),
subLabel: t('chart.sub_total_show'),
subTotalsDimensions: [],
calcTotals: {
aggregation: 'SUM',
@ -393,8 +393,8 @@ export const DEFAULT_TABLE_TOTAL: ChartTableTotalAttr = {
showSubTotals: true,
reverseLayout: false,
reverseSubLayout: false,
label: '总计',
subLabel: '小计',
label: t('chart.total_show'),
subLabel: t('chart.sub_total_show'),
subTotalsDimensions: [],
calcTotals: {
aggregation: 'SUM',
@ -409,7 +409,7 @@ export const DEFAULT_TABLE_TOTAL: ChartTableTotalAttr = {
}
}
export const DEFAULT_TABLE_HEADER: ChartTableHeaderAttr = {
indexLabel: '序号',
indexLabel: t('relation.index'),
showIndex: false,
tableHeaderAlign: 'left',
tableHeaderBgColor: '#6D9A49',
@ -1536,7 +1536,7 @@ export const CHART_TYPE_CONFIGS = [
},
{
category: 'other',
title: '其他',
title: t('datasource.other'),
display: 'hidden',
details: [
{
@ -1614,11 +1614,11 @@ export const DEFAULT_BASIC_STYLE: ChartBasicStyle = {
tableLayoutMode: 'grid',
calcTopN: false,
topN: 5,
topNLabel: '其他',
topNLabel: t('datasource.other'),
gaugeAxisLine: true,
gaugePercentLabel: true,
showSummary: false,
summaryLabel: '总计',
summaryLabel: t('chart.total_show'),
seriesColor: [],
layout: 'horizontal',
mapSymbolSizeMin: 4,
@ -1642,7 +1642,7 @@ export const DEFAULT_BASIC_STYLE: ChartBasicStyle = {
export const BASE_VIEW_CONFIG = {
id: '', // 图表id
title: '图表',
title: t('data_set.view'),
sceneId: 0, // 仪表板id
tableId: '', // 数据集id
type: 'bar',