diff --git a/components/sidebar/sidebar.tsx b/components/sidebar/sidebar.tsx index 69a228e..a729a0f 100644 --- a/components/sidebar/sidebar.tsx +++ b/components/sidebar/sidebar.tsx @@ -8,12 +8,17 @@ import { WorkspaceSwitcher } from "../utility/workspace-switcher" import { WorkspaceSettings } from "../workspace/workspace-settings" import { SidebarContent } from "./sidebar-content" +import { useTranslation } from "react-i18next"; + interface SidebarProps { contentType: ContentType showSidebar: boolean } export const Sidebar: FC = ({ contentType, showSidebar }) => { + + const { t } = useTranslation(); + const { folders, chats, diff --git a/components/workspace/workspace-settings.tsx b/components/workspace/workspace-settings.tsx index 083c7e9..90d8c0c 100644 --- a/components/workspace/workspace-settings.tsx +++ b/components/workspace/workspace-settings.tsx @@ -28,9 +28,14 @@ import { TextareaAutosize } from "../ui/textarea-autosize" import { WithTooltip } from "../ui/with-tooltip" import { DeleteWorkspace } from "./delete-workspace" +import { useTranslation } from "react-i18next"; + interface WorkspaceSettingsProps {} export const WorkspaceSettings: FC = ({}) => { + + const { t } = useTranslation(); + const { profile, selectedWorkspace, @@ -168,7 +173,7 @@ export const WorkspaceSettings: FC = ({}) => { Workspace Settings} + display={
{t("side.workspaceSettings")}
} trigger={ = ({}) => {
- Workspace Settings + {t("side.workspaceSettings")} {selectedWorkspace?.is_home && } {selectedWorkspace?.is_home && (
- This is your home workspace for personal use. + {t("side.workspaceDescription")}
)}
- Main - Defaults + {t("side.main")} + {t("side.defaults")} <>
- + setName(e.target.value)} /> @@ -227,7 +232,7 @@ export const WorkspaceSettings: FC = ({}) => {
*/}
- + = ({}) => {
= ({}) => {
- These are the settings your workspace begins with when selected. + {t("side.workspaceBeginSettings")}
= ({}) => {
diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json index 1cfadd1..cad5942 100644 --- a/public/locales/en/translation.json +++ b/public/locales/en/translation.json @@ -130,7 +130,21 @@ "selectWorkspace": "Select workspace...", "newWorkspace": "New Workspace", "searchWorkspaces": "Search workspaces...", - "noWorkspacesFound": "No workspaces found" + "noWorkspacesFound": "No workspaces found", + "workspaceSettings": "Workspace Settings", + "workspaceImage": "Workspace Image", + "workspaceName": "Workspace Name", + "workspaceInstructions": "Workspace Instructions", + "workspaceDescription": "This is your home workspace for personal use.", + "save": "Save", + "cancel": "Cancel", + "howToRespond": "How would you like the AI to respond in this workspace?", + "main": "Main", + "defaults": "Defaults", + "aiResponseInstructions": "How would you like the AI to respond in this workspace?", + "workspaceNamePlaceholder": "Name...", + "workspaceBeginSettings": "These are the settings your workspace begins with when selected.", + "workspaceInstructionsPlaceholder": "Instructions... (optional)" } - + } diff --git a/public/locales/ja/translation.json b/public/locales/ja/translation.json index 63f9308..d223fac 100644 --- a/public/locales/ja/translation.json +++ b/public/locales/ja/translation.json @@ -129,8 +129,22 @@ "selectWorkspace": "ワークスペースを選択...", "newWorkspace": "新しいワークスペース", "searchWorkspaces": "ワークスペースを検索...", - "noWorkspacesFound": "ワークスペースが見つかりません" + "noWorkspacesFound": "ワークスペースが見つかりません", + "workspaceSettings": "ワークスペース設定", + "workspaceImage": "ワークスペース画像", + "workspaceName": "ワークスペース名", + "workspaceInstructions": "ワークスペース指示", + "workspaceDescription": "これはあなたの個人用のホームワークスペースです", + "save": "保存", + "cancel": "キャンセル", + "howToRespond": "このワークスペースでAIにどのように応答してほしいですか?", + "main": "メイン", + "defaults": "デフォルト", + "aiResponseInstructions": "このワークスペースでAIにどのように応答してほしいですか?", + "workspaceNamePlaceholder": "名前を入力...", + "workspaceBeginSettings": "これらはワークスペースを選択したときに始まる設定です。", + "workspaceInstructionsPlaceholder": "説明...(オプション)" } - + } \ No newline at end of file diff --git a/public/locales/zh/translation.json b/public/locales/zh/translation.json index 73ee6f6..9113610 100644 --- a/public/locales/zh/translation.json +++ b/public/locales/zh/translation.json @@ -129,7 +129,21 @@ "selectWorkspace": "选择工作区...", "newWorkspace": "新建工作区", "searchWorkspaces": "搜索工作区...", - "noWorkspacesFound": "未找到工作区" + "noWorkspacesFound": "未找到工作区", + "workspaceSettings": "工作区设置", + "workspaceImage": "工作区图片", + "workspaceName": "工作区名称", + "workspaceInstructions": "工作区说明", + "workspaceDescription": "这是您的个人专用工作区", + "save": "保存", + "cancel": "取消", + "howToRespond": "您希望 AI 如何在此工作区内回应?", + "main": "主设置", + "defaults": "默认设置", + "aiResponseInstructions": "您希望 AI 在此工作区内如何回应?", + "workspaceNamePlaceholder": "请输入名称...", + "workspaceBeginSettings": "这些是选择此工作区时的初始设置。", + "workspaceInstructionsPlaceholder": "说明...(可选)" } - + }