documentation/extensions/odoo_theme/layout_templates/language_switcher.html
2021-02-19 11:13:04 +01:00

12 lines
534 B
HTML

<div class="o_languages me-2">
<div class="dropdown">
<button class="btn border dropdown-toggle" id="languages" data-bs-toggle="dropdown">
{{ language }} {# The current language #}
</button>
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="languages">
{% for alternate_language, language_code, url in alternate_languages %}
<li><a class="dropdown-item" href="{{ url }}">{{ alternate_language }}</a></li>
{% endfor %}
</ul>
</div>
</div>