Skip to content

Commit

Permalink
i18n: 完善placeholder的本地化
Browse files Browse the repository at this point in the history
  • Loading branch information
Keldos-Li committed May 9, 2024
1 parent d79b4b6 commit e30b4e3
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
6 changes: 6 additions & 0 deletions locale/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,12 @@
"groq_llama3_70b_description": "LLaMA 3 70B with [Groq](https://console.groq.com/), the impressively fast language model inferencing service.",
"groq_mixtral_8x7b_description": "Mixtral 8x7B with [Groq](https://console.groq.com/), the impressively fast language model inferencing service.",
"groq_gemma_7b_description": "Gemma 7B with [Groq](https://console.groq.com/), the impressively fast language model inferencing service.",
"chuanhu_description": "An agent that can use multiple tools to solve complex problems.",
"gpt_default_slogan": "How can I help you today?",
"claude_default_slogan": "What can l help you with?",
"chuanhu_slogan": "What can Chuanhu do for you today?",
"chuanhu_question_1": "What's the weather in Hangzhou today?",
"chuanhu_question_2": "Any new releases from Apple?",
"chuanhu_question_3": "Current prices of graphics cards?",
"chuanhu_question_4": "Any new trends on TikTok?",
}
8 changes: 7 additions & 1 deletion locale/zh_CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
"groq_llama3_70b_description": "采用 [Groq](https://console.groq.com/) 的 LLaMA 3 70B。Groq 是一个非常快速的语言模型推理服务。",
"groq_mixtral_8x7b_description": "采用 [Groq](https://console.groq.com/) 的 Mixtral 8x7B。Groq 是一个非常快速的语言模型推理服务。",
"groq_gemma_7b_description": "采用 [Groq](https://console.groq.com/) 的 Gemma 7B。Groq 是一个非常快速的语言模型推理服务。",
"chuanhu_description": "一个能使用多种工具解决复杂问题的智能体。",
"gpt_default_slogan": "今天能帮您些什么?",
"claude_default_slogan": "What can l help you with?",
"claude_default_slogan": "我能帮您什么忙?",
"chuanhu_slogan": "川虎今天能帮你做些什么?",
"chuanhu_question_1": "今天杭州天气如何?",
"chuanhu_question_2": "最近 Apple 发布了什么新品?",
"chuanhu_question_3": "现在显卡的价格如何?",
"chuanhu_question_4": "TikTok 上有什么新梗?",
}
14 changes: 7 additions & 7 deletions modules/presets.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,15 +262,15 @@
},
"川虎助理": {
"model_name": "川虎助理",
"description": "类似 AutoGPT,全自动解决你的问题",
"description": i18n("chuanhu_description"),
"placeholder": {
"logo": "file=web_assets/icon/any-icon-512.png",
"logo_rounded": "false",
"slogan": "川虎今天能帮你做些什么?",
"question_1": "今天杭州天气如何?",
"question_2": "最近 Apple 发布了什么新品?",
"question_3": "现在显卡的价格如何?",
"question_4": "TikTok 上有什么新梗?",
"slogan": i18n("chuanhu_slogan"),
"question_1": i18n("chuanhu_question_1"),
"question_2": i18n("chuanhu_question_2"),
"question_3": i18n("chuanhu_question_3"),
"question_4": i18n("chuanhu_question_4"),
}
},
"川虎助理 Pro": {
Expand All @@ -280,7 +280,7 @@
"logo": "file=web_assets/icon/any-icon-512.png",
"logo_rounded": "false",
"slogan": "川虎Pro今天能帮你做些什么?",
"question_1": "今天杭州天气如何?",
"question_1": "明天杭州天气如何?",
"question_2": "最近 Apple 发布了什么新品?",
"question_3": "现在显卡的价格如何?",
"question_4": "TikTok 上有什么新梗?",
Expand Down

0 comments on commit e30b4e3

Please # to comment.