Skip to content

Commit

Permalink
convert string to i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
ryankeairns committed Nov 11, 2019
1 parent 8918519 commit d96d75a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions x-pack/legacy/plugins/canvas/i18n/expression_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ export const ArgTypesStrings = {
i18n.translate('xpack.canvas.expressionTypes.argTypes.seriesStyle.colorLabel', {
defaultMessage: 'Color',
}),
getColorValueDefault: () =>
i18n.translate('xpack.canvas.expressionTypes.argTypes.seriesStyle.colorValueDefault', {
defaultMessage: 'Auto',
}),
getStyleLabel: () =>
i18n.translate('xpack.canvas.expressionTypes.argTypes.seriesStyle.styleLabel', {
defaultMessage: 'Style',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ export const SimpleTemplate: FunctionComponent<Props> = props => {
<EuiFlexItem grow={false}>
<EuiText size="xs">
<EuiLink
aria-label={`${strings.getColorLabel()}: Auto`}
aria-label={`${strings.getColorLabel()}: ${strings.getColorValueDefault()}`}
onClick={() => handleChange('color', '#000000')}
>
Auto
{strings.getColorValueDefault()}
</EuiLink>
</EuiText>
</EuiFlexItem>
Expand Down

0 comments on commit d96d75a

Please sign in to comment.