# General Translation React SDKs (gt-react, gt-next, gt-react-native): getEnableI18n
URL: https://generaltranslation.com/en-US/docs/react/tanstack-start/reference/functions/get-enable-i18n.mdx
Docs index: https://generaltranslation.com/llms.txt
Description: Read whether internationalization is enabled in the TanStack Start runtime. API reference for getEnableI18n.

The `getEnableI18n` function returns whether General Translation internationalization is enabled for the current server request or browser. Import it from `gt-tanstack-start`.

## Overview [#overview]

```ts
import { getEnableI18n } from 'gt-tanstack-start';

const enableI18n = getEnableI18n();
```

```ts
getEnableI18n(): boolean
```

## How it works [#how-it-works]

On the server, `getEnableI18n` reads the request-local setting created by [`gtMiddleware`](/docs/react/tanstack-start/reference/functions/gt-middleware). In the browser, it reads the condition store initialized by [`initializeGT`](/docs/react/reference/config#initialize). Translation functions use this setting to select either the active locale or the source locale.

The function is synchronous. Server calls throw outside an active middleware request scope.

## Returns [#returns]

**Type** `boolean`

`true` when internationalization is enabled for the request; otherwise `false`.

## Example [#example]

```ts
import { createServerFn } from '@tanstack/react-start';
import { getEnableI18n } from 'gt-tanstack-start';

export const loadI18nState = createServerFn({ method: 'GET' }).handler(() => {
  return { enableI18n: getEnableI18n() };
});
```

## Sitemap

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