From 04315a5555e8796f4459524421a8daf4f83ddfc1 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Mon, 14 Nov 2022 09:22:21 +0700 Subject: feat: Updated utils after package update --- code/app/src/lib/i18n/i18n-util.async.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'code/app/src/lib/i18n/i18n-util.async.ts') diff --git a/code/app/src/lib/i18n/i18n-util.async.ts b/code/app/src/lib/i18n/i18n-util.async.ts index 00b8e0a..2e6717e 100644 --- a/code/app/src/lib/i18n/i18n-util.async.ts +++ b/code/app/src/lib/i18n/i18n-util.async.ts @@ -19,10 +19,10 @@ const localeNamespaceLoaders = { } } -const updateDictionary = (locale: Locales, dictionary: Partial) => +const updateDictionary = (locale: Locales, dictionary: Partial): Translations => loadedLocales[locale] = { ...loadedLocales[locale], ...dictionary } -export const importLocaleAsync = async (locale: Locales) => +export const importLocaleAsync = async (locale: Locales): Promise => (await localeTranslationLoaders[locale]()).default as unknown as Translations export const loadLocaleAsync = async (locale: Locales): Promise => { -- cgit v1.3