diff --git a/api/src/i18n/services/translation.service.ts b/api/src/i18n/services/translation.service.ts index 434d062..a577079 100644 --- a/api/src/i18n/services/translation.service.ts +++ b/api/src/i18n/services/translation.service.ts @@ -59,7 +59,7 @@ export class TranslationService extends BaseService { // plugin Object.entries(block.message.args).forEach(([l, arg]) => { - const setting = plugin.settings.find(({ label }) => label === l); + const setting = plugin?.settings.find(({ label }) => label === l); if (setting?.translatable) { if (Array.isArray(arg)) { // array of text