mirror of
https://github.com/upscayl/upscayl.git
synced 2026-02-19 11:55:37 -05:00
Show German translations
Unleash @mynetx's German translations into the ~~wild~~ Upscayl Office!
This commit is contained in:
@@ -5,6 +5,7 @@ import ja from "../locales/ja.json";
|
||||
import zh from "../locales/zh.json";
|
||||
import es from "../locales/es.json";
|
||||
import fr from "../locales/fr.json";
|
||||
import de from "../locales/de.json";
|
||||
import vi from "../locales/vi.json";
|
||||
import id from "../locales/id.json";
|
||||
import pt from "../locales/pt.json";
|
||||
@@ -12,7 +13,7 @@ import { atomWithStorage } from "jotai/utils";
|
||||
|
||||
// Define the shape of the translations
|
||||
type Translations = typeof en;
|
||||
type Locales = "en" | "ru" | "ja" | "zh" | "es" | "fr" | "vi" | "pt" | "id";
|
||||
type Locales = "en" | "ru" | "ja" | "zh" | "es" | "fr" | "de" | "vi" | "pt" | "id";
|
||||
|
||||
const translations: Record<Locales, Translations> = {
|
||||
en,
|
||||
@@ -21,6 +22,7 @@ const translations: Record<Locales, Translations> = {
|
||||
zh,
|
||||
es,
|
||||
fr,
|
||||
de,
|
||||
vi,
|
||||
id,
|
||||
pt,
|
||||
|
||||
@@ -8,9 +8,10 @@ const locales = {
|
||||
zh: "简体中文",
|
||||
es: "Español",
|
||||
fr: "Français",
|
||||
de: "Deutsch",
|
||||
vi: "Tiếng Việt",
|
||||
id: "Bahasa Indonesia",
|
||||
pt: "Português (Portugal)",
|
||||
id: "Bahasa Indonesia",
|
||||
};
|
||||
|
||||
const LanguageSwitcher = ({ hideLabel = false }: { hideLabel?: boolean }) => {
|
||||
|
||||
Reference in New Issue
Block a user