diff --git a/apps/app_seeds/lib/app.dart b/apps/app_seeds/lib/app.dart index 8593a74..afe5bc5 100644 --- a/apps/app_seeds/lib/app.dart +++ b/apps/app_seeds/lib/app.dart @@ -256,7 +256,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 34b58db..7e1d04a 100644 --- a/apps/app_seeds/lib/bootstrap.dart +++ b/apps/app_seeds/lib/bootstrap.dart @@ -110,7 +110,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,