Recursively collects every LocalizeKey label in a tree of context menu items.
Shared rather than owned by the overlay context menu because the tab menu renders the same item
union through its own ContextMenu primitives, and both have to resolve their labels before
rendering them — a contributed menu can arrive carrying raw keys.
Recursively collects every LocalizeKey label in a tree of context menu items.
Shared rather than owned by the overlay context menu because the tab menu renders the same item union through its own ContextMenu primitives, and both have to resolve their labels before rendering them — a contributed menu can arrive carrying raw keys.