# General Translation Changelog: gt-react-native 10.20.0: Synchronise locale reads from the native store
URL: https://generaltranslation.com/en-GB/blog/gt-react-native_v10_20_0.mdx
Docs index: https://generaltranslation.com/llms.txt
Description: 
Authors: Ernest McCarter
Published: 2026-06-01

## Overview

**gt-react-native 10.20.0** adds `getLocaleFromNativeStore()` — a synchronous function that reads the persisted locale from the native store without needing React context.

## Usage

```tsx copy
import { getLocaleFromNativeStore } from 'gt-react-native';

// Read the persisted locale
const locale = getLocaleFromNativeStore();
// => 'en-US' | null
```

If your [`GTProvider`](/docs/react/reference/components/gt-provider) uses a customised `localeCookieName`, pass the same key:

```tsx copy
const locale = getLocaleFromNativeStore('my-custom-key');
```

## ⚠️ Sync caveat

The native store value can be **out of sync with React state**. During a locale change, the store may still hold the old value (or vice versa). Use this for cases where you need a quick imperative read and can tolerate stale data — for reactive updates, use [`useLocale()`](/docs/react/reference/hooks/use-locale) instead.

***

[PR #1537](https://github.com/generaltranslation/gt/pull/1537)

## Sitemap

See the full [sitemap](https://generaltranslation.com/sitemap.md) for all pages.
