Replies: 1 comment 4 replies
-
This can be handled with a parallel route that provides your general locale switcher by default, and for the blog category route is overridden with one that considers the localized slugs from your CMS. @frankspin89 implemented this on his personal website, see e.g. the locale switcher on https://www.frankspin.com/en/posts/this-was-2018 and also https://x.com/Frankspin/status/1867141556974895522. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've been following the examples and most of my app is translatable now, there's just one thing I haven't found yet. Let's say I have a page
/blog/category/flowers
, which in Dutch would be/nieuws/categorie/bloemen
,I'm using my CMS/API to get the category (flowers).
Now when I'm on the English version, and I switch to Dutch, the path becomes
/nieuws/categorie/flowers
. So the last part is not translated, which is normal because it comes from my CMS.I'm using the pathnames
How does one handle this use-case?
Beta Was this translation helpful? Give feedback.
All reactions