mirror of
https://github.com/docmost/docmost.git
synced 2025-11-16 12:41:09 +10:00
feat: update page translation
This commit is contained in:
@ -22,5 +22,12 @@
|
||||
"Full width": "Full width",
|
||||
"Page history": "Page history",
|
||||
"Export": "Export",
|
||||
"Print PDF": "Print PDF"
|
||||
"Print PDF": "Print PDF",
|
||||
"Error loading page history.": "Error loading page history.",
|
||||
"No page history saved yet.": "No page history saved yet.",
|
||||
"Please confirm your action": "Please confirm your action",
|
||||
"Are you sure you want to restore this version? Any changes not versioned will be lost.": "Are you sure you want to restore this version? Any changes not versioned will be lost.",
|
||||
"Confirm": "Confirm",
|
||||
"Successfully restored": "Successfully restored",
|
||||
"Restore": "Restore"
|
||||
}
|
||||
|
||||
@ -38,19 +38,5 @@
|
||||
},
|
||||
"home": {
|
||||
"Recently updated": "Recently updated"
|
||||
},
|
||||
"space": {},
|
||||
"page": {},
|
||||
"page-history": {
|
||||
"Page history": "Page history",
|
||||
"Error loading page history.": "Error loading page history.",
|
||||
"No page history saved yet.": "No page history saved yet.",
|
||||
"Please confirm your action": "Please confirm your action",
|
||||
"Are you sure you want to restore this version? Any changes not versioned will be lost.": "Are you sure you want to restore this version? Any changes not versioned will be lost.",
|
||||
"Confirm": "Confirm",
|
||||
"Cancel": "Cancel",
|
||||
"Successfully restored": "Successfully restored",
|
||||
"Restore": "Restore",
|
||||
"Error fetching page data.": "Error fetching page data."
|
||||
}
|
||||
}
|
||||
|
||||
@ -22,5 +22,12 @@
|
||||
"Full width": "全宽",
|
||||
"Page history": "页面历史",
|
||||
"Export": "导出",
|
||||
"Print PDF": "打印 PDF"
|
||||
"Print PDF": "打印 PDF",
|
||||
"Error loading page history.": "加载页面历史时出错。",
|
||||
"No page history saved yet.": "尚未保存页面历史。",
|
||||
"Please confirm your action": "请确认您的操作",
|
||||
"Are you sure you want to restore this version? Any changes not versioned will be lost.": "您确定要恢复此版本吗?任何未版本化的更改将会丢失。",
|
||||
"Confirm": "确认",
|
||||
"Successfully restored": "恢复成功",
|
||||
"Restore": "恢复"
|
||||
}
|
||||
|
||||
@ -38,19 +38,5 @@
|
||||
},
|
||||
"home": {
|
||||
"Recently updated": "最近更新"
|
||||
},
|
||||
"space": {},
|
||||
"page": {},
|
||||
"page-history": {
|
||||
"Page history": "页面历史",
|
||||
"Error loading page history.": "加载页面历史时出错。",
|
||||
"No page history saved yet.": "尚未保存页面历史。",
|
||||
"Please confirm your action": "请确认您的操作",
|
||||
"Are you sure you want to restore this version? Any changes not versioned will be lost.": "您确定要恢复此版本吗?任何未版本化的更改将会丢失。",
|
||||
"Confirm": "确认",
|
||||
"Cancel": "取消",
|
||||
"Successfully restored": "恢复成功",
|
||||
"Restore": "恢复",
|
||||
"Error fetching page data.": "获取页面数据时出错。"
|
||||
}
|
||||
}
|
||||
|
||||
@ -23,8 +23,7 @@ interface Props {
|
||||
}
|
||||
|
||||
function HistoryList({ pageId }: Props) {
|
||||
const { t } = useTranslation("translation", { keyPrefix: "pageHistory" });
|
||||
|
||||
const { t } = useTranslation("page");
|
||||
const [activeHistoryId, setActiveHistoryId] = useAtom(activeHistoryIdAtom);
|
||||
const {
|
||||
data: pageHistoryList,
|
||||
|
||||
@ -8,7 +8,7 @@ interface Props {
|
||||
pageId: string;
|
||||
}
|
||||
export default function HistoryModal({ pageId }: Props) {
|
||||
const { t } = useTranslation("translation", { keyPrefix: "pageHistory" });
|
||||
const { t } = useTranslation("page");
|
||||
const [isModalOpen, setModalOpen] = useAtom(historyAtoms);
|
||||
|
||||
return (
|
||||
|
||||
@ -7,7 +7,7 @@ interface HistoryProps {
|
||||
}
|
||||
|
||||
function HistoryView({ historyId }: HistoryProps) {
|
||||
const { t } = useTranslation("translation", { keyPrefix: "pageHistory" });
|
||||
const { t } = useTranslation("page");
|
||||
const { data, isLoading, isError } = usePageHistoryQuery(historyId);
|
||||
|
||||
if (isLoading) {
|
||||
|
||||
@ -15,7 +15,7 @@ import {
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
export default function Page() {
|
||||
const { t } = useTranslation("translation", { keyPrefix: "page" });
|
||||
const { t } = useTranslation("page");
|
||||
const { pageSlug } = useParams();
|
||||
const {
|
||||
data: page,
|
||||
|
||||
Reference in New Issue
Block a user