Add script to check language lists stay in sync

This is also run on commits, so we get alerted when we forget to add new locales
This commit is contained in:
Roland Geider
2026-05-18 10:27:25 +02:00
parent 475442e779
commit dcebb3a2e7
6 changed files with 303 additions and 45 deletions

View File

@@ -5,12 +5,18 @@ on:
- '**.dart'
- 'pubspec.yaml'
- 'analysis_options.yaml'
- 'lib/l10n/**'
- 'ios/Runner/Info.plist'
- 'android/app/src/main/res/xml/locales_config.xml'
pull_request:
branches: [ master, ]
paths:
- '**/*.dart'
- 'pubspec.yaml'
- 'analysis_options.yaml'
- 'lib/l10n/**'
- 'ios/Runner/Info.plist'
- 'android/app/src/main/res/xml/locales_config.xml'
- '.github/actions/flutter-common/action.yml'
- '.github/workflows/analyze.yml'
workflow_call:
@@ -34,3 +40,6 @@ jobs:
- name: Analyze
run: flutter analyze --no-fatal-infos --no-fatal-warnings
- name: Check locale lists are in sync
run: dart run tool/check_locales.dart