# General Translation React SDKs (gt-react, gt-next): getGT URL: https://generaltranslation.com/en-GB/docs/react/nextjs/reference/functions/get-gt.mdx --- title: getGT description: Translate standalone strings in asynchronous Next.js App Router components with General Translation. API reference for getGT. --- The `getGT` function returns an asynchronous string translation function for the current App Router request. Import it from `gt-next/server` when an async component cannot use [`useGT`](/docs/react/reference/hooks/use-gt). `getGT` is server-only and does not work with the Pages Router. ## Overview [#overview] ```tsx import { getGT } from 'gt-next/server'; const gt = await getGT(); const label = gt('Submit'); ``` ## How it works [#how-it-works] * **Build-time translation.** Production translations are prepared before deployment and loaded for the current request locale. * **Development translation.** A development API key enables on-demand translation while you develop. * **Static source strings.** Pass string literals so the compiler can extract them. * **Variables.** Interpolated values are inserted after translation and are not translated. ## Returns [#returns] **Type** `Promise<(content: string, options?: GTTranslationOptions) => string>` The resolved function translates a source string and accepts interpolation variables and [`GTTranslationOptions`](/docs/react/reference/types/inline-translation-options), such as `$context`, `$id`, and `$maxChars`. ## Example [#example] ```tsx title="app/contact/page.tsx" import { getGT } from 'gt-next/server'; export default async function ContactPage() { const gt = await getGT(); return ; } ```