Download translations from Transifex #57
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Download translations from Transifex | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 1 * * 1' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
- name: Install deps | |
run: yarn | |
- name: Update translations | |
run: node scripts/transifex.mjs pull | |
env: | |
TRANSIFEX_TOKEN: ${{ secrets.TRANSIFEX_TOKEN }} | |
- name: Create pull request | |
uses: peter-evans/create-pull-request@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
branch: i18n-patch | |
commit-message: 'chore: update locale files from Transifex' | |
title: Update locale files from Transifex | |
body: >- | |
Violentmonkey updates translations from Transifex every week automatically. | |
If you want to help translate into your language, please visit [the transifex platform](https://www.transifex.com/projects/p/violentmonkey-nex/resource/messagesjson/). |