Browse Source

add translation widgets

Markus-Rost 4 years ago
parent
commit
fbf9cfed83

+ 0 - 0
.github/workflows/node.js.yml → .github/workflows/nodejs.yml


+ 0 - 16
.github/workflows/pull-request.yml

@@ -1,16 +0,0 @@
-name: Create Pull Request
-on:
-  push:
-    branches: [ translations ]
-jobs:
-  pull-request:
-    runs-on: ubuntu-latest
-    steps:
-    - uses: actions/checkout@v2
-    - name: pull-request
-      uses: repo-sync/pull-request@v2
-      with:
-        pr_title: "Update translations"
-        pr_body: "Update translations from https://weblate.frisk.space/engage/wiki-bot/"
-        pr_label: "translation"
-        github_token: ${{ secrets.WIKIBOT_TOKEN }}

+ 32 - 0
.github/workflows/translations.yml

@@ -0,0 +1,32 @@
+name: Update translations
+on:
+  push:
+    branches: [ translations ]
+jobs:
+  pull-request:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@v2
+    - name: Update Widgets
+      run: |
+        sudo apt-get install inkscape
+        for language in i18n/[a-z-]*.json
+        do
+          wget https://weblate.frisk.space/widgets/wiki-bot/$(basename $language .json)/discord/svg-badge.svg
+          convert svg-badge.svg i18n/widgets/$(basename $language .json).png
+          rm svg-badge.svg
+        done
+    - name: Commit changes
+      uses: EndBug/add-and-commit@v4
+      with:
+        message: "Update translation widgets"
+        add: "i18n/widgets/*.png"
+      env:
+        GITHUB_TOKEN: ${{ secrets.WIKIBOT_TOKEN }}
+    - name: Create Pull Request
+      uses: repo-sync/pull-request@v2
+      with:
+        pr_title: "Update translations"
+        pr_body: "Update translations from https://weblate.frisk.space/engage/wiki-bot/"
+        pr_label: "translation"
+        github_token: ${{ secrets.WIKIBOT_TOKEN }}

+ 1 - 1
README.md

@@ -108,4 +108,4 @@ Use `!wiki voice` to get the format for the role name.
 ## Other
 Credits to [Encredechine](https://community.fandom.com/wiki/User:Encredechine) for the **Wiki-Bot** logo.
 
-[Privacy Policy](privacy.md)
+[Privacy Policy](PRIVACY.md#privacy-policy)

+ 1 - 1
RcGcDb

@@ -1 +1 @@
-Subproject commit 6b26ac261450e1795aa4ed2b23e28bfad350bddd
+Subproject commit d2155eaa6bb6f18f6e0bd1f0e7036695666bec3f

BIN
i18n/widgets/de.png


BIN
i18n/widgets/en.png


BIN
i18n/widgets/es.png


BIN
i18n/widgets/fr.png


BIN
i18n/widgets/nl.png


BIN
i18n/widgets/pl.png


BIN
i18n/widgets/pt-br.png


BIN
i18n/widgets/ru.png


BIN
i18n/widgets/tr.png


BIN
i18n/widgets/zh-hans.png


BIN
i18n/widgets/zh-hant.png