aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2023-09-04 19:13:28 -0700
committerMicah Lee <micah@micahflee.com>2023-09-04 19:13:28 -0700
commit127397d0d994178c65f0e6fe7f0ab8468bef7b85 (patch)
tree146cdc155e5f43ae49d89cd4425ef37def3a3aa3
parente8c4ac50590b7902e5f5077202980c60e95944ec (diff)
downloadonionshare-127397d0d994178c65f0e6fe7f0ab8468bef7b85.tar.gz
onionshare-127397d0d994178c65f0e6fe7f0ab8468bef7b85.zip
Weblate API object has changed, language name is in the name key instead of the language key
-rwxr-xr-xdocs/check-weblate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/check-weblate.py b/docs/check-weblate.py
index 76cc6942..135c4b44 100755
--- a/docs/check-weblate.py
+++ b/docs/check-weblate.py
@@ -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: