Skip to content

Commit 02afb6a

Browse files
committed
refactor: update API KEY translations and improve formatting in permission constants
1 parent 6369b4f commit 02afb6a

File tree

4 files changed

+22
-4
lines changed

4 files changed

+22
-4
lines changed

apps/common/constants/permission_constants.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ def get_workspace_role(self):
320320
Operate.EMBED.value: _('Embed third party'),
321321
Operate.ACCESS.value: _('Access restrictions'),
322322
Operate.DISPLAY.value: _('Display Settings'),
323-
Operate.API_KEY.value: _('API_KEY'),
323+
Operate.API_KEY.value: _('API KEY'),
324324
Operate.PUBLIC_ACCESS.value: _('Public access link'),
325325
Operate.Q_WEIXIN.value: _('Enterprise WeiXin'),
326326
Operate.FEISHU.value: _('Feishu'),
@@ -346,7 +346,7 @@ def get_workspace_role(self):
346346
Group.SYSTEM_KNOWLEDGE.value: _("Knowledge"),
347347
Group.SYSTEM_KNOWLEDGE_DOCUMENT.value: _("Document"),
348348
Group.SYSTEM_KNOWLEDGE_PROBLEM.value: _("Problem"),
349-
Group.SYSTEM_KNOWLEDGE_HIT_TEST.value: _("Hit-test"),
349+
Group.SYSTEM_KNOWLEDGE_HIT_TEST.value: _("Hit-Test"),
350350
Group.SYSTEM_KNOWLEDGE_CHAT_USER.value: _("Dialogue users"),
351351
Group.SYSTEM_RES_TOOL.value: _("Tool"),
352352
Group.SYSTEM_RES_MODEL.value: _("Model"),

apps/locales/en_US/LC_MESSAGES/django.po

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8483,4 +8483,10 @@ msgid "Delete application API_KEY"
84838483
msgstr ""
84848484

84858485
msgid "knowledge Base"
8486+
msgstr ""
8487+
8488+
msgid "API KEY"
8489+
msgstr "API KEY"
8490+
8491+
msgid "Download"
84868492
msgstr ""

apps/locales/zh_CN/LC_MESSAGES/django.po

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8609,4 +8609,10 @@ msgid "Delete application API_KEY"
86098609
msgstr "删除应用 API KEY"
86108610

86118611
msgid "knowledge Base"
8612-
msgstr "知识库"
8612+
msgstr "知识库"
8613+
8614+
msgid "API KEY"
8615+
msgstr "API KEY"
8616+
8617+
msgid "Download"
8618+
msgstr "下载"

apps/locales/zh_Hant/LC_MESSAGES/django.po

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8609,4 +8609,10 @@ msgid "Delete application API_KEY"
86098609
msgstr "删除應用 API KEY"
86108610

86118611
msgid "knowledge Base"
8612-
msgstr "知識庫"
8612+
msgstr "知識庫"
8613+
8614+
msgid "API KEY"
8615+
msgstr "API KEY"
8616+
8617+
msgid "Download"
8618+
msgstr "下載"

0 commit comments

Comments
 (0)