Skip to content

Commit 0b9ef00

Browse files
committed
fix: format code and improve localization error message
1 parent 0dab361 commit 0b9ef00

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

lib/src/ui/l10n/sec_locale.dart

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ import 'sec_locale_en.dart';
6363
/// property.
6464
abstract class SecLocalizations {
6565
SecLocalizations(String locale)
66-
: localeName = intl.Intl.canonicalizedLocale(locale.toString());
66+
: localeName = intl.Intl.canonicalizedLocale(locale.toString());
6767

6868
final String localeName;
6969

@@ -86,16 +86,16 @@ abstract class SecLocalizations {
8686
/// of delegates is preferred or required.
8787
static const List<LocalizationsDelegate<dynamic>> localizationsDelegates =
8888
<LocalizationsDelegate<dynamic>>[
89-
delegate,
90-
GlobalMaterialLocalizations.delegate,
91-
GlobalCupertinoLocalizations.delegate,
92-
GlobalWidgetsLocalizations.delegate,
93-
];
89+
delegate,
90+
GlobalMaterialLocalizations.delegate,
91+
GlobalCupertinoLocalizations.delegate,
92+
GlobalWidgetsLocalizations.delegate,
93+
];
9494

9595
/// A list of this localizations delegate's supported locales.
9696
static const List<Locale> supportedLocales = <Locale>[
9797
Locale('de'),
98-
Locale('en'),
98+
Locale('en')
9999
];
100100

101101
/// No description provided for @successfullyVerified.
@@ -258,9 +258,8 @@ SecLocalizations lookupSecLocalizations(Locale locale) {
258258
}
259259

260260
throw FlutterError(
261-
'SecLocalizations.delegate failed to load unsupported locale "$locale". This is likely '
262-
'an issue with the localizations generation tool. Please file an issue '
263-
'on GitHub with a reproducible sample app and the gen-l10n configuration '
264-
'that was used.',
265-
);
261+
'SecLocalizations.delegate failed to load unsupported locale "$locale". This is likely '
262+
'an issue with the localizations generation tool. Please file an issue '
263+
'on GitHub with a reproducible sample app and the gen-l10n configuration '
264+
'that was used.');
266265
}

0 commit comments

Comments
 (0)