# General Translation React SDKs (gt-react, gt-next, gt-react-native): getLocalizeHref
URL: https://generaltranslation.com/fr/docs/react/nextjs/reference/functions/get-localize-href.mdx
Docs index: https://generaltranslation.com/llms.txt
Description: Localisez les chemins de l’App Router dans le code serveur async. Référence de l’API pour getLocalizeHref.

La fonction `getLocalizeHref` se résout en la même fonction que [`useLocalizeHref`](/docs/react/nextjs/reference/hooks/use-localize-href), mais utilise les paramètres régionaux de la requête. Importez-la depuis `gt-next/server`.

## Vue d’ensemble [#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>;
}
```

## Valeurs de retour [#returns]

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

## Sitemap

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