Skip to content

chore: clean up in-code uk translations | FC-55 #1

chore: clean up in-code uk translations | FC-55

chore: clean up in-code uk translations | FC-55 #1

name: Validate translations
on:
workflow_dispatch:
push:
branches: [ develop ]
pull_request:
jobs:
translations:
name: "${{ matrix.case.name }}"
runs-on: macos-14
strategy:
matrix:
case:
- name: Test clean_translations
command: |
make clean_translations
- name: Test extract_translations
command: |
make extract_translations
echo "Ensure combined localization file exists"
test -f I18N/I18N/en.lproj/Localizable.strings
- name: Test pull_translations
command:
make pull_translations
echo "Files are split properly"
test -f Authorization/Authorization/uk.lproj/Localizable.strings
steps:
- uses: nschloe/[email protected]
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Use Python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install translations requirements
run: make translation_requirements
- name: SwiftLint
run:
bundle exec fastlane linting
- name: Run tests
run: bundle exec fastlane unit_tests
- name: "${{ matrix.case.name }}"
run: "${{ matrix.case.command }}"