forked from cogwheel0/conduit
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (28 loc) · 981 Bytes
/
Copy pathl10n.yml
File metadata and controls
30 lines (28 loc) · 981 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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.