setLocalization method

Future<void> setLocalization(
  1. 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,
  );
}