Skip to content

Commit 5dcde06

Browse files
committed
Update translate action and script
1 parent ae0dca2 commit 5dcde06

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/translate.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
run: pip install -r requirements.txt && sudo apt update && sudo apt install gettext -y
2626

2727
- name: Run translate.py
28-
run: python translate.py ${{ github.event.inputs.file }} -t google -s
28+
run: python scripts/translate.py ${{ github.event.inputs.file }} -t google -s
2929

3030
- name: Commit changes
3131
run: |

scripts/translate.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727
parser.add_argument(
2828
"-s",
2929
"--skip-translated-entries",
30-
choices=[True, False],
31-
default=True,
30+
action="store_true",
3231
help="Skip already translated entries",
3332
)
3433

0 commit comments

Comments
 (0)