We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1b18c6 commit 764ab19Copy full SHA for 764ab19
1 file changed
ckanext-zarr/ckanext/zarr/templates/snippets/language_selector.html
@@ -0,0 +1,13 @@
1
+{% set current_lang = request.environ.CKAN_LANG %}
2
+
3
+<nav class="account nav-for-large-screen">
4
+ <ul class="list-unstyled">
5
+ {% for locale in h.get_available_locales() %}
6
+ <li>
7
+ <a href="{% url_for h.current_url(), locale=locale.short_name %}" {% if locale.short_name == current_lang %}selected="selected"{% endif %}>
8
+ {{ h.format_locale(locale) }}
9
+ </a>
10
+ </li>
11
+ {% endfor %}
12
+ </ul>
13
+</nav>
0 commit comments