Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🐛 fix add lost portal locals files (#10943)

Shinji-Lide949d19ad6e
diff --git a/locales/zh-CN/portal.json b/locales/zh-CN/portal.json
index 0421795f8e5..c156d22ee3c 100644
--- a/locales/zh-CN/portal.json
+++ b/locales/zh-CN/portal.json
@@ -17,5 +17,6 @@
"notebook.delete": "删除",
"notebook.empty": "暂无文档,当前话题关联的文档将会显示在这里",
"notebook.title": "Notebook",
+ "openInPageEditor": "在文稿中编辑",
"title": "工作区"
}
\ No newline at end of file
diff --git a/src/features/Portal/Document/Header.tsx b/src/features/Portal/Document/Header.tsx
index dba0bcef914..0caf3757bc8 100644
--- a/src/features/Portal/Document/Header.tsx
+++ b/src/features/Portal/Document/Header.tsx
@@ -17,7 +17,7 @@ import { oneLineEllipsis } from '@/styles';
import AutoSaveHint from './AutoSaveHint';
const Header = () => {
- const { t } = useTranslation('file');
+ const { t } = useTranslation('portal');
const navigate = useNavigate();
const [loading, setLoading] = useState(false);
@@ -67,7 +67,7 @@ const Header = () => {
size={'small'}
type={'text'}
>
- {t('portal.openInPageEditor')}
+ {t('openInPageEditor')}
</Button>
</Flexbox>
</Flexbox>
diff --git a/src/locales/default/portal.ts b/src/locales/default/portal.ts
index 3f61982e549..08af6fe6f96 100644
--- a/src/locales/default/portal.ts
+++ b/src/locales/default/portal.ts
@@ -18,5 +18,6 @@ export default {
"notebook.delete": "Delete",
"notebook.empty": "No pages yet. Pages linked to this Topic will show up here.",
"notebook.title": "Notebook",
+ "openInPageEditor": "Edit in Page",
"title": "Workspace"
}