From 5dcde06e2c4f189aea36cd17b2211e91a58baa78 Mon Sep 17 00:00:00 2001 From: egeakman Date: Fri, 22 Sep 2023 20:30:27 +0300 Subject: [PATCH] Update translate action and script --- .github/workflows/translate.yaml | 2 +- scripts/translate.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/translate.yaml b/.github/workflows/translate.yaml index 7b2b1c6f2..d502a64cc 100644 --- a/.github/workflows/translate.yaml +++ b/.github/workflows/translate.yaml @@ -25,7 +25,7 @@ jobs: run: pip install -r requirements.txt && sudo apt update && sudo apt install gettext -y - name: Run translate.py - run: python translate.py ${{ github.event.inputs.file }} -t google -s + run: python scripts/translate.py ${{ github.event.inputs.file }} -t google -s - name: Commit changes run: | diff --git a/scripts/translate.py b/scripts/translate.py index d21a8b860..71bfd8359 100644 --- a/scripts/translate.py +++ b/scripts/translate.py @@ -27,8 +27,7 @@ parser.add_argument( "-s", "--skip-translated-entries", - choices=[True, False], - default=True, + action="store_true", help="Skip already translated entries", )