Unlock seamless workflows and faster delivery with our latest releases - Join the deep dive

Creating Subdirectories for Translated Pages

3 replies
Last updated: May 31, 2021
Hi!I was wondering for multi-language - Is there a way where I can make the URL
domain.com/fr/page-name ? Currently we our translations is pretty much like a new page/post/etc and the name would be something like Page Name Fr which makes the URL, domain.com/page-name-fr Thanks for any insight!
May 26, 2021, 8:31 PM
I haven’t done much work with i18n, but you have 2 options: either translations on the field level (each input can be translated) or on the document. However, on the document you’d want to have them grouped rather than as completely separate pages with FR in the title.

There’s a plugin that helps with the above, I haven’t used it though so can’t tell you much more about it. If you check in the localization channel you might get more help by someone with more experience in i18n than me.
May 27, 2021, 1:10 AM
good to know, thank you!
May 27, 2021, 11:33 PM
Hey Clara! Internationalisation is a tricky domain, there are so many aspects to consider. Also, think about how you want to handle SEO for your pages. this is where a distinct path (i.e. /fr/) or a subdomain (fr.websitename.com ) will come in handy. Max tip with the plug-in is the best way to get started
May 31, 2021, 10:38 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?