Can I use multi-language features on a partially translated site?

Hi! I’m using Grav for a new site and it looks nice.

I have a question about the multilingual feature: Can I “hide” pages from showing up in collections if there is no translation for that page in the currently active language? For example, let’s say the primary language is English, and I have a Spanish homepage that displays recent posts. Is it possible to hide links to English-only pages? I thought that the translations_fallback variable set to false would do that, but the English-only links still show up on the Spanish homepage. And if you click on one, even though the URL says es, it just renders the English version for that page.

Am I doing this incorrectly? Or does Grav’s multi-lingual feature expect the entire site to be translated when using collections?

1 Like

I basically have the same question. On our site there are only the legal pages like terms of service etc. translated to english. But now the whole site gets it’s englisch urls with /en/. Thats not good for SEO purposes.

Now if there is no file found, i would like to show an 404 for the englisch page or even better an 302 redirect to the default version. Is there any possibility to do that?


I got it to work the way you want it to by setting pages_fallback_only: true

You can also create an empty page in the language you want to hide and set

published: false

– Harald