Skip to content

Instantly share code, notes, and snippets.

@shirlston
Last active December 31, 2015 09:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shirlston/7967146 to your computer and use it in GitHub Desktop.
Save shirlston/7967146 to your computer and use it in GitHub Desktop.
Automate i18n translation rake tasks for Mobi.
#!/bin/bash
# i18n.sh
# Automate rake translations
# syntax:
# i18n.sh <path>
langs=(zh-TW nl fr de it pt es el tr)
for lang in "${langs[@]}"
do
bundle exec rake translate:dictionary["${lang}","$1"]
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment