Page 1 of 1

lang loop in slideshow.twig

Posted: Sun Sep 23, 2018 3:58 am
by undef
Hi!
I wrote small code into slideshow.twig

Code: Select all

 {% if language.code ==  pl-pl  %}<h1 class="nagi">Zaprojektuj z nami swoje wnętrze.</h1> {% elseif language.code ==  en-gb %} <h1 class="nagi"> Design it wiht us
        </h1>  {% endif %}
It works but dont refresh when lang is changed, Someone can help with this?
Thanks!

Re: lang loop in slideshow.twig

Posted: Mon Oct 08, 2018 12:01 pm
by anung
Why you not use multilanguage feature?