Skip to content

Commit

Permalink
Merge pull request #168 from PeterDaveHelloKitchen/zh_TW
Browse files Browse the repository at this point in the history
Add zh_TW Traditional Chinese locale
  • Loading branch information
dotneet committed Oct 4, 2023
2 parents 19680e5 + 4798ae7 commit 6a07b94
Show file tree
Hide file tree
Showing 7 changed files with 77 additions and 0 deletions.
1 change: 1 addition & 0 deletions next-i18next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module.exports = {
"te",
"vi",
"zh",
"zh_TW",
"ar",
],
},
Expand Down
36 changes: 36 additions & 0 deletions public/locales/zh_TW/chat.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"OpenAI API Key Required": "需要 OpenAI API 金鑰",
"Please set your OpenAI API key in the bottom left of the sidebar.": "請於側邊欄左下角設定您的 OpenAI API 金鑰。",
"If you don't have an OpenAI API key, you can get one here: ": "若您尚無 OpenAI API 金鑰,可於此處取得:",
"Stop Generating": "停止生成",
"Prompt limit is {{maxLength}} characters": "提示限制為 {{maxLength}} 個字元",
"New Conversation": "新增對話",
"System Prompt": "系統提示",
"You are ChatGPT, a large language model trained by OpenAI. Follow the user's instructions carefully. Respond using markdown.": "您是由 OpenAI 訓練的大型語言模型 ChatGPT,請嚴謹遵循使用者指示,並以 Markdown 格式回覆。",
"Enter a prompt": "輸入提示",
"Regenerate response": "重新產生回應",
"Sorry, there was an error.": "抱歉,發生錯誤。",
"Model": "模型",
"Conversation": "對話",
"OR": "",
"Loading...": "載入中...",
"Type a message or type \"/\" to select a prompt...": "輸入訊息或按 \"/\" 以選擇提示...",
"Error fetching models.": "取得模型時出錯。",
"AI": "AI",
"You": "",
"Cancel": "取消",
"Save & Submit": "儲存並送出",
"Make sure your OpenAI API key is set in the bottom left of the sidebar.": "請確保您的 OpenAI API 金鑰已於側邊欄左下角設定。",
"If you completed this step, OpenAI may be experiencing issues.": "若您已完成此步驟,OpenAI 可能正遇到一些問題。",
"click if using a .env.local file": "若使用 .env.local 檔案,請點選",
"Message limit is {{maxLength}} characters. You have entered {{valueLength}} characters.": "訊息字數限制為 {{maxLength}} 字元,您已輸入 {{valueLength}} 字元。",
"Please enter a message": "請輸入訊息",
"Chatbot UI is an advanced chatbot kit for OpenAI's chat models aiming to mimic ChatGPT's interface and functionality.": "Chatbot UI 是一個設計來模擬 OpenAI 聊天模型 ChatGPT 的介面和功能進階的聊天機器人。",
"Are you sure you want to clear all messages?": "您確定要清除所有訊息嗎?",
"Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.": "較高的數值,如 0.8,將使輸出更為隨機,而較低的數值,如 0.2,則會使輸出更集中且具確定性。",
"View Account Usage": "檢視帳戶使用情況",
"Temperature": "溫度",
"Precise": "精確",
"Neutral": "中性",
"Creative": "創意"
}
1 change: 1 addition & 0 deletions public/locales/zh_TW/common.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
5 changes: 5 additions & 0 deletions public/locales/zh_TW/markdown.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"Copy code": "複製程式碼",
"Copied!": "已複製!",
"Enter file name": "輸入檔名"
}
13 changes: 13 additions & 0 deletions public/locales/zh_TW/promptbar.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"New prompt": "新增提示",
"New folder": "新資料夾",
"No prompts.": "無提示",
"Search prompts...": "搜尋提示...",
"Name": "名稱",
"A name for your prompt.": "給您的提示設定名稱",
"Description": "描述",
"A description for your prompt.": "給您的提示加上說明",
"Prompt": "提示",
"Prompt content. Use {{}} to denote a variable. Ex: {{name}} is a {{adjective}} {{noun}}": "提示內容。使用 {{}} 來標註變數。例如:{{name}} 是一個 {{adjective}} {{noun}}",
"Save": "儲存"
}
7 changes: 7 additions & 0 deletions public/locales/zh_TW/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"Settings": "設定",
"Theme": "主題",
"Dark mode": "深色模式",
"Light mode": "淺色模式",
"Save": "儲存"
}
14 changes: 14 additions & 0 deletions public/locales/zh_TW/sidebar.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"New folder": "新資料夾",
"New chat": "新的聊天",
"New Conversation": "開新對話",
"No conversations.": "沒有對話。",
"Search conversations...": "搜尋對話…",
"OpenAI API Key": "OpenAI API 金鑰",
"Import data": "匯入資料",
"Are you sure?": "您確定嗎?",
"Clear conversations": "清除所有對話",
"Settings": "設定選項",
"Export data": "匯出資料",
"Plugin Keys": "外掛金鑰"
}

1 comment on commit 6a07b94

@vercel
Copy link

@vercel vercel bot commented on 6a07b94 Oct 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

smart-chatbot-ui – ./

smart-chatbot-ui.vercel.app
smart-chatbot-ui-git-main-dotneet.vercel.app
smart-chatbot-ui-dotneet.vercel.app

Please sign in to comment.