feat: add Hungarian translation (#2232)

This commit is contained in:
Gyuris Gellért
2022-12-26 22:36:03 +01:00
committed by GitHub
parent 59619ba34f
commit 11e9202160
25 changed files with 301 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ import Vue from "vue";
import VueI18n from "vue-i18n";
import he from "./he.json";
import hu from "./hu.json";
import ar from "./ar.json";
import de from "./de.json";
import en from "./en.json";
@@ -31,6 +32,9 @@ export function detectLocale() {
case /^he.*/i.test(locale):
locale = "he";
break;
case /^hu.*/i.test(locale):
locale = "hu";
break;
case /^ar.*/i.test(locale):
locale = "ar";
break;
@@ -107,6 +111,7 @@ const i18n = new VueI18n({
fallbackLocale: "en",
messages: {
he: removeEmpty(he),
hu: removeEmpty(hu),
ar: removeEmpty(ar),
de: removeEmpty(de),
en: en,