diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2022-09-28 18:28:33 +0200 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2022-09-28 18:28:33 +0200 |
| commit | f9337bbe280878c2a2d9d713873c4c06b54325cd (patch) | |
| tree | bbc30d1b0dfb5c3589af609e28db04b12c11b237 /apps/kit/src/lib/i18n/i18n-util.sync.ts | |
| parent | 59a4a340c77aad97e299aac47155bf4bff7a3c30 (diff) | |
| download | greatoffice-f9337bbe280878c2a2d9d713873c4c06b54325cd.tar.xz greatoffice-f9337bbe280878c2a2d9d713873c4c06b54325cd.zip | |
refactor: !WIP Use i18n namespaces
Diffstat (limited to 'apps/kit/src/lib/i18n/i18n-util.sync.ts')
| -rw-r--r-- | apps/kit/src/lib/i18n/i18n-util.sync.ts | 15 |
1 files changed, 12 insertions, 3 deletions
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 => { |
