Add export and import translation scripts

Closes: #430
This commit is contained in:
tyiu authored and William Casarin committed 2023-01-30 10:20:52 -08:00
1 parent 08ca484d54
commit 2ed17a2509
18 files changed
+47 -1259

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
#!/bin/zsh
xcodebuild -exportLocalizations -project damus.xcodeproj -localizationPath "translations" -exportLanguage en-US
+8
View File
@@ -0,0 +1,8 @@
#!/bin/zsh
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 %