feat: Add German language support
This commit is contained in:
@@ -10,6 +10,7 @@ import { ja } from "./lang/ja";
|
||||
import { it } from "./lang/it";
|
||||
import { es } from "./lang/es";
|
||||
import { fa } from "./lang/fa";
|
||||
import { de } from "./lang/de";
|
||||
import LanguageDetector from 'i18next-browser-languagedetector';
|
||||
|
||||
i18n
|
||||
@@ -30,7 +31,8 @@ i18n
|
||||
ja: ja,
|
||||
"ja-JP": ja,
|
||||
fa: fa,
|
||||
"fa-IR": fa
|
||||
"fa-IR": fa,
|
||||
de: de
|
||||
},
|
||||
fallbackLng: "en",
|
||||
lng: localStorage.getItem("i18nextLng") || "en",
|
||||
|
||||
17
src/i18n/lang/de.ts
Normal file
17
src/i18n/lang/de.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import option from "@/assets/locale/de/option.json";
|
||||
import playground from "@/assets/locale/de/playground.json";
|
||||
import common from "@/assets/locale/de/common.json";
|
||||
import sidepanel from "@/assets/locale/de/sidepanel.json";
|
||||
import settings from "@/assets/locale/de/settings.json";
|
||||
import knowledge from "@/assets/locale/de/knowledge.json";
|
||||
import chrome from "@/assets/locale/de/chrome.json";
|
||||
|
||||
export const de = {
|
||||
option,
|
||||
playground,
|
||||
common,
|
||||
sidepanel,
|
||||
settings,
|
||||
knowledge,
|
||||
chrome
|
||||
}
|
||||
@@ -39,5 +39,9 @@ export const supportLanguage = [
|
||||
{
|
||||
label: "فارسی",
|
||||
value: "fa"
|
||||
},
|
||||
{
|
||||
label: "Deutsch",
|
||||
value: "de"
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user