Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

feat: add dropdown item to set the app language to the browser's

Francisco908278427f22
diff --git a/wger/core/templates/template.html b/wger/core/templates/template.html
index f4dbcd707..5094a0dd9 100644
--- a/wger/core/templates/template.html
+++ b/wger/core/templates/template.html
@@ -203,6 +203,12 @@
</button>
<ul class="dropdown-menu language-menu" aria-labelledby="btnGroupLanguages">
+ <li>
+ <a href="" class="dropdown-item">
+ <span class="{% fa_class 'globe' %}"></span>
+ <span>{% translate "Browser language" %}</span>
+ </a>
+ </li>
{% for language in languages %}
{% language_select language %}
{% endfor %}