aissat / easy_localization

Easy and Fast internationalizing your Flutter Apps
https://pub.dev/packages/easy_localization
MIT License
900 stars 323 forks source link

Default Localizations Delegates #234

Open Nico04 opened 4 years ago

Nico04 commented 4 years ago

When using EasyLocalization, you can't edit localizationsDelegates, and it includes all of them.

List<LocalizationsDelegate> get delegates => [
        delegate,
        GlobalMaterialLocalizations.delegate,
        GlobalWidgetsLocalizations.delegate,
        GlobalCupertinoLocalizations.delegate,
      ];

In my case, I don't use Cupertino Widgets, so I normally don't include GlobalCupertinoLocalizations.delegate. Does this affect app size or performances ?

adiletcool commented 3 years ago

Same issue. I can't add SfGlobalLocalizations.delegate from syncfusion_localizations package. I tried localizationsDelegates: context.localizationDelegates + [SfGlobalLocalizations.delegate], but localizationDelegates didn't change.

pishguy commented 3 years ago

this list can be optional? i dont use Cupertino too

pishguy commented 3 years ago

how can i set default locale?

Overman775 commented 3 years ago

@aissat may be deprecate localizationsDelegates?