diff --git a/translations/Dockerfile-SwiftNextcloudUI b/translations/Dockerfile-SwiftNextcloudUI new file mode 100644 index 00000000..77f9be26 --- /dev/null +++ b/translations/Dockerfile-SwiftNextcloudUI @@ -0,0 +1,5 @@ +FROM ghcr.io/nextcloud/continuous-integration-translations:latest + +LABEL org.opencontainers.image.authors="Tobias Kaminsky " + +ADD handleSwiftNextcloudUITranslations.sh /handleTranslations.sh diff --git a/translations/config.json b/translations/config.json index 2dd705d4..624d867b 100644 --- a/translations/config.json +++ b/translations/config.json @@ -225,6 +225,12 @@ "" ] }, + { + "name": "swiftnextcloudui", + "arguments": [ + "" + ] + }, { "name": "desktop", "arguments": [ diff --git a/translations/handleSwiftNextcloudUITranslations.sh b/translations/handleSwiftNextcloudUITranslations.sh new file mode 100755 index 00000000..568b13a6 --- /dev/null +++ b/translations/handleSwiftNextcloudUITranslations.sh @@ -0,0 +1,24 @@ +#!/bin/sh + +# verbose and exit on error +set -xe + +# import GPG keys +gpg --import /gpg/nextcloud-bot.public.asc +gpg --allow-secret-key-import --import /gpg/nextcloud-bot.asc +gpg --list-keys + +# fetch git repo +git clone git@github.com:nextcloud/swiftnextcloudui /app + +# push sources +tx push -s + +# pull translations +tx pull -f -a + +# create git commit and push it +git add . +git commit -am "fix(l10n): Update translations from Transifex" -s || true +git push origin main +echo "done"