Looks up the localized label for a single role, without a full template. Useful for tray menus, context menus, or one-off items built by hand.
The Electron menu role, such as copy or quit.
copy
quit
The translator, key prefix, and fallback configuration.
The translated label, its configured fallback, or the role itself.
Looks up the localized label for a single role, without a full template. Useful for tray menus, context menus, or one-off items built by hand.