Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ feat: 支持翻译会话消息到当前语言 #340

Merged
merged 10 commits into from
Oct 18, 2023
55 changes: 55 additions & 0 deletions locales/en_US/chat.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"agentDefaultMessage": "Hello, I'm **{{name}}**. You can start chatting with me right away or go to [Assistant Settings](/chat/settings#session={{id}}) to improve my information.",
"agentDefaultMessageWithSystemRole": "Hello, I'm **{{name}}**, {{systemRole}}. Let's start the conversation!",
"backToBottom": "Go to Latest Messages",
"clearCurrentMessages": "Clear Current Session Messages",
"confirmClearCurrentMessages": "You are about to clear the current session messages. Once cleared, they cannot be recovered. Please confirm your operation.",
"confirmRemoveSessionItemAlert": "You are about to delete this assistant. Once deleted, it cannot be recovered. Please confirm your operation.",
"defaultAgent": "Custom Assistant",
"defaultSession": "Custom Assistant",
"historyRange": "History Range",
"inbox": {
"defaultMessage": "Hello, I'm your intelligent assistant. You can ask me any questions, and I will do my best to answer you. If you need a more professional or customized assistant, you can click on `+` to create a custom assistant.",
"desc": "Activate brain clusters and spark thinking. Your intelligent assistant is here to communicate with you about everything.",
"title": "Chat Randomly"
},
"newAgent": "Create New Assistant",
"noDescription": "No description available",
"regenerate": "Regenerate",
"roleAndArchive": "Roles and Archives",
"searchAgentPlaceholder": "Search assistants and conversations...",
"send": "Send",
"sendPlaceholder": "Enter chat content...",
"shareModal": {
"download": "Download Screenshot",
"imageType": "Image Format",
"screenshot": "Screenshot",
"settings": "Export Settings",
"shareToShareGPT": "Generate ShareGPT Sharing Link",
"withBackground": "Include Background Image",
"withFooter": "Include Footer",
"withPluginInfo": "Include Plugin Information",
"withSystemRole": "Include Assistant Role Setting"
},
"stop": "Stop",
"temp": "Temporary",
"tokenDetail": "Role Setting: {{systemRoleToken}} · Chat History: {{chatsToken}}",
"tokenTag": {
"overload": "Exceeded Limit",
"remained": "Remaining",
"used": "Used"
},
"topic": {
"confirmRemoveTopic": "You are about to delete this topic. Once deleted, it cannot be recovered. Please proceed with caution.",
"defaultTitle": "Default Topic",
"saveCurrentMessages": "Save Current Session as Topic",
"searchPlaceholder": "Search topics...",
"title": "Topic"
},
"translate": {
"clear": "Clear Translation"
},
"translateTo": "Translate",
"updateAgent": "Update Assistant Information",
"warp": "Line Break"
}
68 changes: 17 additions & 51 deletions locales/en_US/common.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,19 @@
{
"about": "About",
"advanceSettings": "Advanced Settings",
"agentDefaultMessage": "Hello, I'm **{{name}}**. You can start chatting with me right away or go to [Agent Settings](/chat/settings#session={{id}}) to complete my information.",
"agentDefaultMessageWithSystemRole": "Hello, I'm **{{name}}**, {{systemRole}}. Let's start chatting!",
"agentMaxToken": "Max Session Length",
"agentModel": "Model",
"agentProfile": "Agent Information",
"agentProfile": "Agent Profile",
"appInitializing": "LobeChat is initializing, please wait...",
"archive": "Archive",
"autoGenerate": "Auto Generate",
"autoGenerateTooltip": "Auto generate agent description based on prompts",
"backToBottom": "Go to Latest Messages",
"cancel": "Cancel",
"changelog": "Changelog",
"clearCurrentMessages": "Clear Current Session Messages",
"close": "Close",
"confirmClearCurrentMessages": "You are about to clear the current session messages. Once cleared, they cannot be recovered. Please confirm your operation.",
"confirmRemoveSessionItemAlert": "You are about to delete this agent. Once deleted, it cannot be recovered. Please confirm your operation.",
"confirmRemoveSessionItemAlert": "You are about to delete this agent. Once deleted, it cannot be recovered. Please confirm your action.",
"copy": "Copy",
"copySuccess": "Copy Success",
"copySuccess": "Copy Successful",
"defaultAgent": "Custom Agent",
"defaultSession": "Custom Agent",
"delete": "Delete",
Expand All @@ -35,17 +30,18 @@
"feedback": "Feedback",
"historyRange": "History Range",
"import": "Import Configuration",
"inbox": {
"defaultMessage": "Hello, I'm your intelligent agent. You can ask me any questions and I will do my best to answer you. If you need a more professional or customized agent, you can click `+` to create a custom agent.",
"desc": "Activate the brain cluster and spark your thinking. Your intelligent agent is here to communicate with you about everything.",
"title": "Chat Freely"
"lang": {
"en": "English",
"en-US": "English",
"ja-JP": "Japanese",
"ko-KR": "Korean",
"ru-RU": "Russian",
"zh": "Simplified Chinese",
"zh-CN": "Simplified Chinese",
"zh-TW": "Traditional Chinese"
},
"message": {
"function_loading": "Plugin request in progress..."
},
"moreSetting": "More Settings...",
"newAgent": "New Agent",
"noDescription": "No Description",
"layoutInitializing": "Loading layout...",
"noDescription": "No description",
"ok": "OK",
"password": "Password",
"pin": "Pin",
Expand All @@ -54,51 +50,21 @@
"rename": "Rename",
"reset": "Reset",
"retry": "Retry",
"roleAndArchive": "Roles and Archives",
"searchAgentPlaceholder": "Search Agents and Conversations...",
"send": "Send",
"sendPlaceholder": "Enter chat content...",
"sessionList": "Agent List",
"setting": "Settings",
"share": "Share",
"shareModal": {
"download": "Download Screenshot",
"imageType": "Image Type",
"screenshot": "Screenshot",
"settings": "Export Settings",
"withBackground": "Include Background Image",
"withPluginInfo": "Include Plugin Information",
"withSystemRole": "Include Agent Role Setting",
"withFooter": "Including footer",
"shareToShareGPT": "Generate ShareGPT sharing link"
},
"stop": "Stop",
"switchMobileLayout": "Switching to mobile layout...",
"tab": {
"chat": "Chat",
"market": "Discover",
"setting": "Settings"
},
"temp": "Temporary",
"tokenDetail": "Role Setting: {{systemRoleToken}} · Message History: {{chatsToken}}",
"tokenTag": {
"overload": "Exceeded Limit",
"remained": "Remaining",
"used": "Used"
},
"topic": {
"confirmRemoveTopic": "You are about to delete this topic. Once deleted, it cannot be recovered. Please proceed with caution.",
"defaultTitle": "Default Topic",
"saveCurrentMessages": "Save the current session as a topic",
"searchPlaceholder": "Search Topics...",
"title": "Topic"
},
"updateAgent": "Update Agent Information",
"updatePrompt": "Update Prompts",
"updateAgent": "Update Agent Profile",
"upgradeVersion": {
"action": "Upgrade Now",
"hasNew": "New Update Available",
"hasNew": "Update available",
"newVersion": "New version available: {{version}}"
},
"warp": "Line break"
}
}
55 changes: 55 additions & 0 deletions locales/ja_JP/chat.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"agentDefaultMessage": "こんにちは、私は **{{name}}** です。すぐに会話を始めることができますし、[エージェント設定](/chat/settings#session={{id}}) に移動して私の情報を充実させることもできます。",
"agentDefaultMessageWithSystemRole": "こんにちは、私は **{{name}}** です、{{systemRole}}、さあ、会話を始めましょう!",
"backToBottom": "最新のメッセージを表示",
"clearCurrentMessages": "現在の会話メッセージをクリア",
"confirmClearCurrentMessages": "現在の会話メッセージをクリアします。クリア後は元に戻すことはできませんので、操作を確認してください",
"confirmRemoveSessionItemAlert": "このエージェントを削除します。削除後は元に戻すことはできませんので、操作を確認してください",
"defaultAgent": "デフォルトエージェント",
"defaultSession": "デフォルトエージェント",
"historyRange": "履歴範囲",
"inbox": {
"defaultMessage": "こんにちは、私はあなたのインテリジェントアシスタントです。何でも質問してください、できる限りお答えします。より専門的またはカスタマイズされたアシスタントが必要な場合は、`+` をクリックしてカスタムエージェントを作成できます",
"desc": "ブレインクラスタを起動し、思考の火花を引き起こします。あなたのインテリジェントアシスタントは、ここであなたとすべてを話します",
"title": "ちょっとおしゃべりしましょう"
},
"newAgent": "新しいエージェントを作成",
"noDescription": "説明はありません",
"regenerate": "再生成",
"roleAndArchive": "役割とアーカイブ",
"searchAgentPlaceholder": "エージェントと会話を検索...",
"send": "送信",
"sendPlaceholder": "チャット内容を入力...",
"shareModal": {
"download": "スクリーンショットをダウンロード",
"imageType": "画像形式",
"screenshot": "スクリーンショット",
"settings": "エクスポート設定",
"shareToShareGPT": "ShareGPT共有リンクを生成",
"withBackground": "背景画像を含む",
"withFooter": "フッターを含む",
"withPluginInfo": "プラグイン情報を含む",
"withSystemRole": "エージェントの役割設定を含む"
},
"stop": "停止",
"temp": "一時",
"tokenDetail": "役割設定: {{systemRoleToken}} · チャット履歴: {{chatsToken}}",
"tokenTag": {
"overload": "制限を超えています",
"remained": "残り",
"used": "使用済み"
},
"topic": {
"confirmRemoveTopic": "このトピックを削除します。削除後は元に戻すことはできませんので、注意して操作してください",
"defaultTitle": "デフォルトトピック",
"saveCurrentMessages": "現在の会話をトピックとして保存",
"searchPlaceholder": "トピックを検索...",
"title": "トピック"
},
"translate": {
"clear": "翻訳をクリア"
},
"translateTo": "翻訳",
"updateAgent": "エージェント情報を更新",
"warp": "改行"
}
62 changes: 14 additions & 48 deletions locales/ja_JP/common.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
{
"about": "について",
"advanceSettings": "詳細設定",
"agentDefaultMessage": "こんにちは、私は **{{name}}** です。すぐにチャットを始めることができますし、[エージェント設定](/chat/settings#session={{id}}) に移動して私の情報を完全にすることもできます。",
"agentDefaultMessageWithSystemRole": "こんにちは、私は **{{name}}** です。{{systemRole}}、さあ、チャットを始めましょう!",
"agentMaxToken": "セッションの最大トークン数",
"agentModel": "モデル",
"agentProfile": "エージェント情報",
"appInitializing": "LobeChat を起動しています。お待ちください...",
"appInitializing": "LobeChatを起動中です。お待ちください...",
"archive": "アーカイブ",
"autoGenerate": "自動生成",
"autoGenerateTooltip": "ヒントワードに基づいてエージェントの説明を自動生成します",
"backToBottom": "最新メッセージを表示",
"cancel": "キャンセル",
"changelog": "更新履歴",
"clearCurrentMessages": "現在のセッションのメッセージをクリア",
"close": "閉じる",
"confirmClearCurrentMessages": "現在のセッションのメッセージをクリアします。クリア後は元に戻すことはできませんので、操作を確認してください",
"confirmRemoveSessionItemAlert": "このエージェントを削除します。削除後は元に戻すことはできませんので、操作を確認してください",
"confirmRemoveSessionItemAlert": "このエージェントを削除します。削除後は元に戻すことはできません。操作を確認してください",
"copy": "コピー",
"copySuccess": "コピーが成功しました",
"defaultAgent": "デフォルトエージェント",
Expand All @@ -35,16 +30,17 @@
"feedback": "フィードバック",
"historyRange": "履歴範囲",
"import": "設定のインポート",
"inbox": {
"defaultMessage": "こんにちは、私はあなたのインテリジェントエージェントです。何でも質問してください、できる限りお答えします。より専門的でカスタマイズされたエージェントが必要な場合は、`+` をクリックしてカスタムエージェントを作成できます",
"desc": "ブレインクラスタを起動し、思考の火花を引き起こします。あなたのインテリジェントアシスタントとのすべてのコミュニケーションはここで行われます",
"title": "気軽にチャット"
"lang": {
"en": "英語",
"en-US": "英語",
"ja-JP": "日本語",
"ko-KR": "韓国語",
"ru-RU": "ロシア語",
"zh": "簡体中国語",
"zh-CN": "簡体中国語",
"zh-TW": "繁体中国語"
},
"message": {
"function_loading": "プラグインリクエスト中..."
},
"moreSetting": "その他の設定...",
"newAgent": "新しいエージェント",
"layoutInitializing": "レイアウトを読み込んでいます...",
"noDescription": "説明はありません",
"ok": "OK",
"password": "パスワード",
Expand All @@ -54,51 +50,21 @@
"rename": "名前の変更",
"reset": "リセット",
"retry": "再試行",
"roleAndArchive": "役割とアーカイブ",
"searchAgentPlaceholder": "エージェントとチャットを検索...",
"send": "送信",
"sendPlaceholder": "チャット内容を入力...",
"sessionList": "エージェントリスト",
"setting": "設定",
"share": "共有",
"shareModal": {
"download": "ダウンロード",
"imageType": "画像形式",
"screenshot": "スクリーンショット",
"settings": "設定をエクスポート",
"shareToShareGPT": "ShareGPT共有リンクを生成",
"withBackground": "背景画像を含む",
"withFooter": "フッターを含む",
"withPluginInfo": "プラグイン情報を含む",
"withSystemRole": "アシスタントの役割設定を含む"
},
"stop": "停止",
"switchMobileLayout": "モバイルレイアウトに切り替え中...",
"tab": {
"chat": "チャット",
"market": "発見",
"setting": "設定"
},
"temp": "一時的な",
"tokenDetail": "役割設定: {{systemRoleToken}} · チャット履歴: {{chatsToken}}",
"tokenTag": {
"overload": "制限を超える",
"remained": "残り",
"used": "使用済み"
},
"topic": {
"confirmRemoveTopic": "このトピックを削除しますか?削除後は元に戻せませんので、注意して操作してください。",
"defaultTitle": "デフォルトトピック",
"saveCurrentMessages": "現在のチャットをトピックとして保存",
"searchPlaceholder": "トピックを検索...",
"title": "トピック"
},
"updateAgent": "アシスタント情報を更新",
"updatePrompt": "プロンプトの更新",
"updateAgent": "エージェント情報の更新",
"upgradeVersion": {
"action": "今すぐアップグレード",
"hasNew": "利用可能な更新があります",
"newVersion": "新しいバージョンが利用可能です:{{version}}"
},
"warp": "改行"
}
}
55 changes: 55 additions & 0 deletions locales/ko_KR/chat.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"agentDefaultMessage": "안녕하세요, 저는 **{{name}}**입니다. 바로 대화를 시작하거나 [도우미 설정](/chat/settings#session={{id}})으로 이동하여 제 정보를 완성할 수 있습니다.",
"agentDefaultMessageWithSystemRole": "안녕하세요, 저는 **{{name}}**입니다. {{systemRole}}입니다. 대화를 시작해보세요!",
"backToBottom": "최신 메시지 보기",
"clearCurrentMessages": "현재 대화 지우기",
"confirmClearCurrentMessages": "현재 대화를 지우시겠습니까? 지우면 복구할 수 없습니다. 작업을 확인하세요.",
"confirmRemoveSessionItemAlert": "도우미를 삭제하시겠습니까? 삭제하면 복구할 수 없습니다. 작업을 확인하세요.",
"defaultAgent": "사용자 정의 도우미",
"defaultSession": "사용자 정의 도우미",
"historyRange": "기록 범위",
"inbox": {
"defaultMessage": "안녕하세요, 저는 여러분의 인공지능 도우미입니다. 궁금한 점이 있으면 물어보세요. 더 전문적이거나 맞춤화된 도우미가 필요하다면 `+`를 클릭하여 사용자 정의 도우미를 생성할 수 있습니다.",
"desc": "뇌 클러스터를 활성화하여 창의적인 생각을 이끌어내는 인공지능 도우미입니다. 모든 것에 대해 여기에서 대화하세요.",
"title": "잡담하기"
},
"newAgent": "새 도우미 만들기",
"noDescription": "설명 없음",
"regenerate": "재생성",
"roleAndArchive": "역할 및 아카이브",
"searchAgentPlaceholder": "도우미 및 대화 검색...",
"send": "보내기",
"sendPlaceholder": "대화 내용 입력...",
"shareModal": {
"download": "스크린샷 다운로드",
"imageType": "이미지 형식",
"screenshot": "스크린샷",
"settings": "내보내기 설정",
"shareToShareGPT": "ShareGPT 공유 링크 생성",
"withBackground": "배경 이미지 포함",
"withFooter": "푸터 포함",
"withPluginInfo": "플러그인 정보 포함",
"withSystemRole": "도우미 역할 포함"
},
"stop": "정지",
"temp": "임시",
"tokenDetail": "역할 설정: {{systemRoleToken}} · 대화 기록: {{chatsToken}}",
"tokenTag": {
"overload": "한도 초과",
"remained": "남음",
"used": "사용"
},
"topic": {
"confirmRemoveTopic": "해당 주제를 삭제하시겠습니까? 삭제하면 복구할 수 없습니다. 신중하게 작업하세요.",
"defaultTitle": "기본 주제",
"saveCurrentMessages": "현재 대화를 주제로 저장",
"searchPlaceholder": "주제 검색...",
"title": "주제"
},
"translate": {
"clear": "번역 지우기"
},
"translateTo": "번역",
"updateAgent": "도우미 정보 업데이트",
"warp": "줄바꿈"
}
Loading