Skip to content

Commit 7a17d08

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

File tree

4 files changed

+46
-4
lines changed

4 files changed

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