Skip to content

Commit

Permalink
clean up unused i18n values
Browse files Browse the repository at this point in the history
  • Loading branch information
ryankeairns committed Oct 29, 2019
1 parent 5c45dfa commit 255ddcd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import React from 'react';
import { FormattedMessage } from '@kbn/i18n/react';
import { EuiText } from '@elastic/eui';
import { templateFromReactComponent } from '../../../public/lib/template_from_react_component';
import { ComponentStrings, CANVAS, DataSourceStrings } from '../../../i18n';
import { CANVAS, DataSourceStrings } from '../../../i18n';

const { DemoData: strings } = DataSourceStrings;

Expand All @@ -20,9 +20,6 @@ const DemodataDatasource = () => (
defaultMessage="By default, every {canvas} element is connected to the demo data source. Change the data source, above, to connect your own data."
values={{
canvas: CANVAS,
clickText: (
<strong>{ComponentStrings.DatasourceDatasourceComponent.getChangeButtonLabel()}</strong>
),
}}
/>
</p>
Expand Down
6 changes: 0 additions & 6 deletions x-pack/legacy/plugins/canvas/i18n/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import {
ELASTICSEARCH_SHORT,
HEX,
HTML,
KIBANA,
LUCENE,
MARKDOWN,
MOMENTJS,
Expand Down Expand Up @@ -348,7 +347,6 @@ export const DataSourceStrings = {
'Use {timelion} queries to pull back timeseries data that can be used with {canvas} elements.',
values: {
timelion: TIMELION,
kibanaTimelion: `${KIBANA}'s ${TIMELION}`,
canvas: CANVAS,
},
}),
Expand All @@ -364,7 +362,6 @@ export const DataSourceStrings = {
defaultMessage:
'Use date math like {weeksExample}, {daysExample}, {secondsExample}, or {auto}',
values: {
elasticsearch: ELASTICSEARCH,
secondsExample: '10s',
daysExample: '5d',
weeksExample: '1w',
Expand Down Expand Up @@ -968,9 +965,6 @@ export const ViewStrings = {
getMaintainAspectHelp: () =>
i18n.translate('xpack.canvas.uis.views.shape.args.maintainAspectLabel', {
defaultMessage: `Enable to maintain aspect ratio`,
values: {
true: BOOLEAN_TRUE,
},
}),
getShapeDisplayName: () =>
i18n.translate('xpack.canvas.uis.views.shape.args.shapeTitle', {
Expand Down

0 comments on commit 255ddcd

Please sign in to comment.