refactor: 补充了部分翻译

pull/13/head
moonrailgun 4 years ago
parent 0484dd4fc2
commit ef8bb122dc

@ -1,3 +1,31 @@
{
"kc654b275": "Email"
"k10c018fe": "Teamwork",
"k2488f9ee": "Friend Request",
"k3172297b": "This feature is not yet open",
"k34b5e3ab": "Send Message",
"k35abe359": "Lobby",
"k35f990b0": "View Detail",
"k3f3597fc": "All",
"k4d32a754": "Group Name",
"k517db7e5": "Text Channel",
"k51db56bf": "Temporary Meeting",
"k61a1db2": "Already applied",
"k63857abf": "Confirm Create",
"k68283d04": "Application sent",
"k744ee9a": "Create Group",
"k78e52ed0": "Accept",
"k8582af3f": "Refuse",
"k8abdba5c": "Has been sent",
"k9d901c20": "Meeting room",
"ka0451c97": "Cancel",
"ka2c48894": "Customize your group",
"ka5d64ee9": "Choose the following template and start creating your own group!",
"kaa040a8e": "Default Group",
"kc14b2ea3": "Back",
"kc1afdd08": "Don't worry, you can make changes anytime after this",
"kc654b275": "Email",
"kdc18deca": "Invite users",
"kdc4b4f92": "Public",
"kf7d829eb": "Wait to process",
"kfa01c850": "No private message found"
}

@ -1,3 +1,31 @@
{
"kc654b275": "邮箱"
"k10c018fe": "工作协同",
"k2488f9ee": "申请好友",
"k3172297b": "该功能暂未开放",
"k34b5e3ab": "发送消息",
"k35abe359": "大厅",
"k35f990b0": "查看详情",
"k3f3597fc": "全员",
"k4d32a754": "群组名称",
"k517db7e5": "文字频道",
"k51db56bf": "临时会议",
"k61a1db2": "已申请",
"k63857abf": "确认创建",
"k68283d04": "已发送申请",
"k744ee9a": "创建群组",
"k78e52ed0": "接受",
"k8582af3f": "拒绝",
"k8abdba5c": "已发送",
"k9d901c20": "会议室",
"ka0451c97": "取消",
"ka2c48894": "自定义你的群组",
"ka5d64ee9": "选择以下模板, 开始创建属于自己的群组吧!",
"kaa040a8e": "默认群组",
"kc14b2ea3": "返回",
"kc1afdd08": "不要担心, 在此之后你可以随时进行变更",
"kc654b275": "邮箱",
"kdc18deca": "邀请用户",
"kdc4b4f92": "公共",
"kf7d829eb": "待处理",
"kfa01c850": "找不到私信会话"
}

@ -3,6 +3,7 @@ import React, { useCallback, useRef, useState } from 'react';
import {
createGroup,
GroupPanelType,
t,
useAppDispatch,
useAsyncRequest,
} from 'tailchat-shared';
@ -19,16 +20,16 @@ const panelTemplate: {
}[] = [
{
key: 'default',
label: '默认群组',
label: t('默认群组'),
panels: [
{
id: '00',
name: '文字频道',
name: t('文字频道'),
type: GroupPanelType.GROUP,
},
{
id: '01',
name: '大厅',
name: t('大厅'),
parentId: '00',
type: GroupPanelType.TEXT,
},
@ -36,33 +37,33 @@ const panelTemplate: {
},
{
key: 'work',
label: '工作协同',
label: t('工作协同'),
panels: [
{
id: '00',
name: '公共',
name: t('公共'),
type: GroupPanelType.GROUP,
},
{
id: '01',
name: '全员',
name: t('全员'),
parentId: '00',
type: GroupPanelType.TEXT,
},
{
id: '10',
name: '临时会议',
name: t('临时会议'),
type: GroupPanelType.GROUP,
},
{
id: '11',
name: '会议室1',
name: t('会议室') + '1',
parentId: '10',
type: GroupPanelType.TEXT,
},
{
id: '11',
name: '会议室2',
name: t('会议室') + '2',
parentId: '10',
type: GroupPanelType.TEXT,
},
@ -98,11 +99,11 @@ export const ModalCreateGroup: React.FC = React.memo(() => {
<Slides ref={slidesRef}>
<div>
<Typography.Title level={4} className="text-center mb-4">
{t('创建群组')}
</Typography.Title>
<Typography.Paragraph className="mb-4 text-center">
, !
{t('选择以下模板, 开始创建属于自己的群组吧!')}
</Typography.Paragraph>
<div className="space-y-2.5">
@ -124,11 +125,11 @@ export const ModalCreateGroup: React.FC = React.memo(() => {
<div>
<Typography.Title level={4} className="text-center mb-4">
{t('自定义你的群组')}
</Typography.Title>
<Typography.Paragraph className="text-center mb-2">
,
{t('不要担心, 在此之后你可以随时进行变更')}
</Typography.Paragraph>
<div className="text-center mb-2">
@ -137,7 +138,7 @@ export const ModalCreateGroup: React.FC = React.memo(() => {
</div>
<div>
<div>:</div>
<div>{t('群组名称')}:</div>
<Input
className="shadow-none"
@ -155,10 +156,10 @@ export const ModalCreateGroup: React.FC = React.memo(() => {
onClick={handleBack}
className="text-white font-bold"
>
{t('返回')}
</Button>
<Button type="primary" loading={loading} onClick={handleCreate}>
{t('确认创建')}
</Button>
</div>
</div>

@ -30,16 +30,9 @@ export const GroupHeader: React.FC<GroupHeaderProps> = React.memo((props) => {
<Menu.Item key="0" onClick={() => console.log('查看详情')}>
{t('查看详情')}
</Menu.Item>
{/* <Menu.Item onClick={handleShowGroupInfo}>{t('查看详情')}</Menu.Item> */}
{/* {isGroupManager && (
<Menu.Item onClick={handleShowInvite}>{t('邀请成员')}</Menu.Item>
)}
{isGroupManager && (
<Menu.Item onClick={handleCreateGroupPanel}>{t('创建面板')}</Menu.Item>
)}
<Menu.Item danger={true} onClick={handleQuitGroup}>
{currentUserUUID === groupInfo.owner_uuid ? t('解散团') : t('退出团')}
</Menu.Item> */}
<Menu.Item key="1" onClick={() => console.log('邀请用户')}>
{t('邀请用户')}
</Menu.Item>
</Menu>
);

Loading…
Cancel
Save