-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request
Description
My site is multi-domain
( next config like: )
...
i18n: {
locales: ['en-US', 'fr-FR', 'de-DE'],
defaultLocale: 'en-US',
domains: [
{
domain: 'dev.site.com',
defaultLocale: 'en-US',
http: true,
},
{
domain: 'dev.site.fr',
defaultLocale: 'fr-FR',
http: true,
},
],
...
But my links now have are like : "dev.site.fr/fr-FR/example"
How to remove the language sufix since I already do it by domain ?
I managed to do like that
<Link
href={href}
as={translateUrl(href, router.locale, {
withoutLangPrefix: true,
format: 'string',
})}
>
is this the proper way ? Can I remove all the language prefix everywhere ?
Also how to make the url "site.fr/sell" redirect to "site.fr/vendre" instead of redirecting with the lang prefix "site.fr/fr-FR/vendre/"
PS. THANKS FOR YOUR WORK ON THIS !
zergu and danielkorabtrustmate
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request