Pārlūkot izejas kodu

Merge pull request #2049 from ihavecoke/main

Adjust text formatting per Chinese copywriting guidelines
Timothy Jaeryang Baek 1 gadu atpakaļ
vecāks
revīzija
a32a752791

+ 36 - 34
src/lib/i18n/locales/zh-CN/translation.json

@@ -49,7 +49,7 @@
 	"Attention to detail": "",
 	"Audio": "音频",
 	"Auto-playback response": "自动播放回应",
-	"Auto-send input after 3 sec.": "3秒后自动发送输入",
+	"Auto-send input after 3 sec.": "3 秒后自动发送输入",
 	"AUTOMATIC1111 Base URL": "AUTOMATIC1111 基础 URL",
 	"AUTOMATIC1111 Base URL is required.": "需要 AUTOMATIC1111 基础 URL。",
 	"available!": "可用!",
@@ -70,9 +70,9 @@
 	"Check for updates": "检查更新",
 	"Checking for updates...": "正在检查更新...",
 	"Choose a model before saving...": "保存前选择一个模型...",
-	"Chunk Overlap": "块重叠(Chunk Overlap)",
-	"Chunk Params": "块参数(Chunk Params)",
-	"Chunk Size": "块大小(Chunk Size)",
+	"Chunk Overlap": "块重叠 (Chunk Overlap)",
+	"Chunk Params": "块参数 (Chunk Params)",
+	"Chunk Size": "块大小 (Chunk Size)",
 	"Citation": "",
 	"Click here for help.": "点击这里获取帮助。",
 	"Click here to": "",
@@ -100,7 +100,7 @@
 	"Copy last response": "复制最后一次回复",
 	"Copy Link": "",
 	"Copying to clipboard was successful!": "复制到剪贴板成功!",
-	"Create a concise, 3-5 word phrase as a header for the following query, strictly adhering to the 3-5 word limit and avoiding the use of the word 'title':": "为以下查询创建一个简洁的、3-5个词的短语作为标题,严格遵守3-5个词的限制并避免使用“标题”一词:",
+	"Create a concise, 3-5 word phrase as a header for the following query, strictly adhering to the 3-5 word limit and avoiding the use of the word 'title':": "为以下查询创建一个简洁的、3-5 个词的短语作为标题,严格遵守 3-5 个词的限制并避免使用“标题”一词:",
 	"Create a modelfile": "创建模型文件",
 	"Create Account": "创建账户",
 	"Create new key": "",
@@ -110,7 +110,7 @@
 	"Current Model": "当前模型",
 	"Current Password": "当前密码",
 	"Custom": "自定义",
-	"Customize Ollama models for a specific purpose": "定制特定用途的Ollama模型",
+	"Customize Ollama models for a specific purpose": "定制特定用途的 Ollama 模型",
 	"Dark": "暗色",
 	"Dashboard": "",
 	"Database": "数据库",
@@ -163,16 +163,16 @@
 	"Enabled": "启用",
 	"Ensure your CSV file includes 4 columns in this order: Name, Email, Password, Role.": "",
 	"Enter {{role}} message here": "在此处输入 {{role}} 信息",
-	"Enter Chunk Overlap": "输入块重叠(Chunk Overlap)",
-	"Enter Chunk Size": "输入块大小(Chunk Size)",
-	"Enter Image Size (e.g. 512x512)": "输入图片大小(例如 512x512)",
+	"Enter Chunk Overlap": "输入块重叠 (Chunk Overlap)",
+	"Enter Chunk Size": "输入块大小 (Chunk Size)",
+	"Enter Image Size (e.g. 512x512)": "输入图片大小 (例如 512x512)",
 	"Enter LiteLLM API Base URL (litellm_params.api_base)": "输入 LiteLLM API 基本 URL (litellm_params.api_base)",
 	"Enter LiteLLM API Key (litellm_params.api_key)": "输入 LiteLLM API 密匙 (litellm_params.api_key)",
 	"Enter LiteLLM API RPM (litellm_params.rpm)": "输入 LiteLLM API 速率限制 (litellm_params.rpm)",
 	"Enter LiteLLM Model (litellm_params.model)": "输入 LiteLLM 模型 (litellm_params.model)",
 	"Enter Max Tokens (litellm_params.max_tokens)": "输入模型的 Max Tokens (litellm_params.max_tokens)",
-	"Enter model tag (e.g. {{modelTag}})": "输入模型标签(例如{{modelTag}})",
-	"Enter Number of Steps (e.g. 50)": "输入步数(例如50)",
+	"Enter model tag (e.g. {{modelTag}})": "输入模型标签 (例如{{modelTag}})",
+	"Enter Number of Steps (e.g. 50)": "输入步数 (例如 50)",
 	"Enter Score": "",
 	"Enter stop sequence": "输入停止序列",
 	"Enter Top K": "输入 Top K",
@@ -218,27 +218,27 @@
 	"Import Documents Mapping": "导入文档映射",
 	"Import Modelfiles": "导入模型文件",
 	"Import Prompts": "导入提示",
-	"Include `--api` flag when running stable-diffusion-webui": "运行stable-diffusion-webui时包含`--api`标志",
+	"Include `--api` flag when running stable-diffusion-webui": "运行 stable-diffusion-webui 时包含 `--api` 标志",
 	"Input commands": "",
 	"Interface": "界面",
-	"join our Discord for help.": "加入我们的Discord寻求帮助。",
+	"join our Discord for help.": "加入我们的 Discord 寻求帮助。",
 	"JSON": "JSON",
-	"JWT Expiration": "JWT过期",
-	"JWT Token": "JWT令牌",
+	"JWT Expiration": "JWT 过期",
+	"JWT Token": "JWT 令牌",
 	"Keep Alive": "保持活动",
 	"Keyboard shortcuts": "键盘快捷键",
 	"Language": "语言",
 	"Last Active": "",
 	"Light": "浅色",
 	"Listening...": "监听中...",
-	"LLMs can make mistakes. Verify important information.": "LLM可能会生成错误信息,请验证重要信息。",
-	"Made by OpenWebUI Community": "由OpenWebUI社区制作",
+	"LLMs can make mistakes. Verify important information.": "LLM 可能会生成错误信息,请验证重要信息。",
+	"Made by OpenWebUI Community": "由 OpenWebUI 社区制作",
 	"Make sure to enclose them with": "确保将它们包含在内",
-	"Manage LiteLLM Models": "管理LiteLLM模型",
+	"Manage LiteLLM Models": "管理 LiteLLM 模型",
 	"Manage Models": "管理模型",
-	"Manage Ollama Models": "管理Ollama模型",
+	"Manage Ollama Models": "管理 Ollama 模型",
 	"Max Tokens": "最大令牌数",
-	"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "最多可以同时下载3个模型,请稍后重试。",
+	"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "最多可以同时下载 3 个模型,请稍后重试。",
 	"Messages you send after creating your link won't be shared. Users with the URL will beable to view the shared chat.": "",
 	"Minimum Score": "",
 	"Mirostat": "Mirostat",
@@ -285,7 +285,7 @@
 	"Ollama Version": "Ollama 版本",
 	"On": "开",
 	"Only": "仅",
-	"Only alphanumeric characters and hyphens are allowed in the command string.": "命令字符串中只允许使用英文字母,数字(0-9)以及连字符(-)。",
+	"Only alphanumeric characters and hyphens are allowed in the command string.": "命令字符串中只允许使用英文字母,数字 (0-9) 以及连字符 (-)。",
 	"Oops! Hold tight! Your files are still in the processing oven. We're cooking them up to perfection. Please be patient and we'll let you know once they're ready.": "哎呀!请稍等!您的文件仍在处理中。我们正在将它们做得尽善尽美,请耐心等待,一旦准备好我们会通知您。",
 	"Oops! Looks like the URL is invalid. Please double-check and try again.": "哎呀!看起来 URL 无效。请仔细检查后再试一次。",
 	"Oops! You're using an unsupported method (frontend only). Please serve the WebUI from the backend.": "哎呀!您正在使用不支持的方法(仅限前端)。请从后端提供 WebUI。",
@@ -304,7 +304,7 @@
 	"Parameters": "参数",
 	"Password": "密码",
 	"PDF document (.pdf)": "",
-	"PDF Extract Images (OCR)": "PDF图像处理(使用OCR)",
+	"PDF Extract Images (OCR)": "PDF 图像处理 (使用 OCR)",
 	"pending": "待定",
 	"Permission denied when accessing microphone: {{error}}": "访问麦克风时权限被拒绝:{{error}}",
 	"Plain text (.txt)": "",
@@ -359,7 +359,7 @@
 	"Seed": "种子",
 	"Select a mode": "选择一个模式",
 	"Select a model": "选择一个模型",
-	"Select an Ollama instance": "选择一个Ollama实例",
+	"Select an Ollama instance": "选择一个 Ollama 实例",
 	"Select model": "",
 	"Send a Message": "发送消息",
 	"Send message": "发送消息",
@@ -376,7 +376,7 @@
 	"Settings saved successfully!": "设置已保存",
 	"Share": "",
 	"Share Chat": "",
-	"Share to OpenWebUI Community": "分享到OpenWebUI社区",
+	"Share to OpenWebUI Community": "分享到 OpenWebUI 社区",
 	"short-summary": "简短总结",
 	"Show": "显示",
 	"Show Additional Params": "显示额外参数",
@@ -390,7 +390,7 @@
 	"Source": "",
 	"Speech recognition error: {{error}}": "语音识别错误:{{error}}",
 	"Speech-to-Text Engine": "语音转文字引擎",
-	"SpeechRecognition API is not supported in this browser.": "此浏览器不支持SpeechRecognition API。",
+	"SpeechRecognition API is not supported in this browser.": "此浏览器不支持 SpeechRecognition API。",
 	"Stop Sequence": "停止序列",
 	"STT Settings": "语音转文字设置",
 	"Submit": "提交",
@@ -413,32 +413,34 @@
 	"This ensures that your valuable conversations are securely saved to your backend database. Thank you!": "这确保了您宝贵的对话被安全保存到后端数据库中。谢谢!",
 	"This setting does not sync across browsers or devices.": "此设置不会在浏览器或设备之间同步。",
 	"Thorough explanation": "",
-	"Tip: Update multiple variable slots consecutively by pressing the tab key in the chat input after each replacement.": "提示:在每次替换后,在聊天输入中按Tab键可以连续更新多个变量。",
+	"Tip: Update multiple variable slots consecutively by pressing the tab key in the chat input after each replacement.": "提示:在每次替换后,在聊天输入中按 Tab 键可以连续更新多个变量。",
 	"Title": "标题",
 	"Title (e.g. Tell me a fun fact)": "",
 	"Title Auto-Generation": "标题自动生成",
 	"Title Generation Prompt": "自动生成标题的提示词",
 	"to": "到",
 	"To access the available model names for downloading,": "要访问可下载的模型名称,",
-	"To access the GGUF models available for downloading,": "要访问可下载的GGUF模型,",
+	"To access the GGUF models available for downloading,": "要访问可下载的 GGUF 模型,",
 	"to chat input.": "到聊天输入。",
 	"Toggle settings": "切换设置",
 	"Toggle sidebar": "切换侧边栏",
 	"Top K": "Top K",
 	"Top P": "Top P",
-	"Trouble accessing Ollama?": "访问Ollama时遇到问题?",
+	"Trouble accessing Ollama?": "访问 Ollama 时遇到问题?",
 	"TTS Settings": "文本转语音设置",
-	"Type Hugging Face Resolve (Download) URL": "输入Hugging Face解析(下载)URL",
+	"Type Hugging Face Resolve (Download) URL": "输入 Hugging Face 解析(下载)URL",
 	"Uh-oh! There was an issue connecting to {{provider}}.": "哎呀!连接到{{provider}}时出现问题。",
 	"Unknown File Type '{{file_type}}', but accepting and treating as plain text": "未知文件类型'{{file_type}}',将视为纯文本进行处理",
 	"Update and Copy Link": "",
 	"Update password": "更新密码",
-	"Upload a GGUF model": "上传一个GGUF模型",
+	"Update Reranking Model": "",
+	"Update reranking model (e.g. {{model}})": "",
+	"Upload a GGUF model": "上传一个 GGUF 模型",
 	"Upload files": "上传文件",
 	"Upload Progress": "上传进度",
-	"URL Mode": "URL模式",
+	"URL Mode": "URL 模式",
 	"Use '#' in the prompt input to load and select your documents.": "在提示输入中使用'#'来加载和选择你的文档。",
-	"Use Gravatar": "使用Gravatar",
+	"Use Gravatar": "使用 Gravatar",
 	"Use Initials": "",
 	"user": "用户",
 	"User Permissions": "用户权限",
@@ -454,12 +456,12 @@
 	"Webhook URL": "",
 	"WebUI Add-ons": "WebUI 插件",
 	"WebUI Settings": "WebUI 设置",
-	"WebUI will make requests to": "WebUI将请求",
+	"WebUI will make requests to": "WebUI 将请求",
 	"What’s New in": "最新变化",
 	"When history is turned off, new chats on this browser won't appear in your history on any of your devices.": "当历史记录被关闭时,这个浏览器上的新聊天不会出现在你任何设备的历史记录中。",
 	"Whisper (Local)": "Whisper(本地)",
 	"Write a prompt suggestion (e.g. Who are you?)": "写一个提示建议(例如:你是谁?)",
-	"Write a summary in 50 words that summarizes [topic or keyword].": "用50个字写一个总结[主题或关键词]。",
+	"Write a summary in 50 words that summarizes [topic or keyword].": "用 50 个字写一个总结 [主题或关键词]。",
 	"You": "你",
 	"You have no archived conversations.": "",
 	"You have shared this chat": "",

+ 6 - 6
src/lib/i18n/locales/zh-TW/translation.json

@@ -49,7 +49,7 @@
 	"Attention to detail": "",
 	"Audio": "音訊",
 	"Auto-playback response": "自動播放回答",
-	"Auto-send input after 3 sec.": "3秒後自動傳送輸入內容",
+	"Auto-send input after 3 sec.": "3 秒後自動傳送輸入內容",
 	"AUTOMATIC1111 Base URL": "AUTOMATIC1111 基本 URL",
 	"AUTOMATIC1111 Base URL is required.": "需要 AUTOMATIC1111 基本 URL",
 	"available!": "可以使用!",
@@ -205,7 +205,7 @@
 	"Generation Info": "",
 	"Good Response": "",
 	"has no conversations.": "",
-	"Hello, {{name}}": "你好, {{name}}",
+	"Hello, {{name}}": "你好{{name}}",
 	"Hide": "隱藏",
 	"Hide Additional Params": "隱藏額外參數",
 	"How can I help you today?": "今天能為你做什麼?",
@@ -306,7 +306,7 @@
 	"PDF document (.pdf)": "",
 	"PDF Extract Images (OCR)": "PDF 圖像擷取(OCR 光學文字辨識)",
 	"pending": "待審查",
-	"Permission denied when accessing microphone: {{error}}": "存取麥克風時被拒絕權限: {{error}}",
+	"Permission denied when accessing microphone: {{error}}": "存取麥克風時被拒絕權限{{error}}",
 	"Plain text (.txt)": "",
 	"Playground": "AI 對話遊樂場",
 	"Positive attitude": "",
@@ -387,8 +387,8 @@
 	"Sign Out": "登出",
 	"Sign up": "註冊",
 	"Signing in": "",
-	"Source": "",
-	"Speech recognition error: {{error}}": "語音識別錯誤: {{error}}",
+  "Source": "",
+	"Speech recognition error: {{error}}": "語音識別錯誤{{error}}",
 	"Speech-to-Text Engine": "語音轉文字引擎",
 	"SpeechRecognition API is not supported in this browser.": "此瀏覽器不支持 SpeechRecognition API。",
 	"Stop Sequence": "停止序列",
@@ -459,7 +459,7 @@
 	"When history is turned off, new chats on this browser won't appear in your history on any of your devices.": "當歷史被關閉時,這個瀏覽器上的新聊天將不會出現在任何裝置的歷史記錄中。",
 	"Whisper (Local)": "Whisper(本機)",
 	"Write a prompt suggestion (e.g. Who are you?)": "寫一個提示詞建議(例如:你是誰?)",
-	"Write a summary in 50 words that summarizes [topic or keyword].": "寫一個50字的摘要來概括[主題或關鍵詞]。",
+	"Write a summary in 50 words that summarizes [topic or keyword].": "寫一個 50 字的摘要來概括 [主題或關鍵詞]。",
 	"You": "你",
 	"You have no archived conversations.": "",
 	"You have shared this chat": "",