Commit 2b11ba7c authored by lunasorcery's avatar lunasorcery
Browse files

alphabetize languages automatically (and fix some minor indentation)

parent 17cd2e4b
...@@ -32,7 +32,9 @@ meteorikPublicNominationsOpen = False ...@@ -32,7 +32,9 @@ meteorikPublicNominationsOpen = False
# load languages # load languages
with open('languages/list.json') as file: with open('languages/list.json') as file:
languages = [lang for lang in json.load(file) if lang.get('visible', True)] languages = sorted(
[lang for lang in json.load(file) if lang.get('visible', True)],
key=lambda l: l['name'])
# ensure no overlapping root folders # ensure no overlapping root folders
......
...@@ -26,9 +26,9 @@ ...@@ -26,9 +26,9 @@
"root": "/pt", "root": "/pt",
"translators": [ "translators": [
"ps" "ps"
] ]
}, },
{ {
"id": "es", "id": "es",
"name": "Español", "name": "Español",
"root": "/es", "root": "/es",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment