I am using Lindsey's Language Link plugin for my language switcher.
Everything works well, as long as the url is not a category url.
Here it is:
{% set element = (entry is defined ? entry : null) %}
{% for locale in craft.i18n.getSiteLocales %}
<a href="{{ ll(locale.id, element) }}" class="dropdown-item">{{ locale.nativeName|capitalize }}</a>
{% endfor %}
Where can I tell Craft to used the translated slug in my language switcher?