The library also needs the `FlutterQuillLocalizations.delegate`
📌 Note: The library also needs the `FlutterQuillLocalizations.delegate`:
```dart
```dart
// Required localizations delegates ...
// Required localizations delegates ...
FlutterQuillLocalizations.delegate
FlutterQuillLocalizations.delegate
```
```
To offer the default localizations.
**You don't have to add this explicitly** because we have wrapped the `QuillEditor` and `QuillToolbar` with `FlutterQuillLocalizationsWidget`. This widget will check if the necessary localizations are set; if not, it will provide them only for these widgets. Therefore, it's not strictly required. However, if you are overriding the `localizationsDelegates`, you can also add the `FlutterQuillLocalizations.delegate`.
But **you don't have to** since we have wrapped the `QuillEditor` and `QuillToolbar`
with `FlutterQuillLocalizationsWidget` which will check if it sets then it will go, if not, then it will be provided
only for them, so it's not really required, but if you are overriding the `localizationsDelegates` you could also add
the `FlutterQuillLocalizations.delegate`
which won't change anything
There are additional notes in the [Translation](../translation.md) section
📄 For additional notes, refer to the [Translation](../translation.md) section.
This project uses some adaptive widgets like `AdaptiveTextSelectionToolbar` which require the following delegates:
The project uses some adaptive widgets like `AdaptiveTextSelectionToolbar` which require the following delegates:
1. Default Material Localizations delegate
1. Default Material Localizations delegate
2. Default Cupertino Localizations delegate
2. Default Cupertino Localizations delegate
3. Default Widgets Localizations delegate
3. Default Widgets Localizations delegate
You don't need to include those since they are defined by default
You don't need to include these since they are defined by default. However, if you are using a custom app or overriding the `localizationsDelegates` in the App widget, ensure it includes the following:
but if you are using a Custom app or you are overriding the `localizationsDelegates` in the App widget
then please make sure it includes those:
```dart
```dart
localizationsDelegates: const [
localizationsDelegates: const [
@ -18,9 +16,8 @@ localizationsDelegates: const [
],
],
```
```
You might need more depending on your use case, for example, if you are using custom localizations for your app, using a
custom app widget like `FluentApp` from [FluentUI]
You might need more depending on your use case. For example, if you are using custom localizations for your app with a custom app widget like `FluentApp` from [FluentUI], you will also need:
which will also need
```dart
```dart
localizationsDelegates: const [
localizationsDelegates: const [
@ -30,9 +27,8 @@ localizationsDelegates: const [
],
],
```
```
Note: In the latest versions of `FluentApp` you no longer need to add the `localizationsDelegates` but this is just an
📌 Note: In recent versions of `FluentApp`, you no longer need to add the `localizationsDelegates`. This is just an example. For more information, refer to the [#946](https://github.com/bdlukaa/fluent_ui/pull/946).
example, for more [info](https://github.com/bdlukaa/fluent_ui/pull/946)
There are additional notes on the [Localizations](./localizations_setup.md) page
📄 For additional notes, see the [Localizations](./localizations_setup.md) page.