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.
This commit is contained in:
Johannes Millan 2026-01-16 21:25:06 +01:00
parent 92fd9301fe
commit 1df40ab02d

View file

@ -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: