-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (31 loc) · 908 Bytes
/
i18n.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Translations
on:
pull_request: {}
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: pip
cache-dependency-path: '**/requirements*.txt'
- name: Install translate-toolkit
run: |
sudo apt update
sudo apt install translate-toolkit
- run: pip install -r requirements.txt
- name: Update catalogs
working-directory: extension_explorer
run: |
pybabel extract -F babel.cfg -o messages.pot .
pybabel update -i messages.pot -d locale
- name: Count incomplete translations
shell: bash
run: |
output=$(find . -name LC_MESSAGES -exec pocount --incomplete --short "{}" +)
echo $output
[ "$output" = "" ]