Skip to content

Commit bb56047

Browse files
authored
Add SwiftPolyglot to validate localizations (Dimillian#2011)
* Add step to validate translations on PRs without errors * Move workflow * Get specific release of SwiftPolyglot
1 parent 924ada6 commit bb56047

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Validate Translations
2+
3+
on:
4+
pull_request:
5+
types: [synchronize, opened, reopened, labeled, unlabeled, edited]
6+
7+
jobs:
8+
main:
9+
name: Validate Translations
10+
runs-on: macOS-latest
11+
steps:
12+
- name: git checkout
13+
uses: actions/checkout@v3
14+
15+
- name: ruby versions
16+
run: |
17+
ruby --version
18+
gem --version
19+
bundler --version
20+
21+
- name: ruby setup
22+
uses: ruby/setup-ruby@v1
23+
with:
24+
ruby-version: 3.3
25+
bundler-cache: true
26+
27+
# additional steps here, if needed
28+
29+
- name: Clone SwiftPolyglot
30+
run: git clone https://github.com/appdecostudio/SwiftPolyglot.git --branch 0.2.0
31+
32+
- name: Build and Run SwiftPolyglot
33+
run: |
34+
swift build --package-path ./SwiftPolyglot --configuration release
35+
swift run --package-path ./SwiftPolyglot swiftpolyglot "en,eu,be,ca,zh-Hans,zh-Hant,nl,en-GB,fr,de,it,ja,ko,nb,pl,pt-BR,es,tr,uk"

0 commit comments

Comments
 (0)