I need to include two buttons or links to allow users change language between English and Spanish. I\'ve read the docs and tried this:
If in your current system you have only 2 languages then simply use like below:
{% ifequal LANGUAGE_CODE "en" %} Spanish {% else %} English {% endifequal %}
No need of a form, url and submit etc. It worked for me.