@@ -105,13 +105,15 @@ import 'quill_localizations_zh.dart';
105
105
/// property.
106
106
abstract class FlutterQuillLocalizations {
107
107
FlutterQuillLocalizations (String locale)
108
- : localeName = intl.Intl .canonicalizedLocale (locale.toString ());
108
+ : localeName = intl.Intl .canonicalizedLocale (locale.toString ());
109
109
110
110
final String localeName;
111
111
112
112
static FlutterQuillLocalizations ? of (BuildContext context) {
113
113
return Localizations .of <FlutterQuillLocalizations >(
114
- context, FlutterQuillLocalizations );
114
+ context,
115
+ FlutterQuillLocalizations ,
116
+ );
115
117
}
116
118
117
119
static const LocalizationsDelegate <FlutterQuillLocalizations > delegate =
@@ -129,11 +131,11 @@ abstract class FlutterQuillLocalizations {
129
131
/// of delegates is preferred or required.
130
132
static const List <LocalizationsDelegate <dynamic >> localizationsDelegates =
131
133
< LocalizationsDelegate <dynamic >> [
132
- delegate,
133
- GlobalMaterialLocalizations .delegate,
134
- GlobalCupertinoLocalizations .delegate,
135
- GlobalWidgetsLocalizations .delegate,
136
- ];
134
+ delegate,
135
+ GlobalMaterialLocalizations .delegate,
136
+ GlobalCupertinoLocalizations .delegate,
137
+ GlobalWidgetsLocalizations .delegate,
138
+ ];
137
139
138
140
/// A list of this localizations delegate's supported locales.
139
141
static const List <Locale > supportedLocales = < Locale > [
@@ -186,7 +188,7 @@ abstract class FlutterQuillLocalizations {
186
188
Locale ('vi' ),
187
189
Locale ('zh' ),
188
190
Locale ('zh' , 'CN' ),
189
- Locale ('zh' , 'HK' )
191
+ Locale ('zh' , 'HK' ),
190
192
];
191
193
192
194
/// No description provided for @pasteLink.
@@ -833,56 +835,57 @@ class _FlutterQuillLocalizationsDelegate
833
835
@override
834
836
Future <FlutterQuillLocalizations > load (Locale locale) {
835
837
return SynchronousFuture <FlutterQuillLocalizations >(
836
- lookupFlutterQuillLocalizations (locale));
838
+ lookupFlutterQuillLocalizations (locale),
839
+ );
837
840
}
838
841
839
842
@override
840
843
bool isSupported (Locale locale) => < String > [
841
- 'ar' ,
842
- 'bg' ,
843
- 'bn' ,
844
- 'bs' ,
845
- 'ca' ,
846
- 'cs' ,
847
- 'da' ,
848
- 'de' ,
849
- 'el' ,
850
- 'en' ,
851
- 'es' ,
852
- 'fa' ,
853
- 'fr' ,
854
- 'gu' ,
855
- 'he' ,
856
- 'hi' ,
857
- 'hr' ,
858
- 'hu' ,
859
- 'id' ,
860
- 'it' ,
861
- 'ja' ,
862
- 'km' ,
863
- 'ko' ,
864
- 'ku' ,
865
- 'mk' ,
866
- 'ms' ,
867
- 'ne' ,
868
- 'nl' ,
869
- 'no' ,
870
- 'pl' ,
871
- 'pt' ,
872
- 'ro' ,
873
- 'ru' ,
874
- 'sk' ,
875
- 'sr' ,
876
- 'sv' ,
877
- 'sw' ,
878
- 'th' ,
879
- 'tk' ,
880
- 'tr' ,
881
- 'uk' ,
882
- 'ur' ,
883
- 'vi' ,
884
- 'zh'
885
- ].contains (locale.languageCode);
844
+ 'ar' ,
845
+ 'bg' ,
846
+ 'bn' ,
847
+ 'bs' ,
848
+ 'ca' ,
849
+ 'cs' ,
850
+ 'da' ,
851
+ 'de' ,
852
+ 'el' ,
853
+ 'en' ,
854
+ 'es' ,
855
+ 'fa' ,
856
+ 'fr' ,
857
+ 'gu' ,
858
+ 'he' ,
859
+ 'hi' ,
860
+ 'hr' ,
861
+ 'hu' ,
862
+ 'id' ,
863
+ 'it' ,
864
+ 'ja' ,
865
+ 'km' ,
866
+ 'ko' ,
867
+ 'ku' ,
868
+ 'mk' ,
869
+ 'ms' ,
870
+ 'ne' ,
871
+ 'nl' ,
872
+ 'no' ,
873
+ 'pl' ,
874
+ 'pt' ,
875
+ 'ro' ,
876
+ 'ru' ,
877
+ 'sk' ,
878
+ 'sr' ,
879
+ 'sv' ,
880
+ 'sw' ,
881
+ 'th' ,
882
+ 'tk' ,
883
+ 'tr' ,
884
+ 'uk' ,
885
+ 'ur' ,
886
+ 'vi' ,
887
+ 'zh' ,
888
+ ].contains (locale.languageCode);
886
889
887
890
@override
888
891
bool shouldReload (_FlutterQuillLocalizationsDelegate old) => false ;
@@ -1028,8 +1031,9 @@ FlutterQuillLocalizations lookupFlutterQuillLocalizations(Locale locale) {
1028
1031
}
1029
1032
1030
1033
throw FlutterError (
1031
- 'FlutterQuillLocalizations.delegate failed to load unsupported locale "$locale ". This is likely '
1032
- 'an issue with the localizations generation tool. Please file an issue '
1033
- 'on GitHub with a reproducible sample app and the gen-l10n configuration '
1034
- 'that was used.' );
1034
+ 'FlutterQuillLocalizations.delegate failed to load unsupported locale "$locale ". This is likely '
1035
+ 'an issue with the localizations generation tool. Please file an issue '
1036
+ 'on GitHub with a reproducible sample app and the gen-l10n configuration '
1037
+ 'that was used.' ,
1038
+ );
1035
1039
}
0 commit comments