Last active
August 29, 2015 14:27
-
-
Save flodolo/b575083c95e5e870b59e to your computer and use it in GitHub Desktop.
POC - Get incomplete locales from Webstatus for iOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
INCOMPLETE_LOCALES_LIST=$(wget -qO- https://l10n.mozilla-community.org/~flod/webstatus/api/?product=firefox-ios\&type=incomplete\&txt) | |
INCOMPLETE_LOCALES=(${INCOMPLETE_LOCALES_LIST//$'\n'/ }) | |
# In case we need to exclude some locales, even if complete and without errors | |
ADDITIONAL_LOCALES=( | |
"da" | |
) | |
INCOMPLETE_LOCALES=( | |
"${INCOMPLETE_LOCALES[@]}" | |
"${ADDITIONAL_LOCALES[@]}" | |
) | |
for i in "${!INCOMPLETE_LOCALES[@]}"; do | |
echo "Removing incomplete locale ${INCOMPLETE_LOCALES[$i]}" | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment