3
devtools/export-source-translation.sh
Executable file
3
devtools/export-source-translation.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/zsh
|
||||
|
||||
xcodebuild -exportLocalizations -project damus.xcodeproj -localizationPath "translations" -exportLanguage en-US
|
||||
8
devtools/import-translation.sh
Executable file
8
devtools/import-translation.sh
Executable 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 %
|
||||
Reference in New Issue
Block a user