Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions translations/handleSwiftNextcloudUITranslations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ tx push -s
# pull translations
tx pull -f -a

# Use de_DE instead of de
# 1. Remove informal german keys
# 2. Replace formal german with informal german key
# 3. Save as temp file
# 4. Move to original location
cat Sources/SwiftNextcloudUI/Localizable.xcstrings | jq '. | del(.strings .[] .localizations .de)' | sed 's/"de_DE": {/"de": {/' > FixedLocalizable.xcstrings
mv -f FixedLocalizable.xcstrings Sources/SwiftNextcloudUI/Localizable.xcstrings

# create git commit and push it
git add .
git commit -am "fix(l10n): Update translations from Transifex" -s || true
Expand Down