import-translation.sh (447B)
1 #!/bin/zsh 2 3 # Soon to be deprecated. Translation process of using localized .xliff files will be replaced with Transifex directly updating localized .strings and .stringsdict files. 4 5 if [ -z "$*" ]; then 6 echo "Usage: ./devtools/import-translation.sh <locale_code_in_snake_case>" 7 return 8 fi 9 10 find "translations" -name "${1}.xliff" | grep -v "en-US.xliff" | xargs -I % xcodebuild -importLocalizations -project damus.xcodeproj -localizationPath %