# General Translation React SDKs (gt-react, gt-next, gt-react-native): getLocalizeHref
URL: https://generaltranslation.com/it/docs/react/nextjs/reference/functions/get-localize-href.mdx
Docs index: https://generaltranslation.com/llms.txt
Description: Localizza i percorsi dell'App Router nel codice server async. Riferimento API per getLocalizeHref.

La funzione `getLocalizeHref` restituisce, tramite una Promise, la stessa funzione di [`useLocalizeHref`](/docs/react/nextjs/reference/hooks/use-localize-href), usando le impostazioni locali della richiesta. Va importata da `gt-next/server`.

## Panoramica [#overview]

```tsx title="app/[locale]/cart/page.tsx"
import { getLocalizeHref } from 'gt-next/server';
import { Button } from '@/components/Button';

export default async function CartPage() {
  const localizeHref = await getLocalizeHref();
  return <Button href={localizeHref('/checkout')}>Checkout</Button>;
}
```

## Returns [#returns]

**Tipo** `Promise<(href: string, locale?: string | false) => string>`

## Sitemap

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