---
createdAt: 2025-05-20
updatedAt: 2026-01-22
title: Can I translate the URL path?
description: Learn how to translate the URL path.
keywords:
  - array
  - content
  - declaration
  - intlayer
  - middleware
  - proxy
  - rewrite
  - prefix
  - locale
  - url
slugs:
  - frequent-questions
  - translated-path-url
---

# Is it possible to translate URLs?

Yes! Intlayer supports custom URL rewrites, which allow you to define locale-specific paths. For example:

```bash
en -> /product
fr -> /fr/produit
es -> /es/producto
```

To implement this, you can configure the `routing` section in your `intlayer.config.ts` file.

For more information on how to implement this feature, see the [Custom URL Rewrites documentation](/docs/concept/custom_url_rewrites).

You can also use the `getMultilingualUrl` and `getLocalizedUrl` functions to generate these URLs programmatically, and they will respect your rewrite rules.

```ts
import { getLocalizedUrl, Locales } from "intlayer";

const url = getLocalizedUrl("/product", Locales.FRENCH);

console.log(url); // /fr/produit (if configured)
```
