Skip to content

Commit

Permalink
fix: attempt to run transifex action
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon committed Jul 3, 2024
1 parent 486279c commit 3805107
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/transifex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
12 changes: 12 additions & 0 deletions client/.tx/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[main]
host = https://app.transifex.com

[o:mirlo:p:mirlo:r:mirlo]
file_filter = src/translation/<lang>.json
source_file = src/translation/en.json
type = FILELESS
minimum_perc = 0
resource_name = Mirlo
replace_edited_strings = false
keep_translations = false

0 comments on commit 3805107

Please sign in to comment.