Skip to content

Commit 8c8087a

Browse files
committed
Adjust new translation workflow
1 parent 1c960ab commit 8c8087a

File tree

3 files changed

+9
-26
lines changed

3 files changed

+9
-26
lines changed

.github/workflows/auto-translate.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@ jobs:
2020
permissions:
2121
contents: write
2222
pull-requests: write
23-
uses: newfold-labs/workflows/.github/workflows/reusable-azure-ai-translate.yml@main
23+
uses: newfold-labs/workflows/.github/workflows/reusable-translations.yml@main
2424
with:
2525
text_domain: 'wp-module-deactivation'
2626
secrets:
2727
TRANSLATOR_API_KEY: ${{ secrets.TRANSLATOR_API_KEY }}
28-
NEWFOLD_ACCESS_TOKEN: ${{ secrets.NEWFOLD_ACCESS_TOKEN }}

.github/workflows/i18n-update.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

composer.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@
6868
"@i18n-php",
6969
"@i18n-json"
7070
],
71+
"i18n-ci-pre": [
72+
"@i18n-pot",
73+
"@i18n-po"
74+
],
75+
"i18n-ci-post": [
76+
"@i18n-json",
77+
"@i18n-php"
78+
],
7179
"i18n-json": "rm -f languages/*.json && vendor/bin/wp i18n make-json ./languages --no-purge --pretty-print",
7280
"i18n-mo": "vendor/bin/wp i18n make-mo ./languages",
7381
"i18n-php": "vendor/bin/wp i18n make-php ./languages",

0 commit comments

Comments
 (0)