Fix localization issues

This commit is contained in:
2023-02-19 01:58:43 -05:00
parent 795577a0a1
commit 1b27e9041f
38 changed files with 140 additions and 27721 deletions

View File

@@ -1,3 +1,7 @@
#!/bin/zsh
xcodebuild -exportLocalizations -project damus.xcodeproj -localizationPath "translations" -exportLanguage en-US
# Generates all en-US source localized strings EXCEPT for SwiftUI Text wrapped strings.
xcodebuild -exportLocalizations -project damus.xcodeproj -localizationPath "damus" -exportLanguage en-US
# Generates all SwiftUI Text() wrapped localized strings.
genstrings -o "damus/en-US.xcloc/Source Contents/damus/en-US.lproj/" -SwiftUI **/*.swift

View File

@@ -1,5 +1,7 @@
#!/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