chore: Localization of several charts and elements (#22150)

Co-authored-by: ashumeiko <ashumeiko@ashumeiko.com>
This commit is contained in:
Artem Shumeiko
2023-01-11 19:42:54 +03:00
committed by GitHub
parent 44c9cf4de5
commit f3696ceef3
98 changed files with 748 additions and 663 deletions

View File

@@ -27,7 +27,6 @@ import {
D3_FORMAT_DOCS,
D3_FORMAT_OPTIONS,
D3_TIME_FORMAT_OPTIONS,
formatSelectOptions,
sections,
emitFilterControl,
ControlPanelConfig,
@@ -93,12 +92,12 @@ const config: ControlPanelConfig = {
description: t(
'Determines how whiskers and outliers are calculated.',
),
choices: formatSelectOptions([
'Tukey',
'Min/max (no outliers)',
'2/98 percentiles',
'9/91 percentiles',
]),
choices: [
['Tukey', t('Tukey')],
['Min/max (no outliers)', t('Min/max (no outliers)')],
['2/98 percentiles', t('2/98 percentiles')],
['9/91 percentiles', t('9/91 percentiles')],
],
},
},
],
@@ -116,13 +115,13 @@ const config: ControlPanelConfig = {
config: {
type: 'SelectControl',
label: t('X Tick Layout'),
choices: formatSelectOptions([
'auto',
'flat',
'45°',
'90°',
'staggered',
]),
choices: [
['auto', t('auto')],
['flat', t('flat')],
['45°', '45°'],
['90°', '90°'],
['staggered', t('staggered')],
],
default: 'auto',
clearable: false,
renderTrigger: true,