internal I18nText(IServiceProvider serviceProvider) { this.I18nTextRepository = serviceProvider.GetService <I18nTextRepository>(); this.ServiceProvider = serviceProvider; this.JSRuntime = serviceProvider.GetService <IJSRuntime>(); this.Options.GetInitialLanguageAsync = GetInitialLanguageAsync; this.Options.PersistCurrentLanguageAsync = PersistCurrentLanguageAsync; }
internal I18nText(IServiceProvider serviceProvider, I18nTextOptions options) { this.ServiceProvider = serviceProvider; this.I18nTextRepository = serviceProvider.GetRequiredService <I18nTextRepository>(); this.Options = options; }