-
Notifications
You must be signed in to change notification settings - Fork 32
150 lines (138 loc) · 5.77 KB
/
crowdin-actions.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
name: Synchronise with Crowdin
on:
workflow_dispatch:
schedule:
- cron: '0 3 * * *'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
jobs:
synchronise-with-crowdin:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Upload or update source files to Crowdin
uses: crowdin/[email protected]
with:
upload_sources: true
- name: Download Chinese (simplified) translations
uses: crowdin/[email protected]
with:
upload_sources: false
download_translations: true
download_language: 'zh-CN'
skip_untranslated_files: true
export_only_approved: true
push_translations: true
commit_message: 'Update Chinese (simplified) Crowdin translations by Github Action'
localization_branch_name: translation-zh-cn
create_pull_request: true
pull_request_title: 'Update Chinese (simplified) language translations'
pull_request_body: 'This pull request will add/update Chinese (simplified) language files from Crowdin.'
pull_request_labels: 'internationalization'
pull_request_base_branch_name: develop
config: crowdin.yaml
- name: Download French translations
uses: crowdin/[email protected]
with:
upload_sources: false
download_translations: true
download_language: 'fr'
skip_untranslated_files: true
export_only_approved: true
push_translations: true
commit_message: 'Update French Crowdin translations by Github Action'
localization_branch_name: translation-fr
create_pull_request: true
pull_request_title: 'Update French language translations'
pull_request_body: 'This pull request will add/update French language files from Crowdin.'
pull_request_labels: 'internationalization'
pull_request_base_branch_name: develop
config: crowdin.yaml
- name: Download German translations
uses: crowdin/[email protected]
with:
upload_sources: false
download_translations: true
download_language: 'de'
skip_untranslated_files: true
export_only_approved: true
push_translations: true
commit_message: 'Update German Crowdin translations by Github Action'
localization_branch_name: translation-de
create_pull_request: true
pull_request_title: 'Update German language translations'
pull_request_body: 'This pull request will add/update German language files from Crowdin.'
pull_request_labels: 'internationalization'
pull_request_base_branch_name: develop
config: crowdin.yaml
- name: Download Indonesian translations
uses: crowdin/[email protected]
with:
upload_sources: false
download_translations: true
download_language: 'id'
skip_untranslated_files: true
export_only_approved: true
push_translations: true
commit_message: 'Update Indonesian Crowdin translations by Github Action'
localization_branch_name: translation-id
create_pull_request: true
pull_request_title: 'Update Indonesian language translations'
pull_request_body: 'This pull request will add/update Indonesian language files from Crowdin.'
pull_request_labels: 'internationalization'
pull_request_base_branch_name: develop
config: crowdin.yaml
- name: Download Italian translations
uses: crowdin/[email protected]
with:
upload_sources: false
download_translations: true
download_language: 'it'
skip_untranslated_files: true
export_only_approved: true
push_translations: true
commit_message: 'Update Italian Crowdin translations by Github Action'
localization_branch_name: translation-it
create_pull_request: true
pull_request_title: 'Update Italian language translations'
pull_request_body: 'This pull request will add/update Italian language files from Crowdin.'
pull_request_labels: 'internationalization'
pull_request_base_branch_name: develop
config: crowdin.yaml
- name: Download Te Reo Māori translations
uses: crowdin/[email protected]
with:
upload_sources: false
download_translations: true
download_language: 'mi'
skip_untranslated_files: true
export_only_approved: true
push_translations: true
commit_message: 'Update Te Reo Māori Crowdin translations by Github Action'
localization_branch_name: translation-mi
create_pull_request: true
pull_request_title: 'Update Te Reo Māori language translations'
pull_request_body: 'This pull request will add/update Te Reo Māori language files from Crowdin.'
pull_request_labels: 'internationalization'
pull_request_base_branch_name: develop
config: crowdin.yaml
- name: Download Turkish translations
uses: crowdin/[email protected]
with:
upload_sources: false
download_translations: true
download_language: 'tr'
skip_untranslated_files: true
export_only_approved: true
push_translations: true
commit_message: 'Update Turkish Crowdin translations by Github Action'
localization_branch_name: translation-tr
create_pull_request: true
pull_request_title: 'Update Turkish language translations'
pull_request_body: 'This pull request will add/update Turkish language files from Crowdin.'
pull_request_labels: 'internationalization'
pull_request_base_branch_name: develop
config: crowdin.yaml