chore: prepare for weblate

This commit is contained in:
cogwheel0
2025-09-07 12:22:02 +05:30
parent 0116a5be7b
commit fcbf41a9dd
14 changed files with 1177 additions and 502 deletions

30
.github/workflows/l10n.yml vendored Normal file
View File

@@ -0,0 +1,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
run: flutter analyze
- 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.