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

Add Traditional Chinese(zh-tw) support and rename Chinese(cn) to Simplified Chinese (zh-cn) #273

Merged
merged 2 commits into from
Apr 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ A [Telegram bot](https://core.telegram.org/bots/api) that integrates with OpenAI
- [x] (NEW!) GPT-4 support
- If you have access to the GPT-4 API, simply change the `OPENAI_MODEL` parameter to `gpt-4`
- [x] (NEW!) Localized bot language
- Available languages :gb: :de: :ru: :tr: :it: :es: :indonesia: :netherlands: :cn: :vietnam:
- Available languages :gb: :de: :ru: :tr: :it: :es: :indonesia: :netherlands: :cn: :taiwan: :vietnam:
- [x] (NEW!) Improved inline queries support for group and private chats - by [@bugfloyd](https://github.com/bugfloyd)
- To use this feature, enable inline queries for your bot in BotFather via the `/setinline` [command](https://core.telegram.org/bots/inline)

Expand Down Expand Up @@ -90,7 +90,7 @@ Check out the [Budget Manual](https://github.com/n3d1117/chatgpt-telegram-bot/di
| `IMAGE_SIZE` | The DALL·E generated image size. Allowed values: `256x256`, `512x512` or `1024x1024` | `512x512` |
| `GROUP_TRIGGER_KEYWORD` | If set, the bot in group chats will only respond to messages that start with this keyword | - |
| `IGNORE_GROUP_TRANSCRIPTIONS` | If set to true, the bot will not process transcriptions in group chats | `true` |
| `BOT_LANGUAGE` | Language of general bot messages. Currently available: `en`, `de`, `ru`, `tr`, `it`, `es`, `id`, `nl`, `cn`, `vi`. [Contribute with additional translations](https://github.com/n3d1117/chatgpt-telegram-bot/discussions/219) | `en` |
| `BOT_LANGUAGE` | Language of general bot messages. Currently available: `en`, `de`, `ru`, `tr`, `it`, `es`, `id`, `nl`, `zh-cn`, `zh-tw`, `vi`. [Contribute with additional translations](https://github.com/n3d1117/chatgpt-telegram-bot/discussions/219) | `en` |

Check out the [official API reference](https://platform.openai.com/docs/api-reference/chat) for more details.

Expand Down
44 changes: 43 additions & 1 deletion translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@
"ask_chatgpt":"Vraag ChatGPT",
"loading":"Laden..."
},
"cn": {
"zh-cn": {
"help_description":"显示帮助信息",
"reset_description":"重置对话。可以选择传递高级指令(例如/reset 你是一个有用的助手)",
"image_description":"根据提示生成图像(例如/image 猫)",
Expand Down Expand Up @@ -377,6 +377,48 @@
"ask_chatgpt":"询问ChatGPT",
"loading":"载入中..."
},
"zh-tw": {
"help_description":"顯示幫助訊息",
"reset_description":"重置對話。可以選擇傳遞高級指示(例如 /reset 你是一個樂於助人的助手)",
"image_description":"根據提示生成圖像(例如 /image 貓)",
"stats_description":"取得當前使用統計",
"resend_description":"重發最後一個訊息",
"chat_description":"與機器人聊天!",
"disallowed":"抱歉,您不允許使用此機器人。查看原始碼:https://github.com/n3d1117/chatgpt-telegram-bot",
"budget_limit":"抱歉,已達到用量上限。",
"help_text":["我是一個 ChatGPT 機器人,跟我聊天吧!", "傳送語音訊息或檔案給我,我會為您進行轉錄", "開放原始碼:https://github.com/n3d1117/chatgpt-telegram-bot"],
"stats_conversation":["當前對話", "聊天訊息記錄", "聊天 Token 記錄"],
"usage_today":"今日用量",
"usage_month":"本月用量",
"stats_tokens":"Token 已使用",
"stats_images":"圖像已生成",
"stats_transcribe":["分", "秒已轉錄"],
"stats_total":"💰 總計金額 $",
"stats_budget":"剩餘預算",
"monthly":"本月",
"daily":"今日",
"all-time":"",
"stats_openai":"本月您的 OpenAI 帳戶總共計費 $",
"resend_failed":"沒有訊息可以重發",
"reset_done":"重置完成!",
"image_no_prompt":"請輸入提示!(例如 /image 貓)",
"image_fail":"無法生成圖像",
"media_download_fail":["無法下載音效檔案", "請確保檔案大小不超過 20MB"],
"media_type_fail":"不支援的檔案類型",
"transcript":"轉錄",
"answer":"回答",
"transcribe_fail":"無法轉錄文字",
"chat_fail":"無法取得回應",
"prompt":"提示",
"completion":"填充",
"openai_rate_limit":"OpenAI 請求超出限制",
"openai_invalid":"OpenAI 無效請求",
"error":"發生錯誤",
"try_again":"請稍後重試",
"answer_with_chatgpt":"使用 ChatGPT 回答",
"ask_chatgpt":"詢問 ChatGPT",
"loading":"載入中…"
},
"vi": {
"help_description":"Hiển thị trợ giúp",
"reset_description":"Đặt lại cuộc trò chuyện. Tùy ý chuyển hướng dẫn cấp cao (ví dụ: /reset Bạn là một trợ lý hữu ích)",
Expand Down