# 创建分类时显示基于默认语言环境的每个组的名称

**URL:** <https://meta.discourse.org/t/show-name-of-everyone-group-based-on-default-locale-during-category-creation/395225>\
**Category:** UX\
**Created:** [2026年二月4日 23:11 UTC](https://meta.discourse.org/t/show-name-of-everyone-group-based-on-default-locale-during-category-creation/395225 "2026-02-04T23:11:57Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [2026年二月12日 11:22 UTC](https://meta.discourse.org/t/show-name-of-everyone-group-based-on-default-locale-during-category-creation/395225/3 "2026-02-12T11:22:17Z")

</div>

好的——我想这次我都搞定了！？😅

> <https://github.com/discourse/discourse/pull/37757>
>
> Automatic group names (everyone, staff, admins, etc.) are translated based on th…e site's default locale. However, the \`AUTO\_GROUPS\` JS constant had hardcoded English names which were used directly in several places — most notably during category creation. This caused the "everyone" group to always display its English name in the permissions table, even on sites with a different default locale.
> 
> This removes the \`name\` and \`display\_name\` fields from \`AUTO\_GROUPS\`, keeping only \`id\` and \`automatic\`. A new \`groupsById\` getter on the \`Site\` model provides a lookup map built from server-provided group data (which contains the properly localized names). All consumers now resolve group names via \`site.groupsById\[groupId\].name\` instead of reading from the constant.
> 
> The avatar-flair system is also refactored from name-based to ID-based lookups, and group identity checks in \`user.js\` now compare by \`id\` rather than \`name\`.
> 
> https://meta.discourse.org/t/395225

---

_[View the full topic](https://meta.discourse.org/t/show-name-of-everyone-group-based-on-default-locale-during-category-creation/395225)._
