Weblate API object has changed, language name is in the name key instead of the language key

This commit is contained in:
Micah Lee 2023-09-04 19:13:28 -07:00
parent e8c4ac5059
commit 127397d0d9
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -110,7 +110,7 @@ async def main():
# Get the list of languages in the OnionShare project
res = await api("/api/projects/onionshare/languages/")
for obj in res:
languages[obj["code"]] = obj["language"]
languages[obj["code"]] = obj["name"]
# Get the app translations for each language
for lang_code in languages: