Skip to content

Commit fec3431

Browse files
committed
[TASK] Replace crowdin config with recommendation
1 parent 31a1474 commit fec3431

File tree

4 files changed

+48
-4
lines changed

4 files changed

+48
-4
lines changed

.crowdin.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
project_id_env: "CROWDIN_PROJECT_ID"
2+
api_token_env: "CROWDIN_PERSONAL_TOKEN"
3+
base_path: "."
4+
5+
preserve_hierarchy: true
6+
7+
files:
8+
- source: /Configuration/Sets/*/*.xlf
9+
translation: /%original_path%/%two_letters_code%.%original_file_name%
10+
ignore:
11+
- /**/%two_letters_code%.%original_file_name%
12+
13+
- source: /Resources/Private/Language/*.xlf
14+
translation: /Resources/Private/Language/%two_letters_code%.%file_name%.xlf
15+
ignore:
16+
- /**/%two_letters_code%.%original_file_name%

.github/workflows/crowdin.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Crowdin
2+
3+
on:
4+
workflow_dispatch:
5+
6+
push:
7+
branches:
8+
- develop
9+
paths:
10+
- '**.xlf'
11+
12+
jobs:
13+
sync:
14+
name: Synchronize with Crowdin
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v5
18+
19+
- name: Upload sources
20+
uses: crowdin/github-action@v2
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
23+
with:
24+
config: '.crowdin.yml'
25+
project_id: ${{ secrets.CROWDIN_PROJECT_ID }}
26+
token: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
27+
crowdin_branch_name: 'l10n_develop'
28+
upload_sources: true
29+
upload_translations: false
30+
download_sources: false
31+
download_translations: true

.github/workflows/pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55

66
push:
7-
branches: [ develop, main ]
7+
branches: [ main ]
88

99
permissions:
1010
contents: write

crowdin.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)