Skip to content

Commit

Permalink
feat: 获取语言接口只返回简体中文和英文
Browse files Browse the repository at this point in the history
  • Loading branch information
WangJunZzz committed Nov 15, 2024
1 parent aa970b8 commit 50e2334
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ public virtual async Task<List<PageLanguageOutput>> AllListAsync()
{
var languages = await _languageManager.ListAsync();
var list = ObjectMapper.Map<List<Language>, List<PageLanguageOutput>>(languages);
return list;
// 前端只支持这2种语言,其他语言不显示
return list.Where(e => e.CultureName == "zh-Hans" || e.CultureName == "en").ToList();
}


Expand Down

0 comments on commit 50e2334

Please sign in to comment.