Skip to content

Commit

Permalink
Create translation.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
YashPimple authored Feb 9, 2024
1 parent c03f775 commit b1c8532
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/translation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Check Translations

on:
push:
branches:
- main

jobs:
check-translations:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Install Dependencies
run: yarn install

- name: Generate Chinese Translations
run: yarn write-translations --locale zh

- name: Check for Changes
run: |
if git status --porcelain | grep "i18n/zh"; then
echo "Changes detected in Chinese translations."
else
echo "No changes detected in Chinese translations."
exit 1
fi

0 comments on commit b1c8532

Please sign in to comment.