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
# load languages
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
......
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