Add download-translations.bash script

The script can be used to download the translations from Crowdin.

Change-Id: I295b34ef26d361a493e6fd82501bc70405e04ac1
diff --git a/tools/i18n/download-translations.bash b/tools/i18n/download-translations.bash
new file mode 100644
index 0000000..075aee0
--- /dev/null
+++ b/tools/i18n/download-translations.bash
@@ -0,0 +1,18 @@
+#!/bin/bash
+emptyTranslationFile="{}"
+
+# Download new translations
+if [ ! -f "crowdin.yml" ]; then
+  echo "Copy crowdin.template.yml to crowdin.yml and fill in the API token."
+fi
+
+crowdin download -c crowdin.yml
+
+cd ../../src/_locales
+
+for lang in *; do
+  if [ "x$emptyTranslationFile" = "x$(cat $lang/messages.json)" ]; then
+    echo "$lang has an empty translation. Deleting folder..."
+    rm -rf $lang
+  fi
+done