Skip to content

Commit 411f767

Browse files
authored
Merge pull request #533 from XcodesOrg/matt/testLocalizationValidation
adds localization validation on PR's
2 parents 45626e2 + 88b15b9 commit 411f767

File tree

2 files changed

+900
-56
lines changed

2 files changed

+900
-56
lines changed

.github/workflows/xcstrings.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: XCStrings Validation
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
10+
jobs:
11+
test:
12+
runs-on: macos-13
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Clone SwiftPolyglot
17+
run: git clone https://github.com/appdecostudio/SwiftPolyglot.git
18+
19+
- name: validate translations
20+
run: |
21+
swift build --package-path ./SwiftPolyglot --configuration release
22+
swift run --package-path ./SwiftPolyglot swiftpolyglot "ca,de,el,es,fi,fr,hi,it,ja,ko,nl,pl,pt-BR,ru,tr,uk,zh-Hans,zh-Hant" --errorOnMissing

0 commit comments

Comments
 (0)