Skip to content

Instantly share code, notes, and snippets.

@flodolo
Last active August 29, 2015 14:27
Show Gist options
  • Save flodolo/b575083c95e5e870b59e to your computer and use it in GitHub Desktop.
Save flodolo/b575083c95e5e870b59e to your computer and use it in GitHub Desktop.
POC - Get incomplete locales from Webstatus for iOS
#!/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