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