Skip to content

Commit 9072786

Browse files
committed
fix: re-add crowdin action and update crowdin
1 parent 5961fef commit 9072786

File tree

3 files changed

+172
-12
lines changed

3 files changed

+172
-12
lines changed

.github/workflows/crowdin-action.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Crowdin Action
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
8+
jobs:
9+
synchronize-with-crowdin:
10+
if: false
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Provision
18+
uses: ./.github/actions/provision
19+
20+
- name: Extract lingui strings
21+
working-directory: ./apps/mobile
22+
run: |
23+
pnpm lingui
24+
- name: crowdin action
25+
uses: crowdin/github-action@v2
26+
with:
27+
upload_sources: true
28+
upload_translations: false
29+
download_translations: false
30+
create_pull_request: false
31+
config: apps/mobile/crowdin.yml
32+
env:
33+
# A classic GitHub Personal Access Token with the 'repo' scope selected (the user should have write access to the repository).
34+
GITHUB_TOKEN: ${{ secrets.LEATHER_BOT }}
35+
36+
# A numeric ID, found at https://crowdin.com/project/<projectName>/tools/api
37+
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
38+
39+
# Visit https://crowdin.com/settings#api-key to create this token
40+
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}

apps/mobile/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
"@babel/core": "7.24.6",
153153
"@babel/plugin-transform-class-static-block": "7.26.0",
154154
"@babel/runtime": "7.26.0",
155-
"@crowdin/cli": "4.1.1",
155+
"@crowdin/cli": "4.6.1",
156156
"@leather.io/bitcoin": "workspace:*",
157157
"@leather.io/prettier-config": "workspace:*",
158158
"@lingui/cli": "4.11.1",

0 commit comments

Comments
 (0)