Skip to content

🆙 Upscayl - #1 Free and Open Source AI Image Upscaler for Linux, MacOS and Windows.

Show German translations

Aaron Liu14fefddca82f
diff --git a/renderer/atoms/translations-atom.ts b/renderer/atoms/translations-atom.ts
index 265a468..bc9b038 100644
--- a/renderer/atoms/translations-atom.ts
+++ b/renderer/atoms/translations-atom.ts
@@ -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,
diff --git a/renderer/components/sidebar/settings-tab/language-switcher.tsx b/renderer/components/sidebar/settings-tab/language-switcher.tsx
index a0449be..0b350ed 100644
--- a/renderer/components/sidebar/settings-tab/language-switcher.tsx
+++ b/renderer/components/sidebar/settings-tab/language-switcher.tsx
@@ -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 }) => {