next-intl localized pathnames doesn't work
Unanswered
American Wirehair posted this in #help-forum
American WirehairOP
Im expecting the url to be
/sobre-nos
when language is pt. Even though the lang is set correctly, its redirecting to /features
. Below is my routing.ts. import { defineRouting } from "next-intl/routing";
export const routing = defineRouting({
// A list of all locales that are supported
locales: ["en", "es", "pt"],
// Used when no locale matches
defaultLocale: "en",
localePrefix: "never",
pathnames: {
"/": "/",
"/features": {
en: "/features",
es: "/features",
pt: "/sobre-nos",
},
},
});