1
0
mirror of git://jb55.com/damus synced 2024-09-16 02:03:45 +00:00
damus/devtools/import-translation.sh
2023-02-19 13:17:53 -05:00

11 lines
447 B
Bash
Executable File

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