From 66e2396983aeca0b26e34732e6001a9dc38435dc Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 5 Jun 2025 22:06:28 -0700 Subject: [PATCH] Try and fix localization --- .github/workflows/translation.yml | 5 +---- .tx/config | 8 ++++++++ 2 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 .tx/config diff --git a/.github/workflows/translation.yml b/.github/workflows/translation.yml index 0297b69..dbac4f0 100644 --- a/.github/workflows/translation.yml +++ b/.github/workflows/translation.yml @@ -11,10 +11,7 @@ jobs: - run: git config --global user.email "actions@github.com" && git config --global user.name "actions" - run: pip install transifex-client - run: echo -e "[https://www.transifex.com]\ntoken = ${{ secrets.TRANSIFEX_TOKEN }}" > ~/.transifexrc - - run: | - tx init - tx set --auto-local -r traccar.client "lib/l10n/.arb" --source-lang en --type KEYVALUEJSON - tx pull -a + - run: tx pull -a - run: | git config --global user.name "Traccar Bot" git config --global user.email "support@traccar.org" diff --git a/.tx/config b/.tx/config new file mode 100644 index 0000000..2504808 --- /dev/null +++ b/.tx/config @@ -0,0 +1,8 @@ +[main] +host = https://www.transifex.com + +[traccar.client] +file_filter = lib/l10n/.arb +source_file = lib/l10n/app_en.arb +source_lang = en +type = KEYVALUEJSON