Skip to content

Commit 4f33922

Browse files
committed
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 <anna@nextcloud.com> AI-Assisted-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent f16c6c9 commit 4f33922

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

apps/weather_status/lib/Listeners/BeforeTemplateRenderedListener.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,6 @@ public function handle(Event $event): void {
3535
}
3636

3737
Util::addScript('weather_status', 'weather-status');
38+
Util::addTranslations('weather_status');
3839
}
3940
}

0 commit comments

Comments
 (0)