- Issue created by @juc1
- Status changed to Closed: works as designed
almost 2 years ago 1:19pm 30 May 2023 - 🇩🇪Germany szeidler Berlin
Yes, that should be possible using this module. Otherwise please file a new issue.
- 🇬🇧United Kingdom juc1
but where can i find the option "Hide the current language" ?
I can't see this feature on /admin/config/regional/language/language-switcher-extended
- 🇩🇪Germany szeidler Berlin
If I understand your request correctly this is what you're looking for.
- 🇬🇧United Kingdom juc1
@szeidler thanks but I think this is different question - I think your comment concerns if there is no translation for the current node then don't show the switcher because there is nothing to switch to.
My question is - my node has two languages English and Spanish - so for the English page I want the switcher to show the link to the Spanish page but not show the link to the English page (because I am already on the English page). And vice versa - if I am on the Spanish page I want the switcher to show the link to the English page but not show the link to the Spanish page (because I am already on the Spanish page).
- 🇬🇧United Kingdom juc1
I have just realised that I can do this with CSS =
.language-switcher-language-url ul.links li a.is-active { display: none; }
- 🇩🇪Germany szeidler Berlin
Great, I haven't thought about it, but that's pragmatic.