feat(i18n): add internationalization support for settings pages
- Initialize locale store in App.vue alongside theme store - Replace hardcoded menu labels with i18n keys in system-config.ts - Add English, Chinese, and Japanese translations for settings content - Integrate vue-i18n in SystemConfig, AccountSetting, and Version components - Update UI components to use translated strings for all user-facing text - Implement language switching functionality in settings page
This commit is contained in:
@@ -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."
|
||||
}
|
||||
}
|
||||
@@ -1 +1,101 @@
|
||||
{}
|
||||
{
|
||||
"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": "自動アップデートを有効にすると、アップデートが自動的にダウンロードされ、インストールされます。"
|
||||
}
|
||||
}
|
||||
@@ -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": "开启自动更新后,更新将自动下载并安装。"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user