Skip to content

Translate

Translate #8

Workflow file for this run

name: Translate
on:
workflow_dispatch: {}
schedule:
- cron: '0 7 15 * *'
jobs:
translate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
show-progress: false
- 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: Command-line tool for building software packages.
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
branch: translate
commit-message: Update translations
title: Update translations
body: Translations downloaded from Transifex and generated with DeepL