mirror of
https://github.com/apache/superset.git
synced 2026-04-20 08:34:37 +00:00
chore: Added translate functions (#21816)
This commit is contained in:
@@ -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'),
|
||||
},
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user