From 2d9344c10443df647b95b9f61bbf67444a070bb8 Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Tue, 10 Dec 2024 14:22:47 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=9B=BE=E8=A1=A8):=20=E5=9B=BD=E9=99=85?= =?UTF-8?q?=E5=8C=96(=E5=9B=BE=E8=A1=A8=E4=B8=80=E4=BA=9B=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E7=9A=84=E9=BB=98=E8=AE=A4=E5=80=BC)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/locales/en.ts | 3 ++- core/core-frontend/src/locales/tw.ts | 3 ++- core/core-frontend/src/locales/zh-CN.ts | 3 ++- .../chart/components/editor/util/chart.ts | 20 +++++++++---------- 4 files changed, 16 insertions(+), 13 deletions(-) diff --git a/core/core-frontend/src/locales/en.ts b/core/core-frontend/src/locales/en.ts index 175adc1ead..ea02fea45e 100644 --- a/core/core-frontend/src/locales/en.ts +++ b/core/core-frontend/src/locales/en.ts @@ -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
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
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', diff --git a/core/core-frontend/src/locales/tw.ts b/core/core-frontend/src/locales/tw.ts index 9a9bd3e6da..4a1a1ffd4f 100644 --- a/core/core-frontend/src/locales/tw.ts +++ b/core/core-frontend/src/locales/tw.ts @@ -1825,7 +1825,8 @@ export default { field_is_empty_export_error: '目前無欄位,無法匯出', chart_symbolic_map: '符號地圖', chart_stock_line: 'K 線圖', - liquid_condition_style_tips: `條件樣式設定,決定水波圖區間顏色,為空則不啟用閾值,範圍(0-100),逐級遞增
例如:輸入 30,70;表示:分為3段,分別為[0,30],[30,70],[70,100]` + liquid_condition_style_tips: `條件樣式設定,決定水波圖區間顏色,為空則不啟用閾值,範圍(0-100),逐級遞增
例如:輸入 30,70;表示:分為3段,分別為[0,30],[30,70],[70,100]`, + conversion_rate: '轉換率' }, dataset: { scope_edit: '僅編輯時生效', diff --git a/core/core-frontend/src/locales/zh-CN.ts b/core/core-frontend/src/locales/zh-CN.ts index 1a0f2b9463..52436bb6d4 100644 --- a/core/core-frontend/src/locales/zh-CN.ts +++ b/core/core-frontend/src/locales/zh-CN.ts @@ -1827,7 +1827,8 @@ export default { field_is_empty_export_error: '当前无字段,无法导出', chart_symbolic_map: '符号地图', chart_stock_line: 'K 线图', - liquid_condition_style_tips: `条件样式设置,决定水波图颜色,为空则不开启阈值,范围(0-100),逐级递增
例如:输入 30,70;表示:分为3段,分别为[0,30],[30,70],[70,100]` + liquid_condition_style_tips: `条件样式设置,决定水波图颜色,为空则不开启阈值,范围(0-100),逐级递增
例如:输入 30,70;表示:分为3段,分别为[0,30],[30,70],[70,100]`, + conversion_rate: '转化率' }, dataset: { scope_edit: '仅编辑时生效', diff --git a/core/core-frontend/src/views/chart/components/editor/util/chart.ts b/core/core-frontend/src/views/chart/components/editor/util/chart.ts index cd3c94e4ec..7dfb40ddb3 100644 --- a/core/core-frontend/src/views/chart/components/editor/util/chart.ts +++ b/core/core-frontend/src/views/chart/components/editor/util/chart.ts @@ -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',