mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Weblate API object has changed, language name is in the name key instead of the language key
This commit is contained in:
parent
e8c4ac5059
commit
127397d0d9
@ -110,7 +110,7 @@ async def main():
|
|||||||
# Get the list of languages in the OnionShare project
|
# Get the list of languages in the OnionShare project
|
||||||
res = await api("/api/projects/onionshare/languages/")
|
res = await api("/api/projects/onionshare/languages/")
|
||||||
for obj in res:
|
for obj in res:
|
||||||
languages[obj["code"]] = obj["language"]
|
languages[obj["code"]] = obj["name"]
|
||||||
|
|
||||||
# Get the app translations for each language
|
# Get the app translations for each language
|
||||||
for lang_code in languages:
|
for lang_code in languages:
|
||||||
|
Loading…
Reference in New Issue
Block a user