Skip to content

Commit 7523ec7

Browse files
authored
Merge pull request #780 from newfold-labs/PRESS11-157
Integrate Reusable Azure AI Translation Workflow from Central Repository
2 parents 9e94da8 + e9ab5cb commit 7523ec7

File tree

3 files changed

+35
-24
lines changed

3 files changed

+35
-24
lines changed

.github/workflows/auto-translate.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Check for Updates to Translations
2+
3+
on:
4+
push:
5+
branches:
6+
- 'trunk'
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-onboarding'
26+
secrets:
27+
TRANSLATOR_API_KEY: ${{ secrets.TRANSLATOR_API_KEY }}

.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
@@ -81,6 +81,14 @@
8181
"@i18n-php",
8282
"@i18n-json"
8383
],
84+
"i18n-ci-pre": [
85+
"@i18n-pot",
86+
"@i18n-po"
87+
],
88+
"i18n-ci-post": [
89+
"@i18n-json",
90+
"@i18n-php"
91+
],
8492
"lint": [
8593
"vendor/bin/phpcs . --standard=phpcs.xml"
8694
],

0 commit comments

Comments
 (0)