Extract new strings (2024-10-24) #274
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: Check reference strings | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- ".github/workflows/check_reference_strings.yml" | |
- ".github/scripts/linter_config.json" | |
- "en-US/*.xliff" | |
pull_request: | |
branches: | |
- main | |
paths: | |
- ".github/workflows/check_reference_strings.yml" | |
- ".github/scripts/linter_config.json" | |
- "en-US/*.xliff" | |
workflow_dispatch: | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Set up Python 3 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: Install Python dependencies | |
run: | | |
pip install -r .github/scripts/requirements.txt | |
- name: Lint reference locale | |
run: | | |
python .github/scripts/xliff_reference.py --path en-US --config .github/scripts/linter_config.json |