Hello (again),
Do you know how to stay on the same subdirectory while clicking on a locale link ?
I have this page for example: mydomain/un-blog-de-motion-design
and I want the “EN” link to drive me to mydomain/en/un-blog-de-motion-design, but it drives me to the homepage.
Here are the settings for the link :
I also don’t understand the difference between “Locale list items” and “current locales” in the locale link settings :
My logic says that you have the correct settings, but for some reason, the wrong link is generated.
Locales list item is like the CMS list item. Every locale has its own links and other data. The current locale is the one user is on. A subdirectory is the home page of the local and a page is the specific page of the local (at least in my mind).
The text part of the link works for me. If I put the current locale name or ISO code, all the links show the same text value.
Problem solved !
But I still don’t understand the difference between “locales list item” and “current locales”, as the link should redirect to the “new” locale when clicked, and not to a “current” one (it makes no sense for a destination)
Hello,
Does anyone know how to apply a specific style for the current locale? For example, if English is selected, the EN link should be bold, and if French is selected, the FR link should be bold. At the moment, the style changes for both, and I don’t understand why.
To tmh’s question, there should be a “current locale” state in the locales link element. The regular current state tag appears to be quite sticky, as it seldom does.
Hi Janne,
Yes I saw the Current Locale state. Problem is this state is applied to both localization link at the same time. It should be applied to only one link. I found a solution with embed code to apply Current Locale to only one link at the time but this is not the ideal solution.
Oh yeah. It’s not once or twice I’ve had a stubborn current state. But there is a trick to it.
Just make a separate link element with the same class and without local list on some other page of the project. A style guide page would be a good place for this. There, you can edit the non-current style. Then, you can copy the element and link it to that specific page to get the current state. This way, you have both styles next to each other.
Styling should work on published site even if the designer shows the current tag in both links.