diff --git a/web/src/app/home/components/home-sidebar/HomeSidebar.tsx b/web/src/app/home/components/home-sidebar/HomeSidebar.tsx index 5083613a..30a1b62a 100644 --- a/web/src/app/home/components/home-sidebar/HomeSidebar.tsx +++ b/web/src/app/home/components/home-sidebar/HomeSidebar.tsx @@ -12,7 +12,16 @@ import langbotIcon from '@/app/assets/langbot-logo.webp'; import { systemInfo } from '@/app/infra/http/HttpClient'; import { getCloudServiceClientSync } from '@/app/infra/http'; import { useTranslation } from 'react-i18next'; -import { Moon, Sun, Monitor } from 'lucide-react'; +import { + Moon, + Sun, + Monitor, + CircleHelp, + Lightbulb, + Lock, + LogOut, + KeyRound, +} from 'lucide-react'; import { useTheme } from 'next-themes'; import { @@ -184,23 +193,6 @@ export default function HomeSidebar({ )} - { - setApiKeyDialogOpen(true); - }} - isSelected={false} - icon={ - - - - } - name={t('common.apiIntegration')} - /> - { @@ -262,6 +254,23 @@ export default function HomeSidebar({ /> +
+ + {t('common.integration')} + + +
+
{t('common.account')} + {systemInfo?.allow_change_password && ( )} @@ -326,14 +335,7 @@ export default function HomeSidebar({ handleLogout(); }} > - - - + {t('common.logout')}
diff --git a/web/src/i18n/locales/en-US.ts b/web/src/i18n/locales/en-US.ts index 128e317b..68a1ce9b 100644 --- a/web/src/i18n/locales/en-US.ts +++ b/web/src/i18n/locales/en-US.ts @@ -2,8 +2,9 @@ const enUS = { common: { login: 'Login', logout: 'Logout', - accountOptions: 'Account', + accountOptions: 'Settings', account: 'Account', + integration: 'Integration', email: 'Email', password: 'Password', welcome: 'Welcome back to LangBot 👋', @@ -16,6 +17,7 @@ const enUS = { emptyPassword: 'Please enter your password', language: 'Language', helpDocs: 'Get Help', + featureRequest: 'Feature Request', create: 'Create', edit: 'Edit', delete: 'Delete', diff --git a/web/src/i18n/locales/ja-JP.ts b/web/src/i18n/locales/ja-JP.ts index c82c8a62..6b1bf53c 100644 --- a/web/src/i18n/locales/ja-JP.ts +++ b/web/src/i18n/locales/ja-JP.ts @@ -2,8 +2,9 @@ const jaJP = { common: { login: 'ログイン', logout: 'ログアウト', - accountOptions: 'アカウントオプション', + accountOptions: 'システム設定', account: 'アカウント', + integration: '連携', email: 'メールアドレス', password: 'パスワード', welcome: 'LangBot へおかえりなさい 👋', @@ -17,6 +18,7 @@ const jaJP = { emptyPassword: 'パスワードを入力してください', language: '言語', helpDocs: 'ヘルプドキュメント', + featureRequest: '機能リクエスト', create: '作成', edit: '編集', delete: '削除', diff --git a/web/src/i18n/locales/zh-Hans.ts b/web/src/i18n/locales/zh-Hans.ts index c76c5c5e..c3e2386f 100644 --- a/web/src/i18n/locales/zh-Hans.ts +++ b/web/src/i18n/locales/zh-Hans.ts @@ -2,8 +2,9 @@ const zhHans = { common: { login: '登录', logout: '退出登录', - accountOptions: '账户选项', + accountOptions: '系统设置', account: '账户', + integration: '连接', email: '邮箱', password: '密码', welcome: '欢迎回到 LangBot 👋', @@ -16,6 +17,7 @@ const zhHans = { emptyPassword: '请输入密码', language: '语言', helpDocs: '帮助文档', + featureRequest: '需求建议', create: '创建', edit: '编辑', delete: '删除', diff --git a/web/src/i18n/locales/zh-Hant.ts b/web/src/i18n/locales/zh-Hant.ts index 6bec92ef..933420b1 100644 --- a/web/src/i18n/locales/zh-Hant.ts +++ b/web/src/i18n/locales/zh-Hant.ts @@ -2,8 +2,9 @@ const zhHant = { common: { login: '登入', logout: '登出', - accountOptions: '帳戶選項', + accountOptions: '系統設定', account: '帳戶', + integration: '連接', email: '電子郵件', password: '密碼', welcome: '歡迎回到 LangBot 👋', @@ -16,6 +17,7 @@ const zhHant = { emptyPassword: '請輸入密碼', language: '語言', helpDocs: '輔助說明', + featureRequest: '需求建議', create: '建立', edit: '編輯', delete: '刪除',