File tree Expand file tree Collapse file tree 3 files changed +35
-24
lines changed Expand file tree Collapse file tree 3 files changed +35
-24
lines changed Original file line number Diff line number Diff line change
1
+ name : Check for Updates to Translations
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - ' main'
7
+ workflow_dispatch :
8
+
9
+ # Cancels all previous workflow runs for the branch that have not completed.
10
+ concurrency :
11
+ # The concurrency group contains the workflow name and the branch name.
12
+ group : ${{ github.workflow }}-${{ github.ref_name }}
13
+ cancel-in-progress : true
14
+
15
+ permissions : {}
16
+
17
+ jobs :
18
+ translate :
19
+ name : ' Check and update translations'
20
+ permissions :
21
+ contents : write
22
+ pull-requests : write
23
+ uses : newfold-labs/workflows/.github/workflows/reusable-translations.yml@main
24
+ with :
25
+ text_domain : ' wp-module-deactivation'
26
+ secrets :
27
+ TRANSLATOR_API_KEY : ${{ secrets.TRANSLATOR_API_KEY }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 68
68
" @i18n-php" ,
69
69
" @i18n-json"
70
70
],
71
+ "i18n-ci-pre" : [
72
+ " @i18n-pot" ,
73
+ " @i18n-po"
74
+ ],
75
+ "i18n-ci-post" : [
76
+ " @i18n-json" ,
77
+ " @i18n-php"
78
+ ],
71
79
"i18n-json" : " rm -f languages/*.json && vendor/bin/wp i18n make-json ./languages --no-purge --pretty-print" ,
72
80
"i18n-mo" : " vendor/bin/wp i18n make-mo ./languages" ,
73
81
"i18n-php" : " vendor/bin/wp i18n make-php ./languages" ,
You can’t perform that action at this time.
0 commit comments