Skip to content

Commit 38f61da

Browse files
committed
#1046: i18n for pivot table menu options
1 parent 8c8db34 commit 38f61da

File tree

1 file changed

+27
-5
lines changed
  • frontend/src/app/components/ChartGraph/PivotSheetChart

1 file changed

+27
-5
lines changed

frontend/src/app/components/ChartGraph/PivotSheetChart/config.ts

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,16 @@ const config: ChartConfig = {
281281
default: true,
282282
comType: 'select',
283283
options: {
284+
translateItemLabel: true,
284285
items: [
285-
{ label: '顶部', value: true },
286-
{ label: '底部', value: false },
286+
{
287+
label: 'summary.totalPositionTop',
288+
value: true,
289+
},
290+
{
291+
label: 'summary.totalPositionBottom',
292+
value: false,
293+
},
287294
],
288295
},
289296
},
@@ -299,9 +306,16 @@ const config: ChartConfig = {
299306
default: true,
300307
comType: 'select',
301308
options: {
309+
translateItemLabel: true,
302310
items: [
303-
{ label: '顶部', value: true },
304-
{ label: '底部', value: false },
311+
{
312+
label: 'summary.subTotalPositionTop',
313+
value: true,
314+
},
315+
{
316+
label: 'summary.subTotalPositionBottom',
317+
value: false,
318+
},
305319
],
306320
},
307321
},
@@ -340,7 +354,11 @@ const config: ChartConfig = {
340354
enableTotal: '启用总计',
341355
enableSubTotal: '启用小计',
342356
totalPosition: '总计位置',
357+
totalPositionTop: '顶部',
358+
totalPositionBottom: '底部',
343359
subTotalPosition: '小计位置',
360+
subTotalPositionTop: '顶部',
361+
subTotalPositionBottom: '底部',
344362
aggregateFields: '汇总列',
345363
},
346364
},
@@ -374,9 +392,13 @@ const config: ChartConfig = {
374392
rowSummary: 'Row Total',
375393
columnSummary: 'Column Total',
376394
enableTotal: 'Enable Total',
377-
enableSubTotal: 'Enable Sub Total',
378395
totalPosition: 'Total Position',
396+
totalPositionTop: 'Top',
397+
totalPositionBottom: 'Bottom',
398+
enableSubTotal: 'Enable Sub Total',
379399
subTotalPosition: 'Sub Total Position',
400+
subTotalPositionTop: 'Top',
401+
subTotalPositionBottom: 'Bottom',
380402
aggregateFields: 'Summary Fields',
381403
},
382404
},

0 commit comments

Comments
 (0)