@solisware/electron-menu-i18next API - v1.0.2
    Preparing search index...

    Function getRoleLabel

    • 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.

      Parameters

      • role: string

        The Electron menu role, such as copy or quit.

      • options: LocalizeMenuOptions

        The translator, key prefix, and fallback configuration.

      Returns string

      The translated label, its configured fallback, or the role itself.