-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update source en.json with pull request
- Loading branch information
Showing
3 changed files
with
59 additions
and
43 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,25 @@ | ||
name: Push App Source Language File | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
paths: | ||
- locale/en.json | ||
|
||
jobs: | ||
push: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install transifex client | ||
run: | | ||
curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash | ||
- name: Push source language | ||
env: | ||
TX_TOKEN: ${{ secrets.TX_TOKEN }} | ||
run: | | ||
./tx push --source |
This file was deleted.
Oops, something went wrong.
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,34 @@ | ||
name: Update App Source Language File | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
paths: | ||
- "src/*.rs" | ||
- "scripts/extract_locale_strings.py" | ||
- ".github/workflows/update-app-source-language-file.yml" | ||
|
||
jobs: | ||
push: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Extract localizable strings | ||
run: python scripts/extract_locale_strings.py | ||
|
||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
title: Update source language file | ||
commit-message: Update source language file | ||
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | ||
add-paths: locale/en.json | ||
delete-branch: true |