fix: 🐛 make message formatter default to current locale

This commit is contained in:
Christian Kaisermann 2020-01-06 22:35:33 -03:00
parent 86cca99251
commit 0c57b9b568

View File

@ -70,6 +70,6 @@ export const getTimeFormatter: MemoizedIntlFormatter<
})
export const getMessageFormatter = memoize(
(message: string, locale: string) =>
(message: string, locale: string = getCurrentLocale()) =>
new IntlMessageFormat(message, locale, getOptions().formats)
)