Skip to content

Translate

Translate #41

Workflow file for this run

name: Translate
on:
workflow_dispatch: {}
schedule:
- cron: '0 7 15 * *'
push:
branches: [master]
paths:
- '**/*.resx'
- '!**/*.*.resx' # Don't trigger again for updated translations
jobs:
translate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
show-progress: false
- name: Transifex Push
run: ./0install.sh run https://apps.0install.net/devel/transifex-cli.xml --token ${{secrets.TRANSIFEX_API_KEY}} push --source
- name: Transifex Pull (fully translated)
run: ./0install.sh run https://apps.0install.net/devel/transifex-cli.xml --token ${{secrets.TRANSIFEX_API_KEY}} pull --translations --mode translator --all --minimum-perc 100
- name: Transifex Pull (partially translated) # Only languages that can be completed with Machine Translation
run: ./0install.sh run https://apps.0install.net/devel/transifex-cli.xml --token ${{secrets.TRANSIFEX_API_KEY}} pull --translations --mode translator --languages cs,el,es,fr,id,it,ja,ko,nl,pl,pt_PT,ro,ru,zh
- name: DeepL Cache
uses: actions/cache@v4
with:
path: '**/*.a.resx'
key: deepl
- name: DeepL Translate
uses: Yeah69/MrMeeseeks.ResXTranslationCombinator@main
env:
GITHUB_TOKEN: ${{github.token}}
with:
auth: ${{secrets.DEEPL_API_KEY}}
source-lang: en
localization-filter: cs;el;es;fr;id;it;ja;ko;nl;pl;pt-PT;ro;ru;zh
glossary-name: Zero Install
context: User interface for editor with menus and buttons.
excludes-regex: .*ImageResources.*
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
branch: translate
commit-message: Update translations
title: Update translations
body: Translations downloaded from Transifex and generated with DeepL