chore: Added translate functions (#21816)

This commit is contained in:
Andrew
2022-10-19 04:54:16 +03:00
committed by GitHub
parent f38115489b
commit df7840c041
21 changed files with 95 additions and 90 deletions

View File

@@ -256,14 +256,14 @@ const config: ControlPanelConfig = {
label: t('Fill method'),
default: null,
choices: [
['asfreq', 'Null imputation'],
['zerofill', 'Zero imputation'],
['linear', 'Linear interpolation'],
['ffill', 'Forward values'],
['bfill', 'Backward values'],
['median', 'Median values'],
['mean', 'Mean values'],
['sum', 'Sum values'],
['asfreq', t('Null imputation')],
['zerofill', t('Zero imputation')],
['linear', t('Linear interpolation')],
['ffill', t('Forward values')],
['bfill', t('Backward values')],
['median', t('Median values')],
['mean', t('Mean values')],
['sum', t('Sum values')],
],
description: t('Pandas resample method'),
},

View File

@@ -60,10 +60,10 @@ const legendTypeControl: ControlSetItem = {
config: {
type: 'SelectControl',
freeForm: false,
label: 'Type',
label: t('Type'),
choices: [
['scroll', 'Scroll'],
['plain', 'Plain'],
['scroll', t('Scroll')],
['plain', t('Plain')],
],
default: legendType,
renderTrigger: true,
@@ -78,12 +78,12 @@ const legendOrientationControl: ControlSetItem = {
config: {
type: 'SelectControl',
freeForm: false,
label: 'Orientation',
label: t('Orientation'),
choices: [
['top', 'Top'],
['bottom', 'Bottom'],
['left', 'Left'],
['right', 'Right'],
['top', t('Top')],
['bottom', t('Bottom')],
['left', t('Left')],
['right', t('Right')],
],
default: legendOrientation,
renderTrigger: true,