Files
iiEsaywebUIapp/.github/workflows/l10n.yml
2025-09-07 13:17:34 +05:30

31 lines
981 B
YAML

name: L10n
on:
pull_request:
paths:
- 'lib/l10n/*.arb'
push:
paths:
- 'lib/l10n/*.arb'
jobs:
l10n:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: flutter --version
- run: flutter pub get
- run: flutter pub run build_runner build --delete-conflicting-outputs
- name: Generate localizations
run: flutter gen-l10n --arb-dir=lib/l10n --output-dir=lib/l10n --template-arb-file=app_en.arb --output-localization-file=app_localizations.dart
- name: Analyze (non-fatal infos/warnings)
run: flutter analyze --no-fatal-warnings --no-fatal-infos
- name: Verify ARB descriptions
run: dart run tool/verify_arb_descriptions.dart
- name: Validate ARB locales and placeholders
run: dart run tool/validate_arb_locales.dart
# Generated files are ignored; no diff check needed.