mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[i18n] Revert translations for Vega and Markdown labels (#27285)
* Revert translations for Vega and Markdown label * Add description for translated
This commit is contained in:
parent
c334c40453
commit
64b2399739
5 changed files with 6 additions and 15 deletions
|
@ -36,7 +36,7 @@ function MarkdownVisProvider(Private, i18n) {
|
|||
// Vis object of this type.
|
||||
return VisFactory.createReactVisualization({
|
||||
name: 'markdown',
|
||||
title: i18n('markdownVis.markdownTitle', { defaultMessage: 'Markdown' }),
|
||||
title: 'Markdown',
|
||||
isAccessible: true,
|
||||
icon: 'visText',
|
||||
description: i18n('markdownVis.markdownDescription', { defaultMessage: 'Create a document using markdown syntax' }),
|
||||
|
|
|
@ -1,12 +1,7 @@
|
|||
<div class="kuiSideBarSection">
|
||||
<div class="form-group">
|
||||
<div class="clearfix form-group">
|
||||
<label
|
||||
class="pull-left"
|
||||
for="markdownVisInput"
|
||||
i18n-id="markdownVis.params.markdownLabel"
|
||||
i18n-default-message="Markdown"
|
||||
></label>
|
||||
<label for="markdownVisInput">Markdown</label>
|
||||
<small class="pull-right">
|
||||
<a target="_window" href="https://help.github.com/articles/github-flavored-markdown/">
|
||||
<icon aria-hidden="true" size="'s'" type="'link'"></icon>
|
||||
|
|
|
@ -264,10 +264,7 @@ class MarkdownPanelConfigUi extends Component {
|
|||
isSelected={selectedTab === 'markdown'}
|
||||
onClick={() => this.switchTab('markdown')}
|
||||
>
|
||||
<FormattedMessage
|
||||
id="tsvb.markdown.markdownTab.markdownButtonLabel"
|
||||
defaultMessage="Markdown"
|
||||
/>
|
||||
Markdown
|
||||
</EuiTab>
|
||||
<EuiTab
|
||||
data-test-subj="markdownDataBtn"
|
||||
|
|
|
@ -56,7 +56,7 @@ const VisPicker = injectI18n(function (props) {
|
|||
{ type: 'metric', label: intl.formatMessage({ id: 'tsvb.visPicker.metricLabel', defaultMessage: 'Metric' }) },
|
||||
{ type: 'top_n', label: intl.formatMessage({ id: 'tsvb.visPicker.topNLabel', defaultMessage: 'Top N' }) },
|
||||
{ type: 'gauge', label: intl.formatMessage({ id: 'tsvb.visPicker.gaugeLabel', defaultMessage: 'Gauge' }) },
|
||||
{ type: 'markdown', label: intl.formatMessage({ id: 'tsvb.visPicker.markdownLabel', defaultMessage: 'Markdown' }) },
|
||||
{ type: 'markdown', label: 'Markdown' },
|
||||
{ type: 'table', label: intl.formatMessage({ id: 'tsvb.visPicker.tableLabel', defaultMessage: 'Table' }) }
|
||||
].map(item => {
|
||||
return (
|
||||
|
|
|
@ -41,11 +41,10 @@ VisTypesRegistryProvider.register((Private) => {
|
|||
|
||||
return VisFactory.createBaseVisualization({
|
||||
name: 'vega',
|
||||
title: i18n.translate('vega.type.vegaTitle', {
|
||||
defaultMessage: 'Vega',
|
||||
}),
|
||||
title: 'Vega',
|
||||
description: i18n.translate('vega.type.vegaВescription', {
|
||||
defaultMessage: 'Create custom visualizations using Vega and Vega-Lite',
|
||||
description: 'Vega and Vega-Lite are product names and should not be translated',
|
||||
}),
|
||||
icon: 'visVega',
|
||||
visConfig: { defaults: { spec: defaultSpec } },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue