From 14fefddca82fe9922c35cc2ca4f230ca8be2a740 Mon Sep 17 00:00:00 2001 From: Aaron Liu Date: Thu, 9 Jan 2025 16:15:04 -0500 Subject: [PATCH] Show German translations Unleash @mynetx's German translations into the ~~wild~~ Upscayl Office! --- renderer/atoms/translations-atom.ts | 4 +++- .../components/sidebar/settings-tab/language-switcher.tsx | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) 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 = { en, @@ -21,6 +22,7 @@ const translations: Record = { 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 }) => {