Skip to content

Commit 3f933d3

Browse files
authored
Setup crowdin for receiving translation through localisation platform (#700)
1 parent 95d5da6 commit 3f933d3

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

.github/workflows/crowdin.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Crowdin Action
2+
3+
on:
4+
schedule:
5+
- cron: "0 */12 * * *"
6+
workflow_dispatch:
7+
8+
permissions:
9+
actions: write
10+
contents: write
11+
pull-requests: write
12+
13+
jobs:
14+
synchronize-with-crowdin:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: crowdin action
22+
uses: crowdin/github-action@v2.7.0
23+
with:
24+
upload_translations: false
25+
download_translations: true
26+
skip_untranslated_files: true
27+
push_translations: true
28+
export_only_approved: true
29+
commit_message: "feat: New Crowdin translations"
30+
create_pull_request: true
31+
pull_request_title: "New Crowdin translations"
32+
pull_request_labels: "enhancement"
33+
base_url: "https://jenkins.crowdin.com"
34+
config: "crowdin.yml"
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
CROWDIN_PROJECT_ID: 32
38+
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}

crowdin.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
files:
2+
- source: "/src/main/resources/io/jenkins/plugins/pipelinegraphview/**/*.properties"
3+
#ignore:
4+
# - "/src/main/resources/io/jenkins/plugins/pipelinegraphview/**/%file_name%_%two_letters_code%.properties"
5+
translation: "/src/main/resources/io/jenkins/plugins/pipelinegraphview/**/%file_name%_%two_letters_code%.properties"
6+
escape_quotes: 1
7+
escape_special_characters: 0
8+
9+
project_id_env: CROWDIN_PROJECT_ID
10+
api_token_env: CROWDIN_PERSONAL_TOKEN

0 commit comments

Comments
 (0)