# react-native: getLocaleFromNativeStore URL: https://generaltranslation.com/en-GB/docs/react-native/api/helpers/get-locale-from-native-store.mdx --- title: getLocaleFromNativeStore description: Read the persisted locale from native storage without React context. --- ## Reference ```jsx import { getLocaleFromNativeStore } from 'gt-react-native'; const locale = getLocaleFromNativeStore(key?); // => 'en-US' | null ``` ### Parameters | Parameter | Type | Description | | --------- | --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `key` | `string?` | The storage key to read from. Defaults to `'generaltranslation.locale'`. If your [``](/docs/react-native/api/components/gtprovider) uses a customised `localeCookieName`, pass that same value here. | ### Returns `string | null` — The persisted locale string, or `null` if no locale has been stored. *** ## Usage ```jsx copy import { getLocaleFromNativeStore } from 'gt-react-native'; const locale = getLocaleFromNativeStore(); ``` If your `GTProvider` uses a custom `localeCookieName`, pass the same key: ```jsx copy const locale = getLocaleFromNativeStore('my-custom-key'); ``` The native store value can be **out of sync with React state** during a locale change. For reactive updates, use [`useLocale`](/docs/react-native/api/helpers/use-locale) instead.