diff --git a/public/locales/en/api.json b/public/locales/en/api.json index a39d281..d71e0cf 100644 --- a/public/locales/en/api.json +++ b/public/locales/en/api.json @@ -10,5 +10,5 @@ "howTo": "Get your personal API key <0>here", "inputLabel": "API Key" }, - "customEndpoint": "Use custom endpoint" + "customEndpoint": "Use custom API endpoint" } diff --git a/public/locales/en/model.json b/public/locales/en/model.json index 07d9828..7f44717 100644 --- a/public/locales/en/model.json +++ b/public/locales/en/model.json @@ -11,7 +11,7 @@ "description": "Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics. (Default: 0)" }, "topP": { - "label": "Top P", + "label": "Top-p", "description": "Number between 0 and 1. An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. We generally recommend altering this or temperature but not both. (Default: 1)" }, "frequencyPenalty": { diff --git a/public/locales/zh-CN/api.json b/public/locales/zh-CN/api.json index 795fb28..dfe1022 100644 --- a/public/locales/zh-CN/api.json +++ b/public/locales/zh-CN/api.json @@ -3,12 +3,12 @@ "apiEndpoint": { "option": "使用免费的 API 端点", "inputLabel": "API 端点", - "description": "感谢 <0>Ayaka 提供免费的 API 终端: https://chatgpt-api.shn.hk/v1/。" + "description": "感谢 <0>Ayaka 提供免费的 API 端点: https://chatgpt-api.shn.hk/v1/。" }, "apiKey": { "option": "使用自己的 API 密钥", "howTo": "在<0>这里获取您的个人 API 密钥", "inputLabel": "API 密钥" }, - "customEndpoint": "使用自定义端点" + "customEndpoint": "使用自定义 API 端点" } diff --git a/public/locales/zh-HK/about.json b/public/locales/zh-HK/about.json new file mode 100644 index 0000000..aa8aafc --- /dev/null +++ b/public/locales/zh-HK/about.json @@ -0,0 +1,27 @@ +{ + "description": "Free ChatGPT 係一款好犀利嘅開源 Web App,佢使用 OpenAI 嘅 ChatGPT API,令到你可以免費同 ChatGPT 傾偈!", + "sourceCode": "喺 GitHub 上檢視<0>原始碼同埋畀個 ⭐️ 我哋!", + "initiative": { + "description": "睇下《<0>開放 ChatGPT 倡議》啦!", + "link": "https://medium.com/@ayaka_45434/the-open-chatgpt-initiative-e76b0b62a3ae" + }, + "support": { + "title": "支持", + "paragraph1": "Free ChatGPT 致力於提供實用同驚人嘅特性,你嘅支持同激勵將鼓勵我哋繼續前行!", + "paragraph2": "如果你中意呢款 App,我哋請你喺 <0>GitHub 上面畀個 ⭐️。你嘅認可對我哋非同小可,鼓勵我哋更加努力,不斷提供最佳嘅使用體驗。", + "paragraph3": "如果你想支持我哋嘅團隊,你可以透過以下方式贊助我哋。每一分貢獻,無論幾細,都幫助我哋維護同埋改善服務。", + "paragraph4": "多謝你成為我哋社群嘅一員,我哋期待喺未來提供更好嘅服務畀你。", + "alipay": "支付寶", + "wechatPay": "微信" + }, + "discordServer": { + "title": "Discord 伺服器", + "paragraph1": "歡迎加入我哋嘅 Discord 社羣!呢個 Discord 伺服器係一個風水寶地,可以交流 ChatGPT 嘅靈感同埋技巧,並提交 Free ChatGPT 嘅功能建議。你可以同 Free ChatGPT 嘅開發者同埋其他分享你熱情嘅人工智能愛好者傾偈。", + "paragraph2": "要加入我哋嘅伺服器,只需要撳呢條 link:<0>https://discord.gg/g3Qnwy4V6A,我哋好想見到你!" + }, + "privacyStatement": { + "title": "私隱聲明", + "paragraph1": "我哋非常重視你嘅私隱,並致力於保護用家嘅私隱。我哋唔會以任何形式收集或儲存你鍵入或由 OpenAI 伺服器接收嘅任何文字。我哋嘅原始碼可以供你檢查,以驗證呢項聲明。", + "paragraph2": "我哋將你嘅 API 金鑰嘅安全擺喺首位,非常小心噉處理佢。如果你用自己嘅 API 金鑰,你嘅金鑰將專門儲存喺你嘅瀏覽器入面,並且永遠唔會共享畀任何第三方實體。佢僅用於訪問 OpenAI API 呢項預期用途,唔會用於任何其他未經授權嘅用途。" + } +} diff --git a/public/locales/zh-HK/api.json b/public/locales/zh-HK/api.json new file mode 100644 index 0000000..cc2ab74 --- /dev/null +++ b/public/locales/zh-HK/api.json @@ -0,0 +1,14 @@ +{ + "securityMessage": "我哋將你嘅 API 金鑰嘅安全擺喺首位,非常小心噉處理佢。你嘅金鑰將專門儲存喺你嘅瀏覽器入面,並且永遠唔會共享畀任何第三方實體。佢僅用於訪問 OpenAI API 呢項預期用途,唔會用於任何其他未經授權嘅用途。", + "apiEndpoint": { + "option": "使用免費嘅 API 端點", + "inputLabel": "API 端點", + "description": "感謝 <0>Ayaka 提供免費嘅 API 端點: https://chatgpt-api.shn.hk/v1/。" + }, + "apiKey": { + "option": "使用自己嘅 API 金鑰", + "howTo": "喺<0>呢度獲取你嘅個人 API 金鑰", + "inputLabel": "API 金鑰" + }, + "customEndpoint": "使用自訂 API 端點" +} diff --git a/public/locales/zh-HK/main.json b/public/locales/zh-HK/main.json new file mode 100644 index 0000000..35d9f30 --- /dev/null +++ b/public/locales/zh-HK/main.json @@ -0,0 +1,27 @@ +{ + "save": "儲存", + "saveAndSubmit": "儲存同提交", + "cancel": "取消", + "confirm": "確認", + "warning": "警告", + "clearMessageWarning": "請注意,提交呢條訊息之後,所有後續訊息都將被刪除!", + "clearConversationWarning": "請注意,確認呢個操作將刪除所有訊息!", + "clearConversation": "清除會話", + "import": "匯入", + "export": "匯出", + "author": "由 Jing Hua 製作", + "about": "關於同贊助", + "api": "API", + "personal": "個人", + "free": "免費", + "downloadChat": "儲存傾偈記錄", + "user": "用户", + "assistant": "助手", + "system": "系統", + "newChat": "新傾偈", + "lightMode": "亮色模式", + "darkMode": "黑暗模式", + "setting": "設定", + "image": "圖片", + "autoTitle": "自動生成標題" +} diff --git a/public/locales/zh-HK/model.json b/public/locales/zh-HK/model.json new file mode 100644 index 0000000..7ecfa84 --- /dev/null +++ b/public/locales/zh-HK/model.json @@ -0,0 +1,21 @@ +{ + "configuration": "配置", + "model": "模型", + "default": "預設", + "temperature": { + "label": "採樣温度", + "description": "係一個 0 到 2 之間嘅數值。較高嘅數值如 0.8 會令到輸出更加隨機,而較低的數值如 0.2 會令到輸出更加集中同確定。通常建議修改呢個引數或者 Top-p,但係唔好同時修改兩者。(預設: 1)" + }, + "presencePenalty": { + "label": "存在懲罰", + "description": "係一個 -2.0 到 2.0 之間嘅數值。正嘅數值表示,如果某個 token 已經出現喺文字當中,輸出嗰陣就會懲罰佢,令到佢被揀中嘅機率降低,即係可以增加模型講新話題嘅機會。 (預設: 0)" + }, + "topP": { + "label": "Top-p", + "description": "係一個 0 到 1 之間嘅數值。喺核採樣(根據温度採樣嘅一種替代方法)中,採樣嗰陣會由機率最高嗰啲 token 當中揀,0.1 表示僅考慮機率求和達到 10% 嘅 token。通常建議修改呢個引數或採樣温度,但唔好同時修改兩者。(預設: 1)" + }, + "frequencyPenalty": { + "label": "頻率懲罰", + "description": "係一個 -2.0 到 2.0 之間嘅數值。正嘅數值表示,如果 token 喺之前嘅文字中出現頻率越高,輸出嗰陣就會越大力噉懲罰佢,令到佢被揀中嘅機率降低,即係可以降低模型重複同一句説話嘅機會。(預設: 0)" + } +} diff --git a/src/i18n.ts b/src/i18n.ts index 4b3f1bc..bf6f815 100644 --- a/src/i18n.ts +++ b/src/i18n.ts @@ -4,7 +4,7 @@ import { initReactI18next } from 'react-i18next'; import Backend from 'i18next-http-backend'; import LanguageDetector from 'i18next-browser-languagedetector'; -export const i18nLanguages = ['en', 'zh-CN']; +export const i18nLanguages = ['en', 'zh-CN', 'zh-HK']; i18n .use(Backend)