aissat / easy_localization

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

How to run golden tests with easy localization? #693

Open maxAtIppen opened 2 weeks ago

maxAtIppen commented 2 weeks ago

I use easy_localization and would like to do golden tests with alchemist. We have two languages.

We get the following warning: [🌎 Easy Localization] [WARNING] Localization key [onboarding.continue_button] not found

While debugging, we noticed that the easy localization delegate is missing during the _loadAll() in (flutter/src/widgets/localizations.dart).

In the alchemist package it is not possible to load anything beforehand (as far as I know). Is it possible to manually trigger the load method from the EasyLocalizationDelegate?

Thanks!