I am working on a multilingual app in Flutter.
I used flutter_localizations package for localization and intl package for internationalization.
In the normal way inside Widgets, I can use it with help of Context.
But the problem is when I want to use internationalization inside repositories or other layers except for the UI layer.
What is the best practice for doing internationalization inside Other layers except for UI (where we don't have access to Context) for example using internationalization inside Api, Repository, Bloc, or Cubit?
Note: I'm looking for a way to use internationalization inside BLOC (business logic) of the app, not UI!