public LanguageService(ILanguageConfiguration languageConfiguration) { Require.Objects.NotNull(languageConfiguration, nameof(languageConfiguration)); Require.Collections.NotEmpty(languageConfiguration.Languages, nameof(languageConfiguration.Languages)); _languageConfiguration = languageConfiguration; }
/// <summary> /// Initializes a new instance of the <see cref="PaymentPointTasks"/> class. /// </summary> /// <param name="context">The context.</param> /// <param name="langConfig">The lang config.</param> /// <remarks></remarks> public PaymentPointTasks(FlydubaiContext context, ILanguageConfiguration langConfig) { this.context = context; this.languageConfiguration = langConfig; this.languageId = this.languageConfiguration.CurrentLanguage.Id; }
public XmlDocLanguageWriter(ILanguage language, IDocumentationLoader docLoader, bool injectXmlDoc) { _language = language; _docLoader = docLoader; _injectXmlDoc = injectXmlDoc; _configuration = new LanguageConfiguration(); _formatter = new TextFormatter(); _writer = language.GetWriter(_formatter, _configuration); }
/// <summary> /// Initializes a new instance of the <see cref="SpecialOfferTasks"/> class. /// </summary> /// <param name="context">The context.</param> /// <param name="languageConfiguration">The language configuration.</param> /// <remarks></remarks> public SpecialOfferTasks(FlydubaiContext context, ILanguageConfiguration languageConfiguration) { this.context = context; this.languageConfiguration = languageConfiguration; }
public PromotionalTeaserBusiness(FlydubaiContext context, ILanguageConfiguration languageConfiguration) { this.context = context; this.languageConfiguration = languageConfiguration; }
/// <summary> /// Set Default Language of Window. /// </summary> /// <param name="window">Target window</param> /// <param name="language">Target Language</param> public static ResourceDictionary SetLanguage(ILanguageConfiguration language) { return(language.GetResourceDictionary()); }