From 57fde5558350159a9f03ed854b4f1a3982f33bba Mon Sep 17 00:00:00 2001 From: wizardchen Date: Sat, 16 May 2026 04:08:58 +0800 Subject: [PATCH] feat(i18n): enhance tenant management messages across multiple languages Updated internationalization files for English, Korean, Russian, and Chinese to include new messages related to editing tenant names and updating tenant information. This includes prompts for user actions such as saving or canceling changes, as well as success and failure notifications. The changes ensure a consistent user experience across all supported languages regarding tenant management functionalities. Refs: #1303 --- frontend/src/i18n/locales/en-US.ts | 3 + frontend/src/i18n/locales/ko-KR.ts | 3 + frontend/src/i18n/locales/ru-RU.ts | 3 + frontend/src/i18n/locales/zh-CN.ts | 3 + frontend/src/views/settings/Settings.vue | 211 +++--- frontend/src/views/settings/TenantMembers.vue | 660 +++++++++++------- 6 files changed, 502 insertions(+), 381 deletions(-) diff --git a/frontend/src/i18n/locales/en-US.ts b/frontend/src/i18n/locales/en-US.ts index 7b03ce1d..d6e7f020 100755 --- a/frontend/src/i18n/locales/en-US.ts +++ b/frontend/src/i18n/locales/en-US.ts @@ -4351,6 +4351,7 @@ export default { permissions: { title: 'Role permissions', desc: 'What each role can do inside this tenant. Server-enforced; UI controls reflect the rules but are not the source of truth.', + iconHint: 'Hover to view role permission details', manageMembers: 'Manage members', manageTenantConfig: 'Edit tenant settings', manageInfra: 'Configure models / vector stores / IM channels', @@ -4358,10 +4359,12 @@ export default { readAll: 'Read tenant content', }, columns: { + member: 'Name & email', username: 'Name', email: 'Email', role: 'Role', joinedAt: 'Joined', + operations: 'Actions', }, role: { owner: 'Owner', diff --git a/frontend/src/i18n/locales/ko-KR.ts b/frontend/src/i18n/locales/ko-KR.ts index 524657af..9e5249b2 100755 --- a/frontend/src/i18n/locales/ko-KR.ts +++ b/frontend/src/i18n/locales/ko-KR.ts @@ -4411,6 +4411,7 @@ export default { permissions: { title: "역할 권한", desc: "각 역할이 이 테넌트에서 할 수 있는 작업입니다. 서버에서 적용되며 UI 컨트롤은 표시만 합니다.", + iconHint: "역할 권한 안내를 보려면 마우스를 올리세요", manageMembers: "멤버 관리", manageTenantConfig: "테넌트 설정 변경", manageInfra: "모델 / 벡터 저장소 / IM 채널 구성", @@ -4418,10 +4419,12 @@ export default { readAll: "테넌트 콘텐츠 조회", }, columns: { + member: "이름 · 이메일", username: "이름", email: "이메일", role: "역할", joinedAt: "가입일", + operations: "작업", }, role: { owner: "소유자", diff --git a/frontend/src/i18n/locales/ru-RU.ts b/frontend/src/i18n/locales/ru-RU.ts index 84de400f..35ced6b5 100755 --- a/frontend/src/i18n/locales/ru-RU.ts +++ b/frontend/src/i18n/locales/ru-RU.ts @@ -4311,6 +4311,7 @@ export default { permissions: { title: 'Права ролей', desc: 'Что может делать каждая роль внутри этого тенанта. Контролируется сервером; элементы UI лишь отражают правила.', + iconHint: 'Наведите курсор, чтобы открыть описание прав ролей', manageMembers: 'Управление участниками', manageTenantConfig: 'Изменение настроек тенанта', manageInfra: 'Настройка моделей / векторных хранилищ / IM-каналов', @@ -4318,10 +4319,12 @@ export default { readAll: 'Чтение содержимого тенанта', }, columns: { + member: 'Имя и email', username: 'Имя', email: 'Email', role: 'Роль', joinedAt: 'Дата вступления', + operations: 'Действия', }, role: { owner: 'Владелец', diff --git a/frontend/src/i18n/locales/zh-CN.ts b/frontend/src/i18n/locales/zh-CN.ts index 5375b0c8..dd546843 100755 --- a/frontend/src/i18n/locales/zh-CN.ts +++ b/frontend/src/i18n/locales/zh-CN.ts @@ -4343,6 +4343,7 @@ export default { permissions: { title: "角色权限说明", desc: "每个角色在当前租户内能做的事情。服务端强制执行,UI 控件仅作展示。", + iconHint: "悬停查看角色权限说明", manageMembers: "管理成员", manageTenantConfig: "修改租户配置", manageInfra: "配置模型 / 向量库 / IM 通道", @@ -4350,10 +4351,12 @@ export default { readAll: "查看租户内容", }, columns: { + member: "姓名与邮箱", username: "姓名", email: "邮箱", role: "角色", joinedAt: "加入时间", + operations: "操作", }, role: { owner: "所有者", diff --git a/frontend/src/views/settings/Settings.vue b/frontend/src/views/settings/Settings.vue index 76c19963..dea2c7c7 100644 --- a/frontend/src/views/settings/Settings.vue +++ b/frontend/src/views/settings/Settings.vue @@ -6,7 +6,7 @@ @@ -20,64 +20,43 @@