Created
December 2, 2017 12:48
-
-
Save Hucent/ff1f1e73717f502cc2ac5a299d482c06 to your computer and use it in GitHub Desktop.
bartycrouch i18n
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
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