diff --git a/translations/handleSwiftNextcloudUITranslations.sh b/translations/handleSwiftNextcloudUITranslations.sh index 9f48bf20..82bc5b92 100755 --- a/translations/handleSwiftNextcloudUITranslations.sh +++ b/translations/handleSwiftNextcloudUITranslations.sh @@ -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