-
-
Notifications
You must be signed in to change notification settings - Fork 142
36 lines (33 loc) · 1.08 KB
/
translations.yml
File metadata and controls
36 lines (33 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Check translations
on:
pull_request:
branches: [ main, mf2025/main ]
paths:
# Trigger only when files in the public/locales folder change
- 'frontend/public/locales/**'
jobs:
check-translations:
timeout-minutes: 60
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./frontend
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: lts/*
- name: Install dependencies
run: npm ci
- name: Check Translations
working-directory: ${{env.GITHUB_WORKSPACE}}
run: cd frontend; node src/scripts/check-translations.js
- name: Generate Translation Statistics as Markdown
working-directory: ${{env.GITHUB_WORKSPACE}}
run: cd frontend; echo "$(node src/scripts/check-translations.js)" > translation-stats.md
- name: Post Translation Statistics
uses: marocchino/sticky-pull-request-comment@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
path: frontend/translation-stats.md