# 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 for a TanStack Start server request. API reference for getEnableI18n. --- The `getEnableI18n` function returns whether General Translation internationalisation is enabled for the current server request. Import it from `gt-tanstack-start/server`. ## Overview [#overview] ```ts import { getEnableI18n } from 'gt-tanstack-start/server'; const enableI18n = getEnableI18n(); ``` ```ts getEnableI18n(): boolean ``` ## How it works [#how-it-works] `getEnableI18n` reads the request-local setting created by [`gtMiddleware`](/docs/react/tanstack-start/reference/functions/gt-middleware). Translation functions use this setting to select either the request locale or the source locale. The function is synchronous and throws when called 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/server'; export const loadI18nState = createServerFn({ method: 'GET' }).handler(() => { return { enableI18n: getEnableI18n() }; }); ```