How to display an app in the user admin current language?

Hi,

I’m creating an app in two languages.

What’s the best way to retrieve the current admin language selected by the user to display the app in this same language if it exists?

Thanks

If you’re using @Shopify_77 /app-bridge-react, you can get the staff member’s locale using:

const staffMemberDetails = useAppBridgeState('staffMember')
console.log(staffMemberDetails.locale)