Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions translations/Dockerfile-SwiftNextcloudUI
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM ghcr.io/nextcloud/continuous-integration-translations:latest

LABEL org.opencontainers.image.authors="Tobias Kaminsky <[email protected]>"

ADD handleSwiftNextcloudUITranslations.sh /handleTranslations.sh
6 changes: 6 additions & 0 deletions translations/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,12 @@
""
]
},
{
"name": "swiftnextcloudui",
"arguments": [
""
]
},
{
"name": "desktop",
"arguments": [
Expand Down
24 changes: 24 additions & 0 deletions translations/handleSwiftNextcloudUITranslations.sh
Original file line number Diff line number Diff line change
@@ -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 [email protected]: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"