Skip to content

Commit 1cf0297

Browse files
committed
Adding check so that translations refuse modifications aside from en_US
1 parent 44aed55 commit 1cf0297

1 file changed

Lines changed: 24 additions & 1 deletion

File tree

.github/workflows/deploy-test.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ jobs:
6666
NODE_ENV: development
6767
VITE_TEST_SERVER_AUTH: "admin:opencast"
6868

69-
7069
- name: Prepare git
7170
run: |
7271
git config --global user.name "Admin Interface Deployment Bot"
@@ -139,3 +138,27 @@ jobs:
139138
](https://test.admin-interface.opencast.org/${{ steps.build-path.outputs.build }}).
140139
141140
It might take a few minutes for it to become available.
141+
142+
translations:
143+
name: Translations only via Crowdin
144+
if: github.repository_owner == 'opencast'
145+
runs-on: ubuntu-latest
146+
147+
steps:
148+
- name: Checkout Sources
149+
uses: actions/checkout@v4
150+
151+
- name: Get changed locale files
152+
uses: dorny/paths-filter@v3
153+
id: filter_locales
154+
with:
155+
filters: | # !(pattern) matches anything but pattern
156+
locales:
157+
- 'src/i18n/org/opencastproject/adminui/languages/!lang-(en_US)*.json'
158+
159+
- name: Check for changes in translations
160+
if: steps.filter_locales.outputs.locales == true
161+
uses: actions/github-script@v7
162+
with:
163+
script: |
164+
core.setFailed('You should not alter translations outside of Crowdin.')

0 commit comments

Comments
 (0)