feat: complete page translation

This commit is contained in:
lleohao
2024-09-03 02:33:26 +00:00
parent b850cfe0e6
commit 9c00fb5ed9
9 changed files with 84 additions and 47 deletions

View File

@ -53,8 +53,7 @@ interface PageActionMenuProps {
readOnly?: boolean;
}
function PageActionMenu({ readOnly }: PageActionMenuProps) {
const { t } = useTranslation("translation", { keyPrefix: "page" });
const { t } = useTranslation("page");
const [, setHistoryModalOpen] = useAtom(historyAtoms);
const clipboard = useClipboard({ timeout: 500 });
const { pageSlug, spaceSlug } = useParams();