From 4f33922bec5340003739499ee5c14eec77384bec Mon Sep 17 00:00:00 2001 From: Anna Larch Date: Sun, 10 May 2026 18:17:31 +0200 Subject: [PATCH] fix(weather_status): load translations when injecting dashboard widget script The BeforeTemplateRenderedListener injected the weather-status script into the dashboard page but never loaded the app's translation strings, causing all t('weather_status', ...) calls to fall back to raw English source strings. Signed-off-by: Anna Larch AI-Assisted-By: Claude Sonnet 4.6 --- .../lib/Listeners/BeforeTemplateRenderedListener.php | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/weather_status/lib/Listeners/BeforeTemplateRenderedListener.php b/apps/weather_status/lib/Listeners/BeforeTemplateRenderedListener.php index 0c21a2cfc2f40..d3119476fccba 100644 --- a/apps/weather_status/lib/Listeners/BeforeTemplateRenderedListener.php +++ b/apps/weather_status/lib/Listeners/BeforeTemplateRenderedListener.php @@ -35,5 +35,6 @@ public function handle(Event $event): void { } Util::addScript('weather_status', 'weather-status'); + Util::addTranslations('weather_status'); } }