From 4826c986eeae9ac9fb7cc93c63c0c418e3edc902 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 14 Jun 2025 22:23:58 -0700 Subject: [PATCH] Update localization script --- .github/workflows/translation.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/translation.yml b/.github/workflows/translation.yml index f1ccf63..c6f62ce 100644 --- a/.github/workflows/translation.yml +++ b/.github/workflows/translation.yml @@ -15,7 +15,11 @@ jobs: - run: | git config --global user.name "Traccar Bot" git config --global user.email "support@traccar.org" - git add lib/l10n/*.arb ':!lib/l10n/app_en.arb' + for f in lib/l10n/*.arb; do + [[ $f == */app_en.arb ]] && continue + diff -q "$f" lib/l10n/app_en.arb && continue + git diff --quiet -- "$f" || git add "$f" + done git diff --cached --quiet || git commit -m "Update translations" git push env: