Skip to content

Commit

Permalink
Add i18 for showing, hiding the chart
Browse files Browse the repository at this point in the history
  • Loading branch information
kertal committed Dec 3, 2020
1 parent 9fa4f3f commit 0ebf5a7
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,13 @@ export function DiscoverLegacy({
toggleChart(!toggleOn);
}}
>
{toggleOn ? 'Hide chart' : 'Show chart'}
{toggleOn
? i18n.translate('discover.hideChart', {
defaultMessage: 'Hide chart',
})
: i18n.translate('discover.showChart', {
defaultMessage: 'Show chart',
})}
</EuiButtonEmpty>
</EuiFlexItem>
</EuiFlexGroup>
Expand Down

0 comments on commit 0ebf5a7

Please sign in to comment.