mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[i18n] Translate Timelion missed labels (#29333)
* Translate missed labels in timelion * Resolve review comments * Resolve review comment
This commit is contained in:
parent
0940144f60
commit
0556ab7b66
1 changed files with 73 additions and 21 deletions
|
@ -18,6 +18,11 @@
|
|||
*/
|
||||
|
||||
import { resolve } from 'path';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
|
||||
const experimentalLabel = i18n.translate('timelion.uiSettings.experimentalLabel', {
|
||||
defaultMessage: 'experimental'
|
||||
});
|
||||
|
||||
export default function (kibana) {
|
||||
return new kibana.Plugin({
|
||||
|
@ -26,7 +31,9 @@ export default function (kibana) {
|
|||
app: {
|
||||
title: 'Timelion',
|
||||
order: -1000,
|
||||
description: 'Time series expressions for everything',
|
||||
description: i18n.translate('timelion.appDescription', {
|
||||
defaultMessage: 'Time series expressions for everything'
|
||||
}),
|
||||
icon: 'plugins/timelion/icon.svg',
|
||||
euiIconType: 'timelionApp',
|
||||
main: 'plugins/timelion/app',
|
||||
|
@ -46,63 +53,108 @@ export default function (kibana) {
|
|||
|
||||
uiSettingDefaults: {
|
||||
'timelion:showTutorial': {
|
||||
name: 'Show tutorial',
|
||||
name: i18n.translate('timelion.uiSettings.showTutorialLabel', {
|
||||
defaultMessage: 'Show tutorial'
|
||||
}),
|
||||
value: false,
|
||||
description: `Should I show the tutorial by default when entering the timelion app?`,
|
||||
description: i18n.translate('timelion.uiSettings.showTutorialDescription', {
|
||||
defaultMessage: 'Should I show the tutorial by default when entering the timelion app?'
|
||||
}),
|
||||
category: ['timelion'],
|
||||
},
|
||||
'timelion:es.timefield': {
|
||||
name: 'Time field',
|
||||
name: i18n.translate('timelion.uiSettings.timeFieldLabel', {
|
||||
defaultMessage: 'Time field'
|
||||
}),
|
||||
value: '@timestamp',
|
||||
description: `Default field containing a timestamp when using .es()`,
|
||||
description: i18n.translate('timelion.uiSettings.timeFieldDescription', {
|
||||
defaultMessage: 'Default field containing a timestamp when using {esParam}',
|
||||
values: { esParam: '.es()' }
|
||||
}),
|
||||
category: ['timelion'],
|
||||
},
|
||||
'timelion:es.default_index': {
|
||||
name: 'Default index',
|
||||
name: i18n.translate('timelion.uiSettings.defaultIndexLabel', {
|
||||
defaultMessage: 'Default index'
|
||||
}),
|
||||
value: '_all',
|
||||
description: `Default elasticsearch index to search with .es()`,
|
||||
description: i18n.translate('timelion.uiSettings.defaultIndexDescription', {
|
||||
defaultMessage: 'Default elasticsearch index to search with {esParam}',
|
||||
values: { esParam: '.es()' }
|
||||
}),
|
||||
category: ['timelion'],
|
||||
},
|
||||
'timelion:target_buckets': {
|
||||
name: 'Target buckets',
|
||||
name: i18n.translate('timelion.uiSettings.targetBucketsLabel', {
|
||||
defaultMessage: 'Target buckets'
|
||||
}),
|
||||
value: 200,
|
||||
description: `The number of buckets to shoot for when using auto intervals`,
|
||||
description: i18n.translate('timelion.uiSettings.targetBucketsDescription', {
|
||||
defaultMessage: 'The number of buckets to shoot for when using auto intervals'
|
||||
}),
|
||||
category: ['timelion'],
|
||||
},
|
||||
'timelion:max_buckets': {
|
||||
name: 'Maximum buckets',
|
||||
name: i18n.translate('timelion.uiSettings.maximumBucketsLabel', {
|
||||
defaultMessage: 'Maximum buckets'
|
||||
}),
|
||||
value: 2000,
|
||||
description: `The maximum number of buckets a single datasource can return`,
|
||||
description: i18n.translate('timelion.uiSettings.maximumBucketsDescription', {
|
||||
defaultMessage: 'The maximum number of buckets a single datasource can return'
|
||||
}),
|
||||
category: ['timelion'],
|
||||
},
|
||||
'timelion:default_columns': {
|
||||
name: 'Default columns',
|
||||
name: i18n.translate('timelion.uiSettings.defaultColumnsLabel', {
|
||||
defaultMessage: 'Default columns'
|
||||
}),
|
||||
value: 2,
|
||||
description: `Number of columns on a timelion sheet by default`,
|
||||
description: i18n.translate('timelion.uiSettings.defaultColumnsDescription', {
|
||||
defaultMessage: 'Number of columns on a timelion sheet by default'
|
||||
}),
|
||||
category: ['timelion'],
|
||||
},
|
||||
'timelion:default_rows': {
|
||||
name: 'Default rows',
|
||||
name: i18n.translate('timelion.uiSettings.defaultRowsLabel', {
|
||||
defaultMessage: 'Default rows'
|
||||
}),
|
||||
value: 2,
|
||||
description: `Number of rows on a timelion sheet by default`,
|
||||
description: i18n.translate('timelion.uiSettings.defaultRowsDescription', {
|
||||
defaultMessage: 'Number of rows on a timelion sheet by default'
|
||||
}),
|
||||
category: ['timelion'],
|
||||
},
|
||||
'timelion:min_interval': {
|
||||
name: 'Minimum interval',
|
||||
name: i18n.translate('timelion.uiSettings.minimumIntervalLabel', {
|
||||
defaultMessage: 'Minimum interval'
|
||||
}),
|
||||
value: '1ms',
|
||||
description: `The smallest interval that will be calculated when using "auto"`,
|
||||
description: i18n.translate('timelion.uiSettings.minimumIntervalDescription', {
|
||||
defaultMessage: 'The smallest interval that will be calculated when using "auto"',
|
||||
description: '"auto" is a technical value in that context, that should not be translated.'
|
||||
}),
|
||||
category: ['timelion'],
|
||||
},
|
||||
'timelion:graphite.url': {
|
||||
name: 'Graphite URL',
|
||||
name: i18n.translate('timelion.uiSettings.graphiteURLLabel', {
|
||||
defaultMessage: 'Graphite URL'
|
||||
}),
|
||||
value: 'https://www.hostedgraphite.com/UID/ACCESS_KEY/graphite',
|
||||
description: `<em>[experimental]</em> The URL of your graphite host`,
|
||||
description: i18n.translate('timelion.uiSettings.graphiteURLDescription', {
|
||||
defaultMessage: '{experimentalLabel} The URL of your graphite host',
|
||||
values: { experimentalLabel: `<em>[${experimentalLabel}]</em>` }
|
||||
}),
|
||||
category: ['timelion'],
|
||||
},
|
||||
'timelion:quandl.key': {
|
||||
name: 'Quandl key',
|
||||
name: i18n.translate('timelion.uiSettings.quandlKeyLabel', {
|
||||
defaultMessage: 'Quandl key'
|
||||
}),
|
||||
value: 'someKeyHere',
|
||||
description: `<em>[experimental]</em> Your API key from www.quandl.com`,
|
||||
description: i18n.translate('timelion.uiSettings.quandlKeyDescription', {
|
||||
defaultMessage: '{experimentalLabel} Your API key from www.quandl.com',
|
||||
values: { experimentalLabel: `<em>[${experimentalLabel}]</em>` }
|
||||
}),
|
||||
category: ['timelion'],
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue