From aade5d3c928ca9242acf1fb81236f56cf7f86914 Mon Sep 17 00:00:00 2001 From: ashaffah Date: Fri, 26 Jun 2026 15:07:57 +0700 Subject: [PATCH 1/2] i18n: localize the MQTT broker dialog The Brokers dialog (title, hint, add button, name placeholder, delete, empty state) and the toolbar Brokers button were hardcoded English. Add en/id keys and use t() so they follow the language toggle. --- ui/src/App.svelte | 2 +- ui/src/Brokers.svelte | 16 +++++++--------- ui/src/lib/i18n.svelte.js | 16 ++++++++++++++++ 3 files changed, 24 insertions(+), 10 deletions(-) diff --git a/ui/src/App.svelte b/ui/src/App.svelte index 8fbc998..685e202 100644 --- a/ui/src/App.svelte +++ b/ui/src/App.svelte @@ -93,7 +93,7 @@ hidden /> - + {ui.status} - + + {#each (def?.fields ?? []).filter((f) => visible(b, f)) as f (f.key)}