Beispiel #1
0
        /// <summary>
        /// Gets the active languages for current tenant.
        /// </summary>
        public IReadOnlyList <LanguageInfo> GetActiveLanguages()
        {
            var languageInfos = _applicationLanguageManager.GetActiveLanguages(AbpSession.TenantId)
                                .OrderBy(l => l.DisplayName)
                                .Select(l => l.ToLanguageInfo())
                                .ToList();

            SetDefaultLanguage(languageInfos);

            return(languageInfos);
        }