Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Adblock Plus Crowdin integration fix
diff --git a/localeTools.py b/localeTools.py
index 140f22c..f80a187 100644
--- a/localeTools.py
+++ b/localeTools.py
@@ -299,7 +299,7 @@ def setupTranslations(localeConfig, projectName, key):
allowed = set()
allowedLocales = json.load(urllib2.urlopen(
'https://crowdin.com/languages/languages_list?callback='
- ))
+ ))['data']
for locale in allowedLocales:
allowed.add(locale['code'])
if not allowed.issuperset(locales):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.