setLocalization method
- Language language
Sets the provided language
to be L10n.chosen.
Implementation
Future<void> setLocalization(Language language) async {
await Future.wait(
[
L10n.set(language),
_settingsRepository?.setLocale(language.toString()),
].nonNulls,
);
}