You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From my understanding, you are able to create a Language switcher for example, using the provided useRouter() functions. However, what if you want to have the languages as tags for the benefit of crawlers? The Link component that next-intl provides does not handle dynamic pathnames.
<Link locale="en" href={${path as string}}> EN </Link>
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello
From my understanding, you are able to create a Language switcher for example, using the provided useRouter() functions. However, what if you want to have the languages as tags for the benefit of crawlers? The Link component that next-intl provides does not handle dynamic pathnames.
<Link locale="en" href={
${path as string}}> EN </Link>
Returns
Error: Insufficient params provided for localized pathname.
Template: /communities/[slug]
Params: undefined
Beta Was this translation helpful? Give feedback.
All reactions