feat: update workspace translation

This commit is contained in:
lleohao
2024-09-03 03:01:56 +00:00
parent 909b470df9
commit ffee9732e1
7 changed files with 15 additions and 35 deletions

View File

@ -37,18 +37,5 @@
"Full page width": "Full page width", "Full page width": "Full page width",
"Choose your preferred page width.": "Choose your preferred page width.", "Choose your preferred page width.": "Choose your preferred page width.",
"Toggle full page width": "Toggle full 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": {}
} }
} }

View File

@ -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", "Members": "Members",
"Invite members": "Invite members", "Invite members": "Invite members",
"Invite new members": "Invite new members", "Invite new members": "Invite new members",

View File

@ -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": "常规",
"Name": "名称",
"e.g ACME": "例如ACME",
"Save": "保存",
"Updated successfully": "更新成功",
"Failed to update data": "数据更新失败"
},
"member": {},
"group": {},
"space": {}
} }
} }

View File

@ -1,4 +1,10 @@
{ {
"General": "常规",
"Name": "名称",
"e.g ACME": "例如ACME",
"Save": "保存",
"Updated successfully": "更新成功",
"Failed to update data": "数据更新失败",
"Members": "成员", "Members": "成员",
"Invite members": "邀请成员", "Invite members": "邀请成员",
"Invite new members": "邀请新成员", "Invite new members": "邀请新成员",

View File

@ -22,9 +22,7 @@ const workspaceAtom = focusAtom(currentUserAtom, (optic) =>
); );
export default function WorkspaceNameForm() { export default function WorkspaceNameForm() {
const { t } = useTranslation("settings", { const { t } = useTranslation("workspace");
keyPrefix: "workspace.general",
});
const [isLoading, setIsLoading] = useState(false); const [isLoading, setIsLoading] = useState(false);
const [currentUser] = useAtom(currentUserAtom); const [currentUser] = useAtom(currentUserAtom);
const [, setWorkspace] = useAtom(workspaceAtom); const [, setWorkspace] = useAtom(workspaceAtom);

View File

@ -6,9 +6,7 @@ import CreateSpaceModal from "@/features/space/components/create-space-modal.tsx
import { useTranslation } from "react-i18next"; import { useTranslation } from "react-i18next";
export default function Spaces() { export default function Spaces() {
const { t } = useTranslation("settings", { const { t } = useTranslation("space");
keyPrefix: "workspace.space",
});
const { isAdmin } = useUserRole(); const { isAdmin } = useUserRole();
return ( return (

View File

@ -3,9 +3,7 @@ import WorkspaceNameForm from "@/features/workspace/components/settings/componen
import { useTranslation } from "react-i18next"; import { useTranslation } from "react-i18next";
export default function WorkspaceSettings() { export default function WorkspaceSettings() {
const { t } = useTranslation("settings", { const { t } = useTranslation("workspace");
keyPrefix: "workspace.general",
});
return ( return (
<> <>