1
0
mirror of git://jb55.com/damus synced 2024-09-18 19:23:49 +00:00
damus/devtools/import-translation.sh

11 lines
447 B
Bash
Raw Normal View History

#!/bin/zsh
2023-02-19 06:58:43 +00:00
# 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 %