How to display an app in the user's selected admin language 2.0?

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-language/td-p/1936404

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 :slightly_smiling_face:

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