-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: validate that template extraction works (#3353)
* fix(i18n): extract `mutation_flag` * refactor: add type hints and use f-string * ci: validate translation template extraction
- Loading branch information
Showing
4 changed files
with
50 additions
and
22 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Validate translation template extraction | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- "src/**/*.cpp" | ||
- "lang/extract_json_strings.py" | ||
|
||
# We only care about the latest revision of a PR, so cancel previous instances. | ||
concurrency: | ||
group: i18n-extraction-${{ github.event.pull_request.number || github.ref_name }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
check-extraction: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install gettext python3-pip | ||
sudo pip3 install polib luaparser | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Check that translation template extraction works | ||
run: lang/update_pot.sh |
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
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
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