Skip to content

Instantly share code, notes, and snippets.

@Hucent
Created December 2, 2017 12:48
Show Gist options
  • Save Hucent/ff1f1e73717f502cc2ac5a299d482c06 to your computer and use it in GitHub Desktop.
Save Hucent/ff1f1e73717f502cc2ac5a299d482c06 to your computer and use it in GitHub Desktop.
bartycrouch i18n
if which bartycrouch > /dev/null; then
# Incrementally update all Storyboards/XIBs strings files
bartycrouch interfaces -p "$PROJECT_DIR"
# Add new keys to Localizable.strings files from NSLocalizedString in code
bartycrouch code -p "$PROJECT_DIR" -l "$PROJECT_DIR" -a
# Translate all empty values using the Microsoft Translator API
#bartycrouch translate -p "$PROJECT_DIR" -l en -i "<API_ID>" -s "<API_SECRET>"
else
echo "warning: BartyCrouch not installed, download it from https://github.com/Flinesoft/BartyCrouch"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment