ultrabug / mkdocs-static-i18n

MkDocs i18n plugin using static translation markdown files
https://ultrabug.github.io/mkdocs-static-i18n/
MIT License
238 stars 38 forks source link

[Enhancement] Hiding localization options for unstralated pages #286

Open MetalKnight56 opened 10 months ago

MetalKnight56 commented 10 months ago

So i wanted to hide the language options from appearing on pages that are not yet translated like for example

image

This page is only currently available in english, but it still displays all languages on the language dropdown selector as if it was available in other languages as well... I wanted to hide the languages its not yet been trasnlated to yk...

This is not a huge deal btw, i just think its very odd to have these things displaying, maybe it could be a config option on the mkdocs.yml file idk, but i just think its kinda misleading for some people as i've got a bunch of people asking about it on my community too...

ultrabug commented 10 months ago

Hi @MetalKnight56

I guess you are running the plugin with the fallback_to_default: false option set?

MetalKnight56 commented 10 months ago

Hi @MetalKnight56

I guess you are running the plugin with the fallback_to_default: false option set?

No no, I do have it set to true, but it still allows users to select untranslated pages, it does work as it should but I just want to hide the translation options if a page doesn't have translations