Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PoroCYon
executable.graphics
Commits
2b11ba7c
Commit
2b11ba7c
authored
Jun 23, 2021
by
lunasorcery
Browse files
alphabetize languages automatically (and fix some minor indentation)
parent
17cd2e4b
Changes
2
Hide whitespace changes
Inline
Side-by-side
build-site.py
View file @
2b11ba7c
...
...
@@ -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
...
...
languages/list.json
View file @
2b11ba7c
...
...
@@ -26,9 +26,9 @@
"root"
:
"/pt"
,
"translators"
:
[
"ps"
]
},
{
]
},
{
"id"
:
"es"
,
"name"
:
"Español"
,
"root"
:
"/es"
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment