diff --git a/.github/workflows/transifex.yml b/.github/workflows/transifex.yml index a7dc366cb..f146057c3 100644 --- a/.github/workflows/transifex.yml +++ b/.github/workflows/transifex.yml @@ -17,17 +17,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: install node - uses: actions/setup-node@v4 + - name: Push source file using transifex client + uses: transifex/cli-action@v2 with: - node-version-file: ".nvmrc" - cache: "npm" - - - name: Change directory - run: cd client - - - name: Push transifex - run: | - TRANSIFEX_TOKEN=${{ secrets.TRANSIFEX_TOKEN }} - TRANSIFEX_SECRET=${{ secrets.TRANSIFEX_SECRET }} - npx txjs-cli push src/translation/en.json --parser=i18next + token: ${{ secrets.TRANSIFEX_API_TOKEN }} diff --git a/client/.tx/config b/client/.tx/config new file mode 100755 index 000000000..5994eb734 --- /dev/null +++ b/client/.tx/config @@ -0,0 +1,12 @@ +[main] +host = https://app.transifex.com + +[o:mirlo:p:mirlo:r:mirlo] +file_filter = src/translation/.json +source_file = src/translation/en.json +type = FILELESS +minimum_perc = 0 +resource_name = Mirlo +replace_edited_strings = false +keep_translations = false +