Created
April 16, 2018 07:00
-
-
Save kibotu/9c2f6b724e90f3536af33bcd12293765 to your computer and use it in GitHub Desktop.
localize.biz
This file contains 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
#!/usr/bin/env bash | |
authKey="MY_LOCALIZE_BIZ_API_KEY" | |
valuesDir="src/main/res/values" | |
languages="de en" | |
# Main string files | |
for language in $languages | |
do | |
if [ "$language" == "en" ]; then | |
saveDir="$valuesDir" | |
else | |
saveDir="$valuesDir-$language" | |
fi | |
mkdir -p $saveDir | |
curl "https://localise.biz/api/export/locale/$language.xml?key=$authKey&format=android&fallback=en" > "$saveDir/strings.xml" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
app/build.gradle