Abp.Localization.ApplicationLanguageProvider.SetDefaultLanguage(System.Collections.Generic.List)

Here are the examples of the csharp api class Abp.Localization.ApplicationLanguageProvider.SetDefaultLanguage(System.Collections.Generic.List) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

1. Example

Project: module-zero
Source File: ApplicationLanguageProvider.cs
public IReadOnlyList<LanguageInfo> GetLanguages()
        {
            var languageInfos = AsyncHelper.RunSync(() => _applicationLanguageManager.GetLanguagesAsync(AbpSession.TenantId))
                    .OrderBy(l => l.DisplayName)
                    .Select(l => l.ToLanguageInfo())
                    .ToList();

            SetDefaultLanguage(languageInfos);

            return languageInfos;
        }

2. Example

Project: aspnetboilerplate
Source File: ApplicationLanguageProvider.cs
public IReadOnlyList<LanguageInfo> GetLanguages()
        {
            var languageInfos = AsyncHelper.RunSync(() => _applicationLanguageManager.GetLanguagesAsync(AbpSession.TenantId))
                    .OrderBy(l => l.DisplayName)
                    .Select(l => l.ToLanguageInfo())
                    .ToList();

            SetDefaultLanguage(languageInfos);

            return languageInfos;
        }