public void CheckIfCultureIsSetToEnglishTest() { var x = new LocalizationFunctions(Context, Settings); x.SetLocalizationLanguage("en"); Assert.AreEqual("en", Settings.Culture); }
public void CheckIfCurrencyIsSetToDollarTest() { var x = new LocalizationFunctions(Context, Settings); x.SetLocalizationLanguage("en"); Assert.AreEqual("$", Context.CurrencySymbol); }
/// <summary> /// Submits the asynchronous. /// </summary> /// <param name="e">The e.</param> /// <returns>Task.</returns> public override async Task SubmitAsync(string e) { _appSettingsService.Settings.Culture = e; _localizationFunctions.SetLocalizationLanguage(e); await base.SubmitAsync(e); }