File tree Expand file tree Collapse file tree 6 files changed +47
-7
lines changed Expand file tree Collapse file tree 6 files changed +47
-7
lines changed Original file line number Diff line number Diff line change 17
17
(
18
18
startsWith(github.event.pull_request.title, '[Bot] ') ||
19
19
startsWith(github.event.pull_request.title, 'Bump ') ||
20
- startsWith(github.event.pull_request.title, 'New Crowdin updates ') ||
20
+ startsWith(github.event.pull_request.title, 'New Crowdin Translations ') ||
21
21
startsWith(github.event.pull_request.title, 'Update Gradle Wrapper from')
22
22
)
23
23
)
Original file line number Diff line number Diff line change
1
+ name : Crowdin Action
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - use-crowdin-action
7
+ schedule :
8
+ # run on each Wednesday
9
+ - cron : ' 2 3 * * 3'
10
+ workflow_dispatch :
11
+
12
+ jobs :
13
+ synchronize-with-crowdin :
14
+ if : github.repository == 'JabRef/jabref'
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
23
+ with :
24
+ upload_sources : true
25
+ upload_translations : false
26
+ upload_language : de
27
+ download_translations : true
28
+ localization_branch_name : l10n_crowdin_translations
29
+ create_pull_request : true
30
+ pull_request_title : ' New Crowdin Translations'
31
+ pull_request_body : ' New Crowdin translations by [Crowdin GH Action](https://github.com/crowdin/github-action)'
32
+ pull_request_base_branch_name : ' main'
33
+ env :
34
+ GITHUB_TOKEN : ${{ secrets.GH_TOKEN_JABREF_MACHINE_PR_APPROVE }}
35
+
36
+ # A numeric ID, found at https://crowdin.com/project/<projectName>/tools/api
37
+ CROWDIN_PROJECT_ID : 294858
38
+
39
+ # Visit https://crowdin.com/settings#api-key to create this token
40
+ CROWDIN_PERSONAL_TOKEN : ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
Original file line number Diff line number Diff line change 14
14
(
15
15
startsWith(github.event.pull_request.title, '[Bot] ') ||
16
16
startsWith(github.event.pull_request.title, 'Bump ') ||
17
- startsWith(github.event.pull_request.title, 'New Crowdin updates ') ||
17
+ startsWith(github.event.pull_request.title, 'New Crowdin Translations ') ||
18
18
startsWith(github.event.pull_request.title, 'Update Gradle Wrapper from')
19
19
)
20
20
)
Original file line number Diff line number Diff line change 15
15
(
16
16
startsWith(github.event.pull_request.title, '[Bot] ') ||
17
17
startsWith(github.event.pull_request.title, 'Bump ') ||
18
- startsWith(github.event.pull_request.title, 'New Crowdin updates ') ||
18
+ startsWith(github.event.pull_request.title, 'New Crowdin Translations ') ||
19
19
startsWith(github.event.pull_request.title, 'Update Gradle Wrapper from')
20
20
)
21
21
)
Original file line number Diff line number Diff line change @@ -331,7 +331,7 @@ jobs:
331
331
(
332
332
startsWith(github.event.pull_request.title, '[Bot] ') ||
333
333
startsWith(github.event.pull_request.title, 'Bump ') ||
334
- startsWith(github.event.pull_request.title, 'New Crowdin updates ') ||
334
+ startsWith(github.event.pull_request.title, 'New Crowdin Translations ') ||
335
335
startsWith(github.event.pull_request.title, 'Update Gradle Wrapper from')
336
336
)
337
337
)
@@ -367,7 +367,7 @@ jobs:
367
367
(
368
368
startsWith(github.event.pull_request.title, '[Bot] ') ||
369
369
startsWith(github.event.pull_request.title, 'Bump ') ||
370
- startsWith(github.event.pull_request.title, 'New Crowdin updates ') ||
370
+ startsWith(github.event.pull_request.title, 'New Crowdin Translations ') ||
371
371
startsWith(github.event.pull_request.title, 'Update Gradle Wrapper from')
372
372
)
373
373
)
Original file line number Diff line number Diff line change 1
1
files :
2
- - source : /src/main/resources/l10n/JabRef_en.properties
3
- translation : /src/main/resources/l10n/JabRef_%two_letters_code%.properties
2
+ - source : /jablib/ src/main/resources/l10n/JabRef_en.properties
3
+ translation : /jablib/ src/main/resources/l10n/JabRef_%two_letters_code%.properties
4
4
languages_mapping :
5
5
two_letters_code :
6
6
pt-BR : pt_BR
You can’t perform that action at this time.
0 commit comments