{% set currentLocale = app.request.locale %}
{% for lang in sysLangs|filter(e => e.Enabled == 1 and e.shortTitle == currentLocale) %}
{{ lang.shortTitle|upper }}
{% endfor %}
{% for lang in sysLangs|filter(e => e.Enabled == 1)|sort((a, b) => a.shortTitle == currentLocale ? -1 : (b.shortTitle == currentLocale ? 1 : 0)) %}
{% if lang.shortTitle != currentLocale %}
-
{{ lang.shortTitle|upper|default }}
{% endif %}
{% endfor %}