mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
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:
parent
92fd9301fe
commit
1df40ab02d
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue