fix: remove $t() calls from $derived() blocks to fix PostCSS errors

vite-plugin-svelte CSS extraction fails when $t() is used inside $derived().
This causes "[postcss] Unknown word <script" errors that appear to be cache
issues but are actually a known Svelte 5 / vite-plugin-svelte incompatibility.

Files fixed:
- DownloadButton.svelte: use titleKey pattern with function resolver
- DACSetupWizard.svelte: use labelKey pattern resolved in WizardStepper
- RemoteControlSetupGuide.svelte: use labelKey pattern
- WizardStepper.svelte: support optional labelKey with $t() in template

Also added download.* translation keys to en.json and es.json.

cc
This commit is contained in:
vicrodh committed 2026-02-04 14:05:18 -06:00
1 parent 4cfde680aa
commit c9b26eb4db
6 files changed
+45 -15

No files matched your search

+7
View File
@@ -987,6 +987,13 @@
"showNetworkFolders": "Show Network Folder Content",
"showNetworkFoldersDesc": "Display content from network-mounted folders (NAS, Samba, etc.) while in manual offline mode"
},
"download": {
"makeAvailable": "Make available offline",
"queued": "Queued for offline",
"preparing": "Preparing for offline",
"ready": "Available offline (click to remove)",
"failed": "Failed to cache for offline (click to retry)"
},
"filter": {
"all": "All"
},