aboutsummaryrefslogtreecommitdiffstats
path: root/code/app/src/lib/i18n/i18n-util.async.ts
diff options
context:
space:
mode:
Diffstat (limited to 'code/app/src/lib/i18n/i18n-util.async.ts')
-rw-r--r--code/app/src/lib/i18n/i18n-util.async.ts4
1 files changed, 2 insertions, 2 deletions
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<Translations>) =>
+const updateDictionary = (locale: Locales, dictionary: Partial<Translations>): Translations =>
loadedLocales[locale] = { ...loadedLocales[locale], ...dictionary }
-export const importLocaleAsync = async (locale: Locales) =>
+export const importLocaleAsync = async (locale: Locales): Promise<Translations> =>
(await localeTranslationLoaders[locale]()).default as unknown as Translations
export const loadLocaleAsync = async (locale: Locales): Promise<void> => {