From f9337bbe280878c2a2d9d713873c4c06b54325cd Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Thu, 29 Sep 2022 00:28:33 +0800 Subject: refactor: !WIP Use i18n namespaces --- apps/kit/src/lib/i18n/i18n-util.sync.ts | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'apps/kit/src/lib/i18n/i18n-util.sync.ts') diff --git a/apps/kit/src/lib/i18n/i18n-util.sync.ts b/apps/kit/src/lib/i18n/i18n-util.sync.ts index f1a8e9e..15ae633 100644 --- a/apps/kit/src/lib/i18n/i18n-util.sync.ts +++ b/apps/kit/src/lib/i18n/i18n-util.sync.ts @@ -6,11 +6,20 @@ import type { Locales, Translations } from './i18n-types' import { loadedFormatters, loadedLocales, locales } from './i18n-util' import en from './en' -import nb from './nb' + +import en_app from './en/app' +import en_reset_password from './en/reset-password' +import en_sign_in from './en/sign-in' +import en_sign_up from './en/sign-up' const localeTranslations = { - en, - nb, + en: { + ...en, + app: en_app, + 'reset-password': en_reset_password, + 'sign-in': en_sign_in, + 'sign-up': en_sign_up + }, } export const loadLocale = (locale: Locales): void => { -- cgit v1.3