From 261728cf3b3f39a07c6b590ed11605754f4ff032 Mon Sep 17 00:00:00 2001 From: WardPearce Date: Mon, 11 Aug 2025 19:03:28 +1200 Subject: [PATCH] Add HU import --- materialious/src/lib/i18n/index.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/materialious/src/lib/i18n/index.ts b/materialious/src/lib/i18n/index.ts index b89bc3cf..213a0cbb 100644 --- a/materialious/src/lib/i18n/index.ts +++ b/materialious/src/lib/i18n/index.ts @@ -20,7 +20,8 @@ const resources: Record Promise>> = { 'pt-BR': () => import('./locales/pt-BR.json'), lv: () => import('./locales/lv.json'), ja: () => import('./locales/ja.json'), - mi: () => import('./locales/mi.json') + mi: () => import('./locales/mi.json'), + 'hu-HU': () => import('./locales/hu.json') }; function getUserLocale(): string { @@ -30,9 +31,9 @@ function getUserLocale(): string { return lang; } // In case of a regional code (e.g. 'de-CH'), fallback to the more general lang - const baseLang = lang.split('-')[0] + const baseLang = lang.split('-')[0]; if (resources[baseLang]) { - return baseLang + return baseLang; } } }