You've already forked filebrowser
mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-11-26 14:25:26 +08:00
feat: add Hungarian translation (#2232)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user