ui: i18n: add interface flag (#909)

This commit is contained in:
undefined committed 2025-02-20 08:46:30 +08:00
1 parent dc396a04e6
commit 4bf405e2b4
10 files changed
+17 -6

No files matched your search

@@ -124,7 +124,7 @@
<ul class="section__tab-header flex-row">
{% for k in pdoc.content|contentLang %}
<a class="section__tab-header-item {{'tab--active' if (handler.request.query.lang or handler.user.viewLang or handler.session.viewLang or (pdoc.content|contentLang)[0] ) == k }}" data-lang="{{ k }}" href="./{{pdoc.pid|default(pdoc.docId)}}?lang={{k}}">
{{ model.setting.SETTINGS_BY_KEY['viewLang'].range[k] }}
{{ handler.ctx.i18n.get('__langname', k) or i18n('Unknown language') }}
</a>
{% endfor %}
</ul>