Skip to content

Commit

Permalink
fix i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 committed Nov 6, 2020
1 parent 63823c2 commit eb55c77
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import { TimeScaleUnit } from './time_scale';

const unitSuffixes: Record<TimeScaleUnit, string> = {
s: i18n.translate('xpack.lens.fieldFormats.suffix.s', { defaultMessage: '/h' }),
m: i18n.translate('xpack.lens.fieldFormats.suffix.s', { defaultMessage: '/m' }),
h: i18n.translate('xpack.lens.fieldFormats.suffix.s', { defaultMessage: '/h' }),
d: i18n.translate('xpack.lens.fieldFormats.suffix.s', { defaultMessage: '/d' }),
m: i18n.translate('xpack.lens.fieldFormats.suffix.m', { defaultMessage: '/m' }),
h: i18n.translate('xpack.lens.fieldFormats.suffix.h', { defaultMessage: '/h' }),
d: i18n.translate('xpack.lens.fieldFormats.suffix.d', { defaultMessage: '/d' }),
};

export function getSuffixFormatter(formatFactory: FormatFactory) {
Expand Down

0 comments on commit eb55c77

Please sign in to comment.