From 88e76f4d4476bd1a414d7e2cec331cf3f97165d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C5=91rik=20Levente?= Date: Mon, 12 Feb 2024 10:18:53 +0100 Subject: [PATCH] Select language automatically --- interface/utils/language/index.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/interface/utils/language/index.ts b/interface/utils/language/index.ts index a2fac4a..cc63ec6 100644 --- a/interface/utils/language/index.ts +++ b/interface/utils/language/index.ts @@ -1,10 +1,14 @@ import { localeEN } from "@utils/language/en" +import { localeHU } from "@utils/language/hu" +import { localeES } from "@utils/language/es" export const getLanguage = () => { const language = navigator.language - if (language.startsWith("en")) { - return localeEN + if (language.startsWith("es")) { + return localeES + } else if (language.startsWith("hu")) { + return localeHU } else { return localeEN }