mirror of
https://github.com/cupcakearmy/svelte-i18n.git
synced 2024-09-28 15:14:45 +02:00
fix: 🐛 make message formatter default to current locale
This commit is contained in:
parent
86cca99251
commit
0c57b9b568
@ -70,6 +70,6 @@ export const getTimeFormatter: MemoizedIntlFormatter<
|
|||||||
})
|
})
|
||||||
|
|
||||||
export const getMessageFormatter = memoize(
|
export const getMessageFormatter = memoize(
|
||||||
(message: string, locale: string) =>
|
(message: string, locale: string = getCurrentLocale()) =>
|
||||||
new IntlMessageFormat(message, locale, getOptions().formats)
|
new IntlMessageFormat(message, locale, getOptions().formats)
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user