Skip to content

Commit 991645a

Browse files
Add finnish translation (singerdmx#2564)
* Add translation * Update CHANGELOG.md
1 parent da4be28 commit 991645a

File tree

5 files changed

+547
-64
lines changed

5 files changed

+547
-64
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313
### Added
1414

1515
- `copyWith` methods to `HorizontalSpacing`, `VerticalSpacing`, `DefaultTextBlockStyle`, and `DefaultListBlockStyle` for immutable updates of properties [#2550](https://github.com/singerdmx/flutter-quill/pull/2550).
16+
- Finnish (fi) language translation [#2564](https://github.com/singerdmx/flutter-quill/pull/2564).
1617

1718
## [11.4.0] - 2025-04-23
1819

doc/translation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ your `WidgetsApp` for example `MaterialApp` which usually follows the system loc
55

66
## 🌐 Supported Locales
77

8-
Currently, translations are available for these 47 locales:
8+
Currently, translations are available for these 48 locales:
99

1010
* `ar`, `bg`, `bn`, `ca`, `cs`, `da`, `de`
1111
* `en`, `en_US`, `es`, `fa`, `fr`, `he`
@@ -14,7 +14,7 @@ Currently, translations are available for these 47 locales:
1414
* `pt_BR`, `ro`, `ro_RO`, `ru`, `sk`, `sr`
1515
* `sv`, `sw`, `th`, `tk`, `tr`, `uk`, `ur`
1616
* `vi`, `zh`, `zh_CN`, `zh_HK`, `hr`
17-
* `bs`, `mk`, `gu`
17+
* `bs`, `mk`, `gu`, `fi`
1818

1919
## 📌 Contributing to translations
2020

lib/src/l10n/generated/quill_localizations.dart

Lines changed: 63 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import 'quill_localizations_el.dart';
1717
import 'quill_localizations_en.dart';
1818
import 'quill_localizations_es.dart';
1919
import 'quill_localizations_fa.dart';
20+
import 'quill_localizations_fi.dart';
2021
import 'quill_localizations_fr.dart';
2122
import 'quill_localizations_gu.dart';
2223
import 'quill_localizations_he.dart';
@@ -105,15 +106,13 @@ import 'quill_localizations_zh.dart';
105106
/// property.
106107
abstract 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

Comments
 (0)