diff --git a/apps/app_seeds/lib/app.dart b/apps/app_seeds/lib/app.dart index 9becb1e..56fa473 100644 --- a/apps/app_seeds/lib/app.dart +++ b/apps/app_seeds/lib/app.dart @@ -267,7 +267,6 @@ class TaneApp extends StatelessWidget { /// localizations can serve. Asturian (`ast`) has none, so it borrows Spanish /// (`es`) for the framework chrome; the app's own strings stay Asturian (they /// come from slang, not from `Localizations`). All other locales pass through. -@visibleForTesting Locale materialLocaleFor(Locale locale) => locale.languageCode == 'ast' ? const Locale('es') : locale; diff --git a/apps/app_seeds/lib/bootstrap.dart b/apps/app_seeds/lib/bootstrap.dart index 2dfe373..e8a2430 100644 --- a/apps/app_seeds/lib/bootstrap.dart +++ b/apps/app_seeds/lib/bootstrap.dart @@ -112,7 +112,9 @@ class BootstrapSplash extends StatelessWidget { return MaterialApp( debugShowCheckedModeBanner: false, theme: buildTaneTheme(), - locale: TranslationProvider.of(context).flutterLocale, + // Asturian (`ast`) has no bundled Material/Cupertino localizations, so map + // it to Spanish for the framework chrome — same as the main app (app.dart). + locale: materialLocaleFor(TranslationProvider.of(context).flutterLocale), supportedLocales: AppLocaleUtils.supportedLocales, localizationsDelegates: const [ GlobalMaterialLocalizations.delegate,