Ejemplo n.º 1
0
        public static AppLanguageDto FromLanguage(Language language, LanguageConfig config, LanguagesConfig languages)
        {
            var result = new AppLanguageDto
            {
                EnglishName = language.EnglishName,
                IsMaster    = languages.IsMaster(language),
                IsOptional  = languages.IsOptional(language),
                Iso2Code    = language.Iso2Code,
                Fallback    = config.Fallbacks.ToArray()
            };

            return(result);
        }