Skip to content

Commit

Permalink
Fix site i18n workflow (#1890)
Browse files Browse the repository at this point in the history
- Clone translations into demo/site/lang/comet-demo-lang
- Update site translations
  • Loading branch information
johnnyomair authored Mar 26, 2024
1 parent aad6fde commit 8a4c051
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,20 @@ jobs:
token: ${{ secrets.VIVID_PLANET_BOT_TOKEN }}
path: "demo/admin/lang/comet-lang"

- name: "Demo: Clone translations"
- name: "Demo Admin: Clone translations"
uses: actions/checkout@v3
with:
repository: vivid-planet/comet-demo-lang
token: ${{ secrets.VIVID_PLANET_BOT_TOKEN }}
path: "demo/admin/lang/comet-demo-lang"

- name: "Demo Site: Clone translations"
uses: actions/checkout@v3
with:
repository: vivid-planet/comet-demo-lang
token: ${{ secrets.VIVID_PLANET_BOT_TOKEN }}
path: "demo/site/lang/comet-demo-lang"

- uses: pnpm/action-setup@v2
with:
version: 8
Expand All @@ -50,7 +57,7 @@ jobs:
pnpm run intl:extract
cp -r lang/* demo/admin/lang/comet-lang/
- name: "Library: Update translateable strings"
- name: "Library: Update translatable strings"
uses: EndBug/add-and-commit@v9
with:
cwd: "./demo/admin/lang/comet-lang"
Expand All @@ -67,7 +74,12 @@ jobs:
pnpm run intl:extract
cp -r lang-extracted/* lang/comet-demo-lang/site
- name: "Demo: Update translateable strings"
- name: "Demo Admin: Update translatable strings"
uses: EndBug/add-and-commit@v9
with:
cwd: "./demo/admin/lang/comet-demo-lang"

- name: "Demo Site: Update translatable strings"
uses: EndBug/add-and-commit@v9
with:
cwd: "./demo/site/lang/comet-demo-lang"

0 comments on commit 8a4c051

Please sign in to comment.