From 3b6ae2cc9e063541eb686a955edc0d1e06df7d14 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Tue, 30 Aug 2022 17:33:20 +0800 Subject: [PATCH] chore: translation --- client/shared/i18n/langs/en-US/translation.json | 17 +++++++++++++++-- client/shared/i18n/langs/zh-CN/translation.json | 17 +++++++++++++++-- client/web/src/components/UserListItem.tsx | 2 +- 3 files changed, 31 insertions(+), 5 deletions(-) diff --git a/client/shared/i18n/langs/en-US/translation.json b/client/shared/i18n/langs/en-US/translation.json index e7cd8908..37944f7f 100644 --- a/client/shared/i18n/langs/en-US/translation.json +++ b/client/shared/i18n/langs/en-US/translation.json @@ -24,6 +24,7 @@ "k1bc58056": "Private Message Service", "k1bd56481": "Close independent window", "k1cbe2507": "Confirm", + "k1d8e2fac": "View group details", "k206eff71": "Nickname can not be blank", "k21ee7a1f": "Roles", "k23a3bd72": "Abnormal", @@ -44,6 +45,7 @@ "k31a9d6a3": "The connect to the server is broken", "k323b5cc7": "Recall", "k3279c602": "Add now", + "k32905632": "Unlimited invitation link", "k34b5e3ab": "Send Message", "k34e357ee": "Group Summary", "k35abe359": "Lobby", @@ -93,7 +95,7 @@ "k5ab727ca": "This invitation will expire on <2><0>{{date}}", "k5bb71ad7": "Installed", "k5bec387": "Unable to get group information", - "k5c123bad": "Role Name", + "k5d2a6631": "Allow to manage channels", "k5f91e72c": "Built Plugins", "k5fc9ccb6": "Operation too frequently", "k609d9f28": "Please enter the server address (example: http://127.0.0.1:11000)", @@ -121,6 +123,7 @@ "k6fc3abcd": "Enter now", "k7173d09e": "Account", "k736edc2f": "Old and new passwords do not match", + "k73d9fc70": "Allow members to view admin channels", "k7437914b": "Panel Group", "k744ee9a": "Create Group", "k74aef1ad": "Members", @@ -128,7 +131,6 @@ "k7640ae2a": "OTP is 6 digits", "k77d3028d": "Unknown Panel", "k78e52ed0": "Accept", - "k7a2ccf9b": "Search Friends", "k7a89720": "Open in new window", "k7c232f9e": "Panel", "k7daa1233": "Are you sure you want to mute {{name}}", @@ -141,6 +143,7 @@ "k821ff85a": "Common", "k8266bcf2": "New password", "k83ede286": "Ack Service", + "k84a3bd27": "Invitation link", "k8582af3f": "Refuse", "k86f06fee": "7 days", "k87a609ad": "Please do not install plugins from unknown sources, it may steal your personal information in Tailchat", @@ -156,6 +159,7 @@ "k9179206d": "Reconnecting", "k92a84117": "Claim account", "k979fc780": "Unable to join the room, you will not be able to get the latest information, please refresh the page and try again", + "k9b0bdb34": "Allow members to view group details", "k9bb01902": "Show Detail", "k9d5a843a": "Mail Service", "k9d901c20": "Meeting room", @@ -189,6 +193,7 @@ "kad207008": "Edit", "kadeb7a89": "Not supported documentation links", "kae072a10": "Not found this account", + "kae0a0c12": "Search user", "kaeec12de": "Manual Install", "kaefc1e64": "Password reset successful, now back to login page", "kaf403ef0": "Light Mode", @@ -206,6 +211,8 @@ "kb6f1c83f": "What do you want to call you?", "kb7a57f24": "Plugin Registry Service", "kb8185132": "Or", + "kb96b79c5": "Allow management of invitation links", + "kbc76781d": "No permission to send messages, please contact the group owner", "kbcb00ae5": "There is no further description for this plugin", "kbcf55e47": "User Service", "kbef193d": "Invitation link copied to clipboard", @@ -221,9 +228,11 @@ "kc7cc96c8": "From", "kc9283683": "Are you sure you want to delete the panel [{{name}}]", "kc9cc6154": "Friends", + "kcac0467c": "Allow members to create invitation links", "kcb8e662f": "Converse Service", "kceea83fc": "Join Group", "kcefdbe2d": "Modify avatar success", + "kd0690a45": "Allow management of identity groups", "kd1af615e": "Panel not found", "kd28c05df": "Create Success", "kd2c1a316": "Login", @@ -263,17 +272,21 @@ "kee9108f1": "Modify success", "kef25594f": "Nickname#0000", "kef3676e1": "The invitation code has expired", + "kef9abce1": "允许成员创建不限时邀请链接", "kefaf9956": "Created", "kefc07278": "Back to login", "keff3c3f": "10 minutes", "kf02c6db": "Friend List", "kf0d97e0b": "Friend deleted successfully", + "kf1396f1f": "身份组名称", "kf15499b4": "Logout", "kf1eac01c": "Failed to load group information", "kf22210a": "Loading plugin list", "kf3fa6059": "You can use the complete <1>nickname#identifier to add friends", + "kf431f1b2": "允许成员管理邀请链接", "kf4567a1": "Copy the invitation link", "kf48ae58": "Group information not found", + "kf53a7774": "允许成员管理身份组", "kf5543e44": "Expired", "kf5861d84": "No friend requests have been sent yet", "kf5d66247": "Panel Name", diff --git a/client/shared/i18n/langs/zh-CN/translation.json b/client/shared/i18n/langs/zh-CN/translation.json index 8d7a9823..8267195e 100644 --- a/client/shared/i18n/langs/zh-CN/translation.json +++ b/client/shared/i18n/langs/zh-CN/translation.json @@ -24,6 +24,7 @@ "k1bc58056": "私信服务", "k1bd56481": "关闭独立窗口", "k1cbe2507": "确认", + "k1d8e2fac": "查看群组详情", "k206eff71": "昵称不能为空", "k21ee7a1f": "身份组", "k23a3bd72": "异常", @@ -44,6 +45,7 @@ "k31a9d6a3": "与服务器的链接已断开", "k323b5cc7": "撤回", "k3279c602": "立即添加", + "k32905632": "不限时邀请链接", "k34b5e3ab": "发送消息", "k34e357ee": "群组概述", "k35abe359": "大厅", @@ -93,7 +95,7 @@ "k5ab727ca": "该邀请将于 <2><0>{{date}} 过期", "k5bb71ad7": "已安装", "k5bec387": "无法获取到群组信息", - "k5c123bad": "角色名称", + "k5d2a6631": "允许管理频道", "k5f91e72c": "内置插件", "k5fc9ccb6": "操作过于频繁", "k609d9f28": "请输入服务器地址(示例: http://127.0.0.1:11000)", @@ -121,6 +123,7 @@ "k6fc3abcd": "立即进入", "k7173d09e": "账户信息", "k736edc2f": "新旧密码不匹配", + "k73d9fc70": "允许成员查看管理频道", "k7437914b": "面板分组", "k744ee9a": "创建群组", "k74aef1ad": "成员", @@ -128,7 +131,6 @@ "k7640ae2a": "OTP为6位数字", "k77d3028d": "未知的面板", "k78e52ed0": "接受", - "k7a2ccf9b": "搜索好友", "k7a89720": "在新窗口打开", "k7c232f9e": "面板", "k7daa1233": "确定要禁言 {{name}} 么", @@ -141,6 +143,7 @@ "k821ff85a": "通用", "k8266bcf2": "新密码", "k83ede286": "已读服务", + "k84a3bd27": "邀请链接", "k8582af3f": "拒绝", "k86f06fee": "7天", "k87a609ad": "请不要安装不明来源的插件,这可能会盗取你在 Tailchat 的个人信息", @@ -156,6 +159,7 @@ "k9179206d": "正在重新链接", "k92a84117": "认领账号", "k979fc780": "无法加入房间, 您将无法获取到最新的信息, 请刷新页面后重试", + "k9b0bdb34": "允许成员查看群组详情", "k9bb01902": "显示详情", "k9d5a843a": "邮件服务", "k9d901c20": "会议室", @@ -189,6 +193,7 @@ "kad207008": "编辑", "kadeb7a89": "不支持渲染的文档链接", "kae072a10": "没有找到该用户", + "kae0a0c12": "搜索用户", "kaeec12de": "手动安装", "kaefc1e64": "密码重置成功,现在回到登录页", "kaf403ef0": "亮色模式", @@ -206,6 +211,8 @@ "kb6f1c83f": "想要让大家如何称呼你", "kb7a57f24": "插件中心服务", "kb8185132": "或", + "kb96b79c5": "允许管理邀请链接", + "kbc76781d": "没有发送消息的权限, 请联系群组所有者", "kbcb00ae5": "该插件没有更多描述", "kbcf55e47": "用户服务", "kbef193d": "邀请链接已复制到剪切板", @@ -221,9 +228,11 @@ "kc7cc96c8": "来自", "kc9283683": "确定要删除面板 【{{name}}】 么", "kc9cc6154": "好友", + "kcac0467c": "允许成员创建邀请链接", "kcb8e662f": "会话服务", "kceea83fc": "加入群组", "kcefdbe2d": "修改头像成功", + "kd0690a45": "允许管理身份组", "kd1af615e": "面板不存在", "kd28c05df": "创建成功", "kd2c1a316": "登录", @@ -263,17 +272,21 @@ "kee9108f1": "修改成功", "kef25594f": "用户昵称#0000", "kef3676e1": "该邀请码已过期", + "kef9abce1": "允许成员创建不限时邀请链接", "kefaf9956": "创建时间", "kefc07278": "返回登录", "keff3c3f": "10分钟", "kf02c6db": "好友列表", "kf0d97e0b": "好友删除成功", + "kf1396f1f": "身份组名称", "kf15499b4": "退出登录", "kf1eac01c": "群组信息加载失败", "kf22210a": "正在加载插件列表", "kf3fa6059": "您可以使用完整的 <1>用户昵称#标识 来添加好友", + "kf431f1b2": "允许成员管理邀请链接", "kf4567a1": "复制邀请链接", "kf48ae58": "找不到群组信息", + "kf53a7774": "允许成员管理身份组", "kf5543e44": "已过期", "kf5861d84": "暂无已发送的好友请求", "kf5d66247": "面板名", diff --git a/client/web/src/components/UserListItem.tsx b/client/web/src/components/UserListItem.tsx index d83de94d..6c83c537 100644 --- a/client/web/src/components/UserListItem.tsx +++ b/client/web/src/components/UserListItem.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { Avatar } from './Avatar'; +import { Avatar } from 'tailchat-design'; import _isEmpty from 'lodash/isEmpty'; import { Popover, PopoverProps, Skeleton, Space } from 'antd'; import { useCachedUserInfo, useCachedOnlineStatus } from 'tailchat-shared';