Fix localization issues
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user