mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-22 06:13:25 -07:00
Sort locale dropdown
This commit is contained in:
parent
e5f0edcf8f
commit
852ddd8d70
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<select class="form-control" id="locale" name="locale">
|
<select class="form-control" id="locale" name="locale">
|
||||||
% for lang_code, lang_name in common.LOCALES.items():
|
% for lang_code, lang_name in sorted(common.LOCALES.items(), key=lambda l: l[1]):
|
||||||
<option value="${lang_code}" lang="${lang_code}" ${'selected' if config['locale'] == lang_code else ''}>${lang_name}</option>
|
<option value="${lang_code}" lang="${lang_code}" ${'selected' if config['locale'] == lang_code else ''}>${lang_name}</option>
|
||||||
% endfor
|
% endfor
|
||||||
</select>
|
</select>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue