Skip to content

Commit e6f9238

Browse files
committed
refactor: i18n
1 parent 18eff85 commit e6f9238

File tree

4 files changed

+33
-6
lines changed

4 files changed

+33
-6
lines changed

apps/common/constants/permission_constants.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class Operate(Enum):
145145
EMBED = "READ+EMBED" # 嵌入
146146
ACCESS = "READ+ACCESS" # 访问限制
147147
DISPLAY = "READ+DISPLAY" # 显示设置
148-
API_KET = "READ+API_KEY" # API_KEY
148+
API_KEY = "READ+API_KEY" # API_KEY
149149
PUBLIC_ACCESS = "READ+PUBLIC_ACCESS" # 公共访问链接
150150
Q_WEIXIN = "READ+Q_WEIXIN" # 企业微信
151151
FEISHU = "READ+FEISHU" # 飞书
@@ -313,7 +313,7 @@ def get_workspace_role(self):
313313
Operate.EMBED.value: _('Embed third party'),
314314
Operate.ACCESS.value: _('Access restrictions'),
315315
Operate.DISPLAY.value: _('Display Settings'),
316-
Operate.API_KET.value: _('API_KET'),
316+
Operate.API_KEY.value: _('API Key'),
317317
Operate.PUBLIC_ACCESS.value: _('Public access link'),
318318
Operate.Q_WEIXIN.value: _('Enterprise WeiXin'),
319319
Operate.FEISHU.value: _('Feishu'),
@@ -815,7 +815,7 @@ class PermissionConstants(Enum):
815815
ResourcePermissionConst.APPLICATION_MANGE],
816816

817817
)
818-
APPLICATION_OVERVIEW_API_KEY = Permission(group=Group.APPLICATION_OVERVIEW, operate=Operate.API_KET,
818+
APPLICATION_OVERVIEW_API_KEY = Permission(group=Group.APPLICATION_OVERVIEW, operate=Operate.API_KEY,
819819
role_list=[RoleConstants.ADMIN, RoleConstants.USER],
820820
parent_group=[WorkspaceGroup.APPLICATION, UserGroup.APPLICATION],
821821
resource_permission_group_list=[

apps/locales/en_US/LC_MESSAGES/django.po

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8384,4 +8384,13 @@ msgid "Get resource model list"
83848384
msgstr ""
83858385

83868386
msgid "System Model"
8387-
msgstr ""
8387+
msgstr ""
8388+
8389+
msgid "Dialogue users"
8390+
msgstr ""
8391+
8392+
msgid "Conversation log"
8393+
msgstr ""
8394+
8395+
msgid "Public access link"
8396+
msgstr ""

apps/locales/zh_CN/LC_MESSAGES/django.po

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8510,4 +8510,13 @@ msgid "Get resource model list"
85108510
msgstr "获取资源管理模型列表"
85118511

85128512
msgid "System Model"
8513-
msgstr "系统模型"
8513+
msgstr "系统模型"
8514+
8515+
msgid "Dialogue users"
8516+
msgstr "对话用户"
8517+
8518+
msgid "Conversation log"
8519+
msgstr "对话日志"
8520+
8521+
msgid "Public access link"
8522+
msgstr "公共访问链接"

apps/locales/zh_Hant/LC_MESSAGES/django.po

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8510,4 +8510,13 @@ msgid "Get resource model list"
85108510
msgstr "獲取資源模型列表"
85118511

85128512
msgid "System Model"
8513-
msgstr "系統模型"
8513+
msgstr "系統模型"
8514+
8515+
msgid "Dialogue users"
8516+
msgstr "對話用戶"
8517+
8518+
msgid "Conversation log"
8519+
msgstr "對話日誌"
8520+
8521+
msgid "Public access link"
8522+
msgstr "公共訪問鏈接"

0 commit comments

Comments
 (0)