From 5687776ff641357687cffbaf8009d238190d186d Mon Sep 17 00:00:00 2001 From: Terrorwolf01 <78974581+Terrorwolf01@users.noreply.github.com> Date: Fri, 26 Jun 2026 16:44:18 +0200 Subject: [PATCH] feat: add support for localising text in the frontend and add German language data (#360) Co-authored-by: nekename <63245705+nekename@users.noreply.github.com> --- src/components/ActionList.svelte | 5 +- src/components/DeviceSelector.svelte | 5 +- src/components/DeviceView.svelte | 9 +- src/components/InstanceEditor.svelte | 49 +++---- src/components/Key.svelte | 9 +- src/components/NoDevicesDetected.svelte | 11 +- src/components/ParentActionView.svelte | 13 +- src/components/PluginDetails.svelte | 15 +- src/components/PluginManager.svelte | 77 +++++----- src/components/ProfileManager.svelte | 63 ++++---- src/components/PropertyInspectorView.svelte | 3 +- src/components/SettingsView.svelte | 87 ++++++----- src/lib/i18n.ts | 43 ++++++ src/lib/settings.ts | 2 + translations/de.json | 151 ++++++++++++++++++++ translations/en.json | 151 ++++++++++++++++++++ vite.config.ts | 3 + 17 files changed, 532 insertions(+), 164 deletions(-) create mode 100644 src/lib/i18n.ts create mode 100644 translations/de.json create mode 100644 translations/en.json diff --git a/src/components/ActionList.svelte b/src/components/ActionList.svelte index 0c1f3c8..c99dcba 100644 --- a/src/components/ActionList.svelte +++ b/src/components/ActionList.svelte @@ -3,6 +3,7 @@ import MagnifyingGlass from "phosphor-svelte/lib/MagnifyingGlass"; + import { t } from "$lib/i18n"; import { getWebserverUrl } from "$lib/ports"; import { copiedItem } from "$lib/propertyInspector"; import { localisations } from "$lib/settings"; @@ -81,13 +82,13 @@ - Use arrow keys to navigate between actions within a category. + {$t("action_list.hint")}