If an menu item has a l10nid and the plugin is disabled, the context menu will crash. This occurred on Zotero 9.0-beta.21 on MacOS, and it happens even if the .ftl file is never loaded.
The relevant code snippet is:
const menus = [
{
menuType: 'menuitem',
l10nID: 'loc-me',
}
];
Zotero.MenuManager.registerMenu({
menuID: 'blah',
pluginID: 'blah',
target: 'main/library/item',
menus: menus
});
The error console spits out:
Uncaught (in promise) undefined zoteroPane.js:3281:22 onItemsContextMenuOpen chrome://zotero/content/zoteroPane.js:3281
AsyncFunctionThrow self-hosted:804
(Async: async)
onContextMenu chrome://zotero/content/zoteroPane.js:1670
onItemContextMenu chrome://zotero/content/itemTree.js:1177
_handleContextMenu chrome://zotero/content/components/virtualized-table.js:749
_renderItem chrome://zotero/content/components/virtualized-table.js:1131