diff --git a/shared/i18n/langs/en-US/translation.json b/shared/i18n/langs/en-US/translation.json index ea92ad5e..4f7f8f61 100644 --- a/shared/i18n/langs/en-US/translation.json +++ b/shared/i18n/langs/en-US/translation.json @@ -4,11 +4,13 @@ "k131598d0": "A new version is detected, whether to refresh immediately to upgrade to the latest content", "k162e37f1": "Plugin is successfully uninstalled, and it needs to be restarted to take effect", "k1704ea49": "Install", + "k18580d81": "Create a link and send it to external friends", "k1885734a": "Effective after refreshing the page", "k18c716ce": "Password cannot be less than 6 digits", "k19885be1": "Panel name is too long", "k1b38bb5c": "Register Now", "k1cbe2507": "Confirm", + "k23a3bd72": "Abnormal", "k2426e452": "Friend Service", "k2488f9ee": "Friend Request", "k249e23b9": "E-mail format is incorrect", @@ -77,6 +79,7 @@ "k8caee957": "Invite friends to converse", "k8f6dfd40": "Current members", "k9179206d": "Reconnecting", + "k93a61ee3": "The invitation link will expire in 7 days", "k979fc780": "Unable to join the room, you will not be able to get the latest information, please refresh the page and try again", "k9bb01902": "Show Detail", "k9d901c20": "Meeting room", @@ -119,6 +122,7 @@ "kd2c1a316": "Login", "kd2e5e126": "Panel Manage", "kd417f93a": "Do you want to delete the other party from your friend list? Note: You will not disappear from the other party's friend list", + "kd4216b7b": "Create Link", "kd4ff36fa": "Search Friends", "kd637a30": "Group Invite Service", "kda0e155e": "Create multiplayer converse", diff --git a/shared/i18n/langs/zh-CN/translation.json b/shared/i18n/langs/zh-CN/translation.json index 61ea38e5..3edc9822 100644 --- a/shared/i18n/langs/zh-CN/translation.json +++ b/shared/i18n/langs/zh-CN/translation.json @@ -4,11 +4,13 @@ "k131598d0": "检测到有新版本, 是否立即刷新以升级到最新内容", "k162e37f1": "插件卸载成功, 需要重启后生效", "k1704ea49": "安装", + "k18580d81": "创建链接并发送给外部好友", "k1885734a": "刷新页面后生效", "k18c716ce": "密码不能低于6位", "k19885be1": "面板名过长", "k1b38bb5c": "立即注册", "k1cbe2507": "确认", + "k23a3bd72": "异常", "k2426e452": "好友服务", "k2488f9ee": "申请好友", "k249e23b9": "邮箱格式不正确", @@ -77,6 +79,7 @@ "k8caee957": "邀请好友加入会话", "k8f6dfd40": "当前成员数", "k9179206d": "正在重新链接", + "k93a61ee3": "该邀请链接将会于7天后过期", "k979fc780": "无法加入房间, 您将无法获取到最新的信息, 请刷新页面后重试", "k9bb01902": "显示详情", "k9d901c20": "会议室", @@ -119,6 +122,7 @@ "kd2c1a316": "登录", "kd2e5e126": "面板管理", "kd417f93a": "是否要从自己的好友列表中删除对方? 注意:你不会从对方的好友列表消失", + "kd4216b7b": "创建链接", "kd4ff36fa": "查找好友", "kd637a30": "群组邀请服务", "kda0e155e": "创建多人会话", diff --git a/web/src/components/modals/GroupInvite.tsx b/web/src/components/modals/GroupInvite.tsx index dd1c7a9d..d0ac7a9c 100644 --- a/web/src/components/modals/GroupInvite.tsx +++ b/web/src/components/modals/GroupInvite.tsx @@ -6,6 +6,7 @@ import { useAsyncRequest, useGroupInfo, isValidStr, + t, } from 'tailchat-shared'; import { ModalWrapper } from '../Modal'; @@ -32,7 +33,7 @@ export const GroupInvite: React.FC = React.memo((props) => { }, [groupId]); if (!groupInfo) { - return
异常
; + return
{t('异常')}
; } return ( @@ -55,20 +56,23 @@ export const GroupInvite: React.FC = React.memo((props) => { />
- 创建链接并发送给外部好友 + {t('创建链接并发送给外部好友')}
{isValidStr(inviteLink) ? (
{inviteLink} -

该邀请链接将会于7天后过期

+ {/* TODO: 显示过期天数 */} +

+ {t('该邀请链接将会于7天后过期')} +

) : ( )}
diff --git a/web/src/plugin/PluginStore/Item.tsx b/web/src/plugin/PluginStore/Item.tsx index 14901d0c..d3cd576c 100644 --- a/web/src/plugin/PluginStore/Item.tsx +++ b/web/src/plugin/PluginStore/Item.tsx @@ -42,7 +42,7 @@ export const PluginStoreItem: React.FC<{ }, [manifest]); return ( -
+
diff --git a/web/src/routes/Invite/InviteInfo.tsx b/web/src/routes/Invite/InviteInfo.tsx index c6509144..31682aee 100644 --- a/web/src/routes/Invite/InviteInfo.tsx +++ b/web/src/routes/Invite/InviteInfo.tsx @@ -48,7 +48,7 @@ export const InviteInfo: React.FC = React.memo((props) => { } return ( -
+