Receive notifications about upcoming Intlayer releases

    Is it possible to translate URLs as follows:

    en -> /product (no prefix) or /en/product (with prefix)fr -> /fr/produites -> /es/producto

    Unfortunately, Intlayer does not allow translating URLs as specified. To achieve this, you should use your own middleware or proxy to rewrite the URLs.

    However, you can use the getMultilingualUrl function to insert the prefix in the URL for a given locale.

    import { getMultilingualUrl, Locales } from "intlayer";const url = getMultilingualUrl("/product");/** * en -> /product (no prefix) or /en/product (with prefix) * fr -> /fr/product * es -> /es/product */console.log(url);

    Or getLocalizedUrl

    import { getLocalizedUrl, Locales } from "intlayer";const url = getLocalizedUrl("/product", Locales.FRENCH);console.log(url); // /fr/product