setLang method

void setLang(
  1. LocalizationCode localizationCode
)

Implementation

void setLang(LocalizationCode localizationCode) {
  if (localizationCode == LocalizationCode.en) {
    Localization().localizationMap = localizationMapEn;
    Localization().localizationCode = LocalizationCode.en;
  } else {
    Localization().localizationMap = localizationMapAr;
    Localization().localizationCode = LocalizationCode.ar;
  }
}