App reviews, troubleshooting, and recommendations
I need the user selected locale for the admin panel, in this post: https://community.shopify.com/c/shopify-apps/how-to-display-an-app-in-the-user-s-selected-admin-lang...
They suggest using 2 helper hooks "useShopifyUserLocale" and "useLocale"
However, none of those hooks are available in my application, so how do I get the user-selected locale, kind regards 🙂
Solved! Go to the solution
This is an accepted solution.
I found the answer rather quickly, its now called:
import { useAppBridge } from '@shopify/app-bridge-react';
You then have a settings object where you can access the locale:
const appBridge = useAppBridge();
appBridge.config.locale
This is an accepted solution.
I found the answer rather quickly, its now called:
import { useAppBridge } from '@shopify/app-bridge-react';
You then have a settings object where you can access the locale:
const appBridge = useAppBridge();
appBridge.config.locale
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025