mirror of
https://github.com/docmost/docmost.git
synced 2025-11-16 16:21:12 +10:00
feat: update workspace translation
This commit is contained in:
@ -37,18 +37,5 @@
|
||||
"Full page width": "Full page width",
|
||||
"Choose your preferred page width.": "Choose your preferred page width.",
|
||||
"Toggle full page width": "Toggle full page width"
|
||||
},
|
||||
"workspace": {
|
||||
"general": {
|
||||
"General": "General",
|
||||
"Name": "Name",
|
||||
"e.g ACME": "e.g ACME",
|
||||
"Save": "Save",
|
||||
"Updated successfully": "Updated successfully",
|
||||
"Failed to update data": "Failed to update data"
|
||||
},
|
||||
"member": {},
|
||||
"group": {},
|
||||
"space": {}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,4 +1,10 @@
|
||||
{
|
||||
"General": "General",
|
||||
"Name": "Name",
|
||||
"e.g ACME": "e.g ACME",
|
||||
"Save": "Save",
|
||||
"Updated successfully": "Updated successfully",
|
||||
"Failed to update data": "Failed to update data",
|
||||
"Members": "Members",
|
||||
"Invite members": "Invite members",
|
||||
"Invite new members": "Invite new members",
|
||||
|
||||
@ -37,18 +37,5 @@
|
||||
"Full page width": "全页宽度",
|
||||
"Choose your preferred page width.": "选择您喜欢的页面宽度。",
|
||||
"Toggle full page width": "切换全页宽度"
|
||||
},
|
||||
"workspace": {
|
||||
"general": {
|
||||
"General": "常规",
|
||||
"Name": "名称",
|
||||
"e.g ACME": "例如:ACME",
|
||||
"Save": "保存",
|
||||
"Updated successfully": "更新成功",
|
||||
"Failed to update data": "数据更新失败"
|
||||
},
|
||||
"member": {},
|
||||
"group": {},
|
||||
"space": {}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,4 +1,10 @@
|
||||
{
|
||||
"General": "常规",
|
||||
"Name": "名称",
|
||||
"e.g ACME": "例如:ACME",
|
||||
"Save": "保存",
|
||||
"Updated successfully": "更新成功",
|
||||
"Failed to update data": "数据更新失败",
|
||||
"Members": "成员",
|
||||
"Invite members": "邀请成员",
|
||||
"Invite new members": "邀请新成员",
|
||||
|
||||
@ -22,9 +22,7 @@ const workspaceAtom = focusAtom(currentUserAtom, (optic) =>
|
||||
);
|
||||
|
||||
export default function WorkspaceNameForm() {
|
||||
const { t } = useTranslation("settings", {
|
||||
keyPrefix: "workspace.general",
|
||||
});
|
||||
const { t } = useTranslation("workspace");
|
||||
const [isLoading, setIsLoading] = useState(false);
|
||||
const [currentUser] = useAtom(currentUserAtom);
|
||||
const [, setWorkspace] = useAtom(workspaceAtom);
|
||||
|
||||
@ -6,9 +6,7 @@ import CreateSpaceModal from "@/features/space/components/create-space-modal.tsx
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
export default function Spaces() {
|
||||
const { t } = useTranslation("settings", {
|
||||
keyPrefix: "workspace.space",
|
||||
});
|
||||
const { t } = useTranslation("space");
|
||||
const { isAdmin } = useUserRole();
|
||||
|
||||
return (
|
||||
|
||||
@ -3,9 +3,7 @@ import WorkspaceNameForm from "@/features/workspace/components/settings/componen
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
export default function WorkspaceSettings() {
|
||||
const { t } = useTranslation("settings", {
|
||||
keyPrefix: "workspace.general",
|
||||
});
|
||||
const { t } = useTranslation("workspace");
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user