Skip to content

Commit

Permalink
Fix Submenu translations in NextJS app (#5601)
Browse files Browse the repository at this point in the history
* Tentative fix for nextJS test app

* test build on PR

* fix build

* revert circle changes
  • Loading branch information
LFDanLu authored Dec 19, 2023
1 parent 0de3cb5 commit 125d65c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@react-spectrum/menu/src/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function Menu<T extends object>(props: SpectrumMenuProps<T>, ref: DOMRef<HTMLDiv

export function TrayHeaderWrapper(props) {
let {children, isSubmenu, hasOpenSubmenu, parentMenuTreeState, rootMenuTriggerState, onBackButtonPress, wrapperKeyDown} = props;
let stringFormatter = useLocalizedStringFormatter(intlMessages);
let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/menu');
let backButtonText = parentMenuTreeState?.collection.getItem(rootMenuTriggerState?.UNSTABLE_expandedKeysStack.slice(-1)[0])?.textValue;
let backButtonLabel = stringFormatter.format('backButton', {
prevMenuButton: backButtonText
Expand Down

1 comment on commit 125d65c

@rspbot
Copy link

@rspbot rspbot commented on 125d65c Dec 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.