Skip to content

Commit ec744dc

Browse files
committed
update crowdin workflow to format and validate
1 parent c70c3fa commit ec744dc

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/crowdin-pull.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,17 @@ jobs:
7979
run: npm install
8080

8181
- name: Compile Updated translations
82-
run: |
83-
npm run locale
84-
(git add . && git commit -m "Compiled Translations" && git push origin ${{ env.localization_branch_name }}) || true
82+
run: npm run locale
83+
84+
- name: Format translations
85+
run: npx prettier --write --ignore-path .gitignore --ignore-path .prettierignore i18n/
8586

8687
- name: Validate translations
8788
run: |
8889
npm run validate:translations || (echo "Translation validation failed. Please check the errors above." && exit 1)
90+
91+
- name: Commit and push formatted and compiled translations
92+
run: |
93+
git add .
94+
git commit -m "Format and compile translations" || true
95+
git push origin ${{ env.localization_branch_name }} || true

0 commit comments

Comments
 (0)