From 6292009378861be45a2f5b1bcb881cd4b91052f2 Mon Sep 17 00:00:00 2001 From: Viren070 Date: Tue, 26 Nov 2024 01:41:59 +0000 Subject: [PATCH] i18n(ci): sync crowdin on deploy workflow --- .github/workflows/build.yml | 3 +++ package.json | 1 + 2 files changed, 4 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fea1b95..e81753e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,6 +22,9 @@ jobs: - name: Install dependencies run: npm ci + - name: Crowdin Sync + run: npm run crowdin:sync + - name: Build website run: npm run build diff --git a/package.json b/package.json index 28546b6..c2cb158 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "serve": "docusaurus serve", "write-translations": "docusaurus write-translations", "crowdin": "crowdin", + "crowdin:sync": "docusaurus write-translations && crowdin upload && crowdin download", "write-heading-ids": "docusaurus write-heading-ids", "typecheck": "tsc" },