public PredefinedGuideService( IFileManager fileManager, ILanguageManager languageManager ) { _fileManager = fileManager; _predefinedGuidesContent = GetPredefinedGuidesContent(); _languageManager = languageManager; _language = _languageManager.GetLang(); }
public override Task OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next) { try { _language = _languageManager.GetLang(); CultureInfo.CurrentUICulture = new CultureInfo(_language); } catch (CultureNotFoundException) { } return(base.OnActionExecutionAsync(context, next)); }
private void setLanguage() { _language = _languageManager.GetLang(); }