mirror of
https://github.com/cupcakearmy/svelte-i18n.git
synced 2024-11-16 18:10:43 +01: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(
|
||||
(message: string, locale: string) =>
|
||||
(message: string, locale: string = getCurrentLocale()) =>
|
||||
new IntlMessageFormat(message, locale, getOptions().formats)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user