# General Translation React SDKs (gt-react, gt-next, gt-react-native): getLocalizeHref
URL: https://generaltranslation.com/es/docs/react/nextjs/reference/functions/get-localize-href.mdx
Docs index: https://generaltranslation.com/llms.txt
Description: Localiza rutas del App Router en código asíncrono de servidor. Referencia de la API de getLocalizeHref.

La función `getLocalizeHref` se resuelve en la misma función que [`useLocalizeHref`](/docs/react/nextjs/reference/hooks/use-localize-href), con la configuración regional de la solicitud. Impórtala desde `gt-next/server`.

## Descripción general [#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>;
}
```

## Devuelve [#returns]

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

## Sitemap

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