Skip to content

Add script for handling translations #195

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Oct 28, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add translation tests to tests.yml
  • Loading branch information
rffontenelle committed Aug 2, 2024
commit 6b6f0d2787d30670a00ef4552d24ad1ebe5c7d3a
33 changes: 33 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,36 @@ jobs:
with:
name: doc-html-${{ matrix.branch }}
path: www/

translations:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "windows-latest"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3
allow-prereleases: true
cache: pip
- name: Install dependencies
run: |
pip install -U pip setuptools
pip install Babel jinja2
- run: python3 babel_runner.py extract
- run: python3 babel_runner.py init -l pt_BR
- run: python3 babel_runner.py update
- run: python3 babel_runner.py update -l pt_BR
- run: python3 babel_runner.py compile
- run: python3 babel_runner.py compile -l pt_BR
- name: Print .pot file
shell: bash
run: cat locales/messages.pot
- name: Print .po file
shell: bash
run: cat locales/pt_BR/LC_MESSAGES/messages.po
- name: list files in locales dir
shell: bash
run: ls -R locales/
Loading