diff --git a/src/App.vue b/src/App.vue index 5419f90..e9028df 100644 --- a/src/App.vue +++ b/src/App.vue @@ -9,10 +9,14 @@ diff --git a/src/constant/system-config.ts b/src/constant/system-config.ts index 279d388..685e5db 100644 --- a/src/constant/system-config.ts +++ b/src/constant/system-config.ts @@ -13,7 +13,7 @@ export interface MenuItem { export const systemMenus: MenuItem[] = [ { id: 1, - name: '账号', + name: 'setting.menu.account', icon: RiUserLine, color: '#525866', activeColor: '#2B7FFF', @@ -21,7 +21,7 @@ export const systemMenus: MenuItem[] = [ }, { id: 2, - name: '渠道管理', + name: 'setting.menu.channel', icon: RiHotelLine, color: '#525866', activeColor: '#2B7FFF', @@ -29,7 +29,7 @@ export const systemMenus: MenuItem[] = [ }, { id: 3, - name: '房型管理', + name: 'setting.menu.roomType', icon: RiHotelBedLine, color: '#525866', activeColor: '#2B7FFF', @@ -37,7 +37,7 @@ export const systemMenus: MenuItem[] = [ }, { id: 4, - name: '通用设置', + name: 'setting.menu.general', icon: RiSettingsLine, color: '#525866', activeColor: '#2B7FFF', diff --git a/src/i18n/locales/en/setting.json b/src/i18n/locales/en/setting.json index cb7e09f..aca99a6 100644 --- a/src/i18n/locales/en/setting.json +++ b/src/i18n/locales/en/setting.json @@ -1,5 +1,21 @@ { "title": "Settings", + "menu": { + "title": "System Settings", + "account": "Account", + "channel": "Channels", + "roomType": "Room Types", + "general": "General" + }, + "account": { + "title": "Account Settings", + "desc": "Please associate PMS and channel room names, smart mapping is available", + "account": "Account", + "password": "Login Password", + "passwordDesc": "Used for investor login operations, last login time: ", + "configured": "Configured", + "changePassword": "Change Password" + }, "base": "Basic Settings", "provider": { "modelConfig": "Model Configuration" @@ -50,5 +66,36 @@ "defaultModel": "Default Model", "apiKey": "API Key", "apiUrl": "API URL" + }, + "updates": { + "title": "Updates", + "description": "Keep zn-ai up to date", + "autoCheck": "Auto check for updates", + "autoCheckDesc": "Check for updates on startup", + "autoDownload": "Auto download updates", + "autoDownloadDesc": "Automatically download and install updates", + "status": { + "checking": "Checking for updates...", + "downloading": "Downloading new version... {{percent}}%", + "available": "New version available: v{{version}}", + "downloaded": "Download complete, ready to install", + "autoInstalling": "Will restart and install update in {{seconds}} seconds...", + "failed": "Update error: {{error}}", + "latest": "You have the latest version", + "check": "Check for updates to get latest features" + }, + "action": { + "checking": "Checking...", + "downloading": "Downloading...", + "download": "Download Update", + "install": "Restart and Install", + "cancelAutoInstall": "Cancel", + "retry": "Retry", + "check": "Check for Updates" + }, + "currentVersion": "Current Version", + "whatsNew": "What's New:", + "errorDetails": "Error Details:", + "help": "When auto-update is enabled, updates will be downloaded and installed automatically." } } \ No newline at end of file diff --git a/src/i18n/locales/ja/setting.json b/src/i18n/locales/ja/setting.json index 9e26dfe..041fd99 100644 --- a/src/i18n/locales/ja/setting.json +++ b/src/i18n/locales/ja/setting.json @@ -1 +1,101 @@ -{} \ No newline at end of file +{ + "title": "設定", + "menu": { + "title": "システム設定", + "account": "アカウント", + "channel": "チャネル管理", + "roomType": "部屋タイプ", + "general": "一般設定" + }, + "account": { + "title": "アカウント設定", + "desc": "PMSとチャネルの部屋タイプ名を関連付けてください。スマートマッピングが利用可能です", + "account": "アカウント", + "password": "ログインパスワード", + "passwordDesc": "投資家のログイン操作に使用されます、前回のログイン時間:", + "configured": "設定済み", + "changePassword": "パスワードを変更" + }, + "base": "基本設定", + "provider": { + "modelConfig": "モデル設定" + }, + "theme": { + "label": "テーマ設定", + "dark": "ダークテーマ", + "light": "ライトテーマ", + "system": "システムに従う", + "primaryColor": "テーマカラー", + "description": "アプリケーションの外観をカスタマイズする", + "themeMode": "テーマモード", + "themeModeDescription": "お好みのテーマモードを選択するか、システム設定に従って自動的に切り替えます。", + "lightLabel": "ライト", + "lightDescription": "明るくクリア", + "darkLabel": "ダーク", + "darkDescription": "目に優しい", + "systemLabel": "システムに従う", + "systemDescription": "自動切り替え", + "currentTheme": "現在のテーマ", + "followingSystem": "システムテーマに従う ({{theme}})", + "setToLight": "ライトテーマに設定しました", + "setToDark": "ダークテーマに設定しました", + "preview": "プレビュー", + "previewDescription": "現在のテーマ効果を表示", + "lightPreview": "ライトプレビュー", + "darkPreview": "ダークプレビュー" + }, + "appearance": { + "fontSize": "フォントサイズ", + "fontSizeOptions": { + "10": "極小 (10px)", + "12": "小 (12px)", + "14": "標準 (14px)", + "16": "中 (16px)", + "18": "大 (18px)", + "20": "特大 (20px)", + "24": "極大 (24px)" + } + }, + "behavior": { + "minimizeToTray": "閉じる時にトレイに最小化" + }, + "language": { + "label": "言語設定" + }, + "providers": { + "defaultModel": "デフォルトモデル", + "apiKey": "APIキー", + "apiUrl": "API URL" + }, + "updates": { + "title": "アップデート", + "description": "zn-ai を最新の状態に保つ", + "autoCheck": "アップデートを自動確認", + "autoCheckDesc": "起動時にアップデートを確認する", + "autoDownload": "自動アップデート", + "autoDownloadDesc": "アップデートを自動的にダウンロードしてインストールする", + "status": { + "checking": "アップデートを確認中...", + "downloading": "新しいバージョンをダウンロード中... {{percent}}%", + "available": "新しいバージョンが利用可能: v{{version}}", + "downloaded": "ダウンロード完了、インストール準備完了", + "autoInstalling": "{{seconds}} 秒後に再起動してアップデートをインストールします...", + "failed": "アップデートエラー: {{error}}", + "latest": "最新バージョンを使用しています", + "check": "最新機能を利用するためにアップデートを確認する" + }, + "action": { + "checking": "確認中...", + "downloading": "ダウンロード中...", + "download": "アップデートをダウンロード", + "install": "再起動してインストール", + "cancelAutoInstall": "キャンセル", + "retry": "再試行", + "check": "アップデートを確認" + }, + "currentVersion": "現在のバージョン", + "whatsNew": "更新内容:", + "errorDetails": "エラーの詳細:", + "help": "自動アップデートを有効にすると、アップデートが自動的にダウンロードされ、インストールされます。" + } +} \ No newline at end of file diff --git a/src/i18n/locales/zh/setting.json b/src/i18n/locales/zh/setting.json index 1acc1a8..2af949f 100644 --- a/src/i18n/locales/zh/setting.json +++ b/src/i18n/locales/zh/setting.json @@ -1,5 +1,21 @@ { "title": "设置", + "menu": { + "title": "系统设置", + "account": "账号", + "channel": "渠道管理", + "roomType": "房型管理", + "general": "通用设置" + }, + "account": { + "title": "账号设置", + "desc": "请关联PMS和渠道房型名称,可使用智能对标", + "account": "账号", + "password": "登录密码", + "passwordDesc": "保障投资者登录操作时使用,上次登录时间:", + "configured": "已设置", + "changePassword": "修改密码" + }, "base": "基础设置", "provider": { "modelConfig": "模型配置" @@ -50,5 +66,36 @@ "defaultModel": "默认模型", "apiKey": "API密钥", "apiUrl": "API地址" + }, + "updates": { + "title": "更新", + "description": "保持 zn-ai 最新", + "autoCheck": "自动检查更新", + "autoCheckDesc": "启动时检查更新", + "autoDownload": "自动更新", + "autoDownloadDesc": "自动下载并安装更新", + "status": { + "checking": "正在检查更新...", + "downloading": "正在下载新版本... {{percent}}%", + "available": "发现新版本: v{{version}}", + "downloaded": "下载完成,准备安装", + "autoInstalling": "将在 {{seconds}} 秒后重启并安装更新...", + "failed": "更新出错: {{error}}", + "latest": "您已拥有最新版本", + "check": "检查更新以获取最新功能" + }, + "action": { + "checking": "检查中...", + "downloading": "下载中...", + "download": "下载更新", + "install": "重启安装", + "cancelAutoInstall": "取消", + "retry": "重试", + "check": "检查更新" + }, + "currentVersion": "当前版本", + "whatsNew": "更新内容:", + "errorDetails": "错误详情:", + "help": "开启自动更新后,更新将自动下载并安装。" } } \ No newline at end of file diff --git a/src/pages/setting/components/AccountSetting/index.vue b/src/pages/setting/components/AccountSetting/index.vue index b61549b..f0a5d3c 100644 --- a/src/pages/setting/components/AccountSetting/index.vue +++ b/src/pages/setting/components/AccountSetting/index.vue @@ -1,29 +1,36 @@ \ No newline at end of file diff --git a/src/pages/setting/components/SystemConfig/index.vue b/src/pages/setting/components/SystemConfig/index.vue index 279b3af..67983f7 100644 --- a/src/pages/setting/components/SystemConfig/index.vue +++ b/src/pages/setting/components/SystemConfig/index.vue @@ -1,22 +1,24 @@