# General Translation React SDKs (gt-react, gt-next, gt-react-native): getRegion
URL: https://generaltranslation.com/en-US/docs/react/nextjs/reference/functions/get-region.mdx
Docs index: https://generaltranslation.com/llms.txt
Description: Read the current Next.js App Router request region with General Translation. API reference for getRegion.

The `getRegion` function returns the region associated with the current App Router request. Import it from `gt-next/server` in async components and other server code.

`getRegion` is server-only and does not work with the Pages Router.

## Overview [#overview]

```tsx
import { getRegion } from 'gt-next/server';

const region = await getRegion(); // 'US' or undefined
```

## Returns [#returns]

**Type** `Promise<string | undefined>`

A promise resolving to an ISO 3166 region code, or `undefined` when no region is set.

## Example [#example]

```tsx title="app/account/page.tsx"
import { getRegion } from 'gt-next/server';

export default async function AccountPage() {
  const region = await getRegion();
  return <p>Region: {region ?? 'Not set'}</p>;
}
```

## Sitemap

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