Translated using Weblate (Persian) #62
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: html2po (Weblate syntax check) | |
on: [pull_request, push] | |
jobs: | |
translate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.x' | |
- name: Install translate-toolkit | |
run: | | |
python -m pip install --upgrade pip | |
pip install translate-toolkit | |
- name: Run html2po | |
# This is written so complex because at the time of writing (2024-02-28) it always returns 0. | |
run: | | |
html2po user_guide/en.html 2>&1 | grep Error && exit 1 || exit 0 |