@@ -17,6 +17,7 @@ import 'quill_localizations_el.dart';
1717import 'quill_localizations_en.dart' ;
1818import 'quill_localizations_es.dart' ;
1919import 'quill_localizations_fa.dart' ;
20+ import 'quill_localizations_fi.dart' ;
2021import 'quill_localizations_fr.dart' ;
2122import 'quill_localizations_gu.dart' ;
2223import 'quill_localizations_he.dart' ;
@@ -105,15 +106,13 @@ import 'quill_localizations_zh.dart';
105106/// property.
106107abstract class FlutterQuillLocalizations {
107108 FlutterQuillLocalizations (String locale)
108- : localeName = intl.Intl .canonicalizedLocale (locale.toString ());
109+ : localeName = intl.Intl .canonicalizedLocale (locale.toString ());
109110
110111 final String localeName;
111112
112113 static FlutterQuillLocalizations ? of (BuildContext context) {
113114 return Localizations .of <FlutterQuillLocalizations >(
114- context,
115- FlutterQuillLocalizations ,
116- );
115+ context, FlutterQuillLocalizations );
117116 }
118117
119118 static const LocalizationsDelegate <FlutterQuillLocalizations > delegate =
@@ -131,11 +130,11 @@ abstract class FlutterQuillLocalizations {
131130 /// of delegates is preferred or required.
132131 static const List <LocalizationsDelegate <dynamic >> localizationsDelegates =
133132 < LocalizationsDelegate <dynamic >> [
134- delegate,
135- GlobalMaterialLocalizations .delegate,
136- GlobalCupertinoLocalizations .delegate,
137- GlobalWidgetsLocalizations .delegate,
138- ];
133+ delegate,
134+ GlobalMaterialLocalizations .delegate,
135+ GlobalCupertinoLocalizations .delegate,
136+ GlobalWidgetsLocalizations .delegate,
137+ ];
139138
140139 /// A list of this localizations delegate's supported locales.
141140 static const List <Locale > supportedLocales = < Locale > [
@@ -152,6 +151,7 @@ abstract class FlutterQuillLocalizations {
152151 Locale ('en' , 'US' ),
153152 Locale ('es' ),
154153 Locale ('fa' ),
154+ Locale ('fi' ),
155155 Locale ('fr' ),
156156 Locale ('gu' ),
157157 Locale ('he' ),
@@ -188,7 +188,7 @@ abstract class FlutterQuillLocalizations {
188188 Locale ('vi' ),
189189 Locale ('zh' ),
190190 Locale ('zh' , 'CN' ),
191- Locale ('zh' , 'HK' ),
191+ Locale ('zh' , 'HK' )
192192 ];
193193
194194 /// No description provided for @pasteLink.
@@ -835,57 +835,57 @@ class _FlutterQuillLocalizationsDelegate
835835 @override
836836 Future <FlutterQuillLocalizations > load (Locale locale) {
837837 return SynchronousFuture <FlutterQuillLocalizations >(
838- lookupFlutterQuillLocalizations (locale),
839- );
838+ lookupFlutterQuillLocalizations (locale));
840839 }
841840
842841 @override
843842 bool isSupported (Locale locale) => < String > [
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);
843+ 'ar' ,
844+ 'bg' ,
845+ 'bn' ,
846+ 'bs' ,
847+ 'ca' ,
848+ 'cs' ,
849+ 'da' ,
850+ 'de' ,
851+ 'el' ,
852+ 'en' ,
853+ 'es' ,
854+ 'fa' ,
855+ 'fi' ,
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);
889889
890890 @override
891891 bool shouldReload (_FlutterQuillLocalizationsDelegate old) => false ;
@@ -964,6 +964,8 @@ FlutterQuillLocalizations lookupFlutterQuillLocalizations(Locale locale) {
964964 return FlutterQuillLocalizationsEs ();
965965 case 'fa' :
966966 return FlutterQuillLocalizationsFa ();
967+ case 'fi' :
968+ return FlutterQuillLocalizationsFi ();
967969 case 'fr' :
968970 return FlutterQuillLocalizationsFr ();
969971 case 'gu' :
@@ -1031,9 +1033,8 @@ FlutterQuillLocalizations lookupFlutterQuillLocalizations(Locale locale) {
10311033 }
10321034
10331035 throw FlutterError (
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- );
1036+ 'FlutterQuillLocalizations.delegate failed to load unsupported locale "$locale ". This is likely '
1037+ 'an issue with the localizations generation tool. Please file an issue '
1038+ 'on GitHub with a reproducible sample app and the gen-l10n configuration '
1039+ 'that was used.' );
10391040}
0 commit comments