private void SetDefaultLanguage(List <LanguageInfo> languageInfos) { if (languageInfos.Count <= 0) { return; } var defaultLanguage = _applicationLanguageManager.GetDefaultLanguageOrNull(AbpSession.TenantId); if (defaultLanguage == null) { languageInfos[0].IsDefault = true; return; } var languageInfo = languageInfos.FirstOrDefault(l => l.Name == defaultLanguage.Name); if (languageInfo == null) { languageInfos[0].IsDefault = true; return; } languageInfo.IsDefault = true; }