update i18n

This commit is contained in:
JimmFly
2022-08-30 12:42:04 +08:00
parent 6b373642e7
commit 838113941e
7 changed files with 55 additions and 36 deletions
@@ -23,7 +23,7 @@ export const ContainerTabs = () => {
return [
{
type: 'layout',
text: 'Layout',
text: t('Layout'),
icon: (
<IconWrapper>
<LayoutIcon />
@@ -33,7 +33,7 @@ export const ContainerTabs = () => {
},
{
type: 'comment',
text: 'Comment',
text: t('Comment'),
icon: (
<IconWrapper>
<CommentIcon />
@@ -50,7 +50,7 @@ export const ContainerTabs = () => {
},
{
type: 'settings',
text: 'Settings',
text: t('Settings'),
icon: (
<IconWrapper>
<SettingsIcon />
@@ -59,7 +59,7 @@ export const ContainerTabs = () => {
panel: <SettingsPanel />,
},
];
}, [activeCommentId, resolveComment]);
}, [activeCommentId, resolveComment, t]);
const settingsTabsData = useMemo(() => {
return getSettingsTabsData();
@@ -76,7 +76,7 @@ export const ContainerTabs = () => {
const { type, text, icon } = tab;
return (
<TabItemTitle
title={t(text)}
title={text}
icon={icon}
isActive={activeTab === type}
onClick={() => {