mirror of
https://github.com/docmost/docmost.git
synced 2025-11-17 00:51:15 +10:00
feat: update page translation
This commit is contained in:
@ -22,5 +22,12 @@
|
|||||||
"Full width": "Full width",
|
"Full width": "Full width",
|
||||||
"Page history": "Page history",
|
"Page history": "Page history",
|
||||||
"Export": "Export",
|
"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": {
|
"home": {
|
||||||
"Recently updated": "Recently updated"
|
"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": "全宽",
|
"Full width": "全宽",
|
||||||
"Page history": "页面历史",
|
"Page history": "页面历史",
|
||||||
"Export": "导出",
|
"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": {
|
"home": {
|
||||||
"Recently updated": "最近更新"
|
"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) {
|
function HistoryList({ pageId }: Props) {
|
||||||
const { t } = useTranslation("translation", { keyPrefix: "pageHistory" });
|
const { t } = useTranslation("page");
|
||||||
|
|
||||||
const [activeHistoryId, setActiveHistoryId] = useAtom(activeHistoryIdAtom);
|
const [activeHistoryId, setActiveHistoryId] = useAtom(activeHistoryIdAtom);
|
||||||
const {
|
const {
|
||||||
data: pageHistoryList,
|
data: pageHistoryList,
|
||||||
|
|||||||
@ -8,7 +8,7 @@ interface Props {
|
|||||||
pageId: string;
|
pageId: string;
|
||||||
}
|
}
|
||||||
export default function HistoryModal({ pageId }: Props) {
|
export default function HistoryModal({ pageId }: Props) {
|
||||||
const { t } = useTranslation("translation", { keyPrefix: "pageHistory" });
|
const { t } = useTranslation("page");
|
||||||
const [isModalOpen, setModalOpen] = useAtom(historyAtoms);
|
const [isModalOpen, setModalOpen] = useAtom(historyAtoms);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@ -7,7 +7,7 @@ interface HistoryProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function HistoryView({ historyId }: HistoryProps) {
|
function HistoryView({ historyId }: HistoryProps) {
|
||||||
const { t } = useTranslation("translation", { keyPrefix: "pageHistory" });
|
const { t } = useTranslation("page");
|
||||||
const { data, isLoading, isError } = usePageHistoryQuery(historyId);
|
const { data, isLoading, isError } = usePageHistoryQuery(historyId);
|
||||||
|
|
||||||
if (isLoading) {
|
if (isLoading) {
|
||||||
|
|||||||
@ -15,7 +15,7 @@ import {
|
|||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
|
|
||||||
export default function Page() {
|
export default function Page() {
|
||||||
const { t } = useTranslation("translation", { keyPrefix: "page" });
|
const { t } = useTranslation("page");
|
||||||
const { pageSlug } = useParams();
|
const { pageSlug } = useParams();
|
||||||
const {
|
const {
|
||||||
data: page,
|
data: page,
|
||||||
|
|||||||
Reference in New Issue
Block a user