From 1df40ab02de00226d258b855e1a07bc0cbc41d44 Mon Sep 17 00:00:00 2001 From: Johannes Millan Date: Fri, 16 Jan 2026 21:25:06 +0100 Subject: [PATCH] fix(plugins): fix translation loading in procrastination-buster Changed message.data to message.payload in the onMessage handler to match the structure sent by useTranslate hook. This fixes the issue where translations were not loading in the UI. --- packages/plugin-dev/procrastination-buster/src/plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugin-dev/procrastination-buster/src/plugin.ts b/packages/plugin-dev/procrastination-buster/src/plugin.ts index fe186a5b4..3415f7c34 100644 --- a/packages/plugin-dev/procrastination-buster/src/plugin.ts +++ b/packages/plugin-dev/procrastination-buster/src/plugin.ts @@ -14,7 +14,7 @@ if (plugin.onMessage) { plugin.onMessage(async (message: any) => { switch (message?.type) { case 'translate': - return plugin.translate(message.data.key, message.data.params); + return plugin.translate(message.payload.key, message.payload.params); case 'getCurrentLanguage': return plugin.getCurrentLanguage(); default: