update
This commit is contained in:
@@ -23,7 +23,7 @@ export const ContainerTabs = () => {
|
||||
return [
|
||||
{
|
||||
type: 'layout',
|
||||
text: t('Setting.Layout'),
|
||||
text: 'Layout',
|
||||
icon: (
|
||||
<IconWrapper>
|
||||
<LayoutIcon />
|
||||
@@ -33,7 +33,7 @@ export const ContainerTabs = () => {
|
||||
},
|
||||
{
|
||||
type: 'comment',
|
||||
text: t('Setting.Comment'),
|
||||
text: 'Comment',
|
||||
icon: (
|
||||
<IconWrapper>
|
||||
<CommentIcon />
|
||||
@@ -50,7 +50,7 @@ export const ContainerTabs = () => {
|
||||
},
|
||||
{
|
||||
type: 'settings',
|
||||
text: t('Setting.Settings'),
|
||||
text: 'Settings',
|
||||
icon: (
|
||||
<IconWrapper>
|
||||
<SettingsIcon />
|
||||
@@ -76,7 +76,7 @@ export const ContainerTabs = () => {
|
||||
const { type, text, icon } = tab;
|
||||
return (
|
||||
<TabItemTitle
|
||||
title={text}
|
||||
title={t(text)}
|
||||
icon={icon}
|
||||
isActive={activeTab === type}
|
||||
onClick={() => {
|
||||
|
||||
@@ -62,6 +62,22 @@ export const SettingsList = () => {
|
||||
))}
|
||||
</Select>
|
||||
</div>
|
||||
) : item.name === '当前语言' ? (
|
||||
<div style={{ marginLeft: '12em' }}>
|
||||
<Select
|
||||
defaultValue="zh"
|
||||
onChange={changeLanguage}
|
||||
>
|
||||
{options.map(option => (
|
||||
<Option
|
||||
key={option.value}
|
||||
value={option.value}
|
||||
>
|
||||
{option.text}
|
||||
</Option>
|
||||
))}
|
||||
</Select>
|
||||
</div>
|
||||
) : null}
|
||||
</ListItem>
|
||||
);
|
||||
|
||||
@@ -15,7 +15,7 @@ export const LastModified = () => {
|
||||
<div>
|
||||
<div>
|
||||
<ContentText type="xs">
|
||||
<span>{t('stetting.Settings.Last edited by')}</span>
|
||||
<span>{t('Last edited by')}</span>
|
||||
<span>{username}</span>
|
||||
</ContentText>
|
||||
</div>
|
||||
|
||||
@@ -21,9 +21,7 @@ export const Logout = () => {
|
||||
return (
|
||||
<ListItem onClick={logout}>
|
||||
<StyledIcon />
|
||||
<ContentText type="base">
|
||||
{t('stetting.Settings.Logout')}
|
||||
</ContentText>
|
||||
<ContentText type="base">{t('Logout')}</ContentText>
|
||||
</ListItem>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -82,7 +82,7 @@ export const useSettings = (): SettingItem[] => {
|
||||
// },
|
||||
{
|
||||
type: 'button',
|
||||
name: t('Setting.Settings.Duplicate Page'),
|
||||
name: t('Duplicate Page'),
|
||||
onClick: async () => {
|
||||
const newPageInfo = await duplicatePage({
|
||||
workspaceId,
|
||||
@@ -93,7 +93,7 @@ export const useSettings = (): SettingItem[] => {
|
||||
},
|
||||
{
|
||||
type: 'button',
|
||||
name: t('Setting.Settings.Copy Page Link'),
|
||||
name: t('Copy Page Link'),
|
||||
onClick: () => {
|
||||
copyToClipboard(window.location.href);
|
||||
message.success('Page link copied successfully');
|
||||
@@ -101,7 +101,7 @@ export const useSettings = (): SettingItem[] => {
|
||||
},
|
||||
{
|
||||
type: 'button',
|
||||
name: t('Setting.Settings.Language'),
|
||||
name: t('Language'),
|
||||
onClick: () => {
|
||||
//Do noting
|
||||
},
|
||||
@@ -150,7 +150,7 @@ export const useSettings = (): SettingItem[] => {
|
||||
},
|
||||
{
|
||||
type: 'button',
|
||||
name: t('Setting.Settings.Clear Workspace'),
|
||||
name: t('Clear Workspace'),
|
||||
onClick: () => clearWorkspace(workspaceId),
|
||||
flag: 'booleanClearWorkspace',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user