use If for lang in twig file
Created 7 years ago by sylvanas

hi i need to get current lang name in twig file and if then for lang for change value of label

keevitaja  —  7 years ago Best Answer

not sure if understood you, but

{% for locale in config_get('streams::locales.enabled') %}
    <a {% if config('app.locale') == locale %}class="current"{% endif %} href="{{ url_locale(request_path(), locale) }}">
        {{ locale }}
    </a>
{% endfor %}