# General Translation React SDKs (gt-react, gt-next, gt-react-native): getEnableI18n URL: https://generaltranslation.com/en-GB/docs/react/tanstack-start/reference/functions/get-enable-i18n.mdx --- title: getEnableI18n description: Read whether internationalisation is enabled in the TanStack Start runtime. API reference for getEnableI18n. --- The `getEnableI18n` function returns whether General Translation internationalisation 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 initialised 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 internationalisation 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() }; }); ```