Skip to content

Commit

Permalink
Fixing i18n paths
Browse files Browse the repository at this point in the history
  • Loading branch information
simianhacker committed May 15, 2020
1 parent 3f309ff commit c0afdc8
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ interface Props {
}

const LABELS = {
name: i18n.translate('xpack.infra.waffle.sort.nameLabel', { defaultMessage: 'Name' }),
value: i18n.translate('xpath.infra.waffle.sort.valueLabel', { defaultMessage: 'Metric value' }),
name: i18n.translate('xpack.infra.waffle.sortNameLabel', { defaultMessage: 'Name' }),
value: i18n.translate('xpack.infra.waffle.sort.valueLabel', { defaultMessage: 'Metric value' }),
};

export const WaffleSortControls = ({ sort, onChange }: Props) => {
Expand All @@ -36,7 +36,7 @@ export const WaffleSortControls = ({ sort, onChange }: Props) => {

const button = (
<DropdownButton
label={i18n.translate('xpath.infra.waffle.sortLabel', { defaultMessage: 'Sort by' })}
label={i18n.translate('xpack.infra.waffle.sortLabel', { defaultMessage: 'Sort by' })}
onClick={showPopover}
>
{label}
Expand Down Expand Up @@ -95,7 +95,7 @@ export const WaffleSortControls = ({ sort, onChange }: Props) => {
<SwitchContainer>
<EuiSwitch
compressed
label={i18n.translate('xpath.infra.waffle.sortDirectionLabel', {
label={i18n.translate('xpack.infra.waffle.sortDirectionLabel', {
defaultMessage: 'Reverse direction',
})}
checked={sort.direction === 'desc'}
Expand Down

0 comments on commit c0afdc8

Please sign in to comment.