This commit is contained in:
liukaixiang817 2023-10-23 12:27:30 +10:00
parent 933260a5c5
commit db0f554b02
7 changed files with 28 additions and 44 deletions

View file

@ -8,13 +8,8 @@ export default function Footer() {
return (
<div className="hidden px-3 pb-1 pt-2 text-center text-xs text-black/50 dark:text-white/50 md:block md:px-4 md:pb-4 md:pt-3">
<a
href="https://github.com/danny-avila/LibreChat"
target="_blank"
rel="noreferrer"
className="underline"
>
{config?.appTitle || 'LibreChat'} v0.6.0
<a href="https://www.lkx666.cn" target="_blank" rel="noreferrer" className="underline">
{config?.appTitle || 'lkxChatGPT'} v3.2.0
</a>
{' - '}. {localize('com_ui_pay_per_call')}
</div>

View file

@ -104,7 +104,7 @@ export default function NavLinks() {
className="flex w-full cursor-pointer items-center gap-3 rounded-none px-3 py-3 text-sm text-white transition-colors duration-200 hover:bg-gray-700"
svg={() => <LinkIcon />}
text={localize('com_nav_help_faq')}
clickHandler={() => window.open('https://docs.librechat.ai/', '_blank')}
clickHandler={() => window.open('https://bing.lkx666.cn/', '_blank')}
/>
</Menu.Item>
<Menu.Item as="div">

View file

@ -57,7 +57,7 @@ export const getTranslations = (langCode: string) => {
// returns an corresponding phrase value in string
export const localize = (langCode: string, phraseKey: string, ...values: string[]) => {
const lang = getTranslations(langCode);
const phrase = lang[phraseKey] || English[phraseKey] || '';
const phrase = lang[phraseKey] || English[phraseKey] || 'zh-CN';
return phrase.format(...values);
};

View file

@ -27,7 +27,7 @@ export default {
com_ui_showing: 'Showing',
com_ui_of: 'of',
com_ui_entries: 'Entries',
com_ui_pay_per_call: 'All AI conversations in one place. Pay per call and not per month',
com_ui_pay_per_call: 'GPT4 40 times every 3 minutes; blue “ChatGPT” recommended.',
com_ui_enter: 'Enter',
com_ui_submit: 'Submit',
com_ui_upload_success: 'Successfully uploaded file',

View file

@ -28,7 +28,7 @@ export default {
com_ui_showing: '显示',
com_ui_of: '/',
com_ui_entries: '项',
com_ui_pay_per_call:'所有人工智能对话都集中在一处。按通话付费,而不是按月付费',
com_ui_pay_per_call: 'GPT4每3小时40次建议使用蓝色“ChatGPT”',
com_ui_delete: '删除',
com_ui_delete_conversation: '删除对话?',
com_ui_delete_conversation_confirm: '这将删除',
@ -139,7 +139,7 @@ export default {
'可以在系统消息中设置自定义指令,默认为空',
com_endpoint_set_custom_name: '设置一个自定义名,以方便寻找预设',
com_endpoint_preset_name: '预设名',
com_endpoint_presets_clear_warning:'确定要清除所有预设吗?这是不可逆转的。',
com_endpoint_presets_clear_warning: '确定要清除所有预设吗?这是不可逆转的。',
com_endpoint_config_key: '设置API Key',
com_endpoint_config_key_for: '设置API Key: ',
com_endpoint_config_key_encryption: '您的密钥将被加密并删除于:',
@ -148,7 +148,8 @@ export default {
com_endpoint_config_key_google_vertex_ai: 'Vertex AI API',
com_endpoint_config_key_google_vertex_api: '在Google云上(Google Cloud),然后',
com_endpoint_config_key_google_service_account: '创建Service Account',
com_endpoint_config_key_google_vertex_api_role: '确保单击“创建并继续”以至少授予“Vertex AI 用户”角色。 最后,创建一个要在此处导入的 JSON 密钥。',
com_endpoint_config_key_google_vertex_api_role:
'确保单击“创建并继续”以至少授予“Vertex AI 用户”角色。 最后,创建一个要在此处导入的 JSON 密钥。',
com_endpoint: '端口',
com_endpoint_hide: '隐藏',
com_endpoint_show: '显示',
@ -158,7 +159,7 @@ export default {
com_endpoint_show_what_settings: '显示{0}的设置',
com_endpoint_save: '保存',
com_endpoint_export: '导出',
com_endpoint_no_presets:'暂无预设',
com_endpoint_no_presets: '暂无预设',
com_endpoint_save_as_preset: '保存为预设',
com_endpoint_not_implemented: '未实现功能',
com_endpoint_view_options: '查看选项',
@ -197,9 +198,9 @@ export default {
com_nav_user: '默认用户',
com_nav_clear_conversation: '清空对话',
com_nav_clear_conversation_confirm_message: '请确认是否清空所有对话?此操作无法撤回。',
com_nav_help_faq: '帮助',
com_nav_help_faq: '欢迎使用新Bing',
com_nav_settings: '设置',
com_nav_search_placeholder: '文本搜索',
com_nav_setting_general: '通用',
com_nav_setting_data:'数据管理',
com_nav_setting_data: '数据管理',
};

View file

@ -12,8 +12,7 @@ export default {
com_ui_capability_decline_requests: '訓練有素以拒絕不適當的請求',
com_ui_limitations: '限制',
com_ui_limitation_incorrect_info: '有時可能會產生不正確的資訊',
com_ui_limitation_harmful_biased:
'有時可能會產生有害的指示或帶有偏見的內容',
com_ui_limitation_harmful_biased: '有時可能會產生有害的指示或帶有偏見的內容',
com_ui_limitation_limited_2021: '對於 2021 年後的世界和事件的知識有限',
com_ui_input: '輸入',
com_ui_close: '關閉',
@ -27,7 +26,7 @@ export default {
com_ui_showing: '顯示',
com_ui_of: '的',
com_ui_entries: '條目',
com_ui_pay_per_call: '將所有 AI 對話都在集中在一處,按用量付費而非固定月費',
com_ui_pay_per_call: 'GPT4每3個鐘40次推薦藍色“ChatGPT”',
com_ui_enter: '輸入',
com_ui_submit: '送出',
com_ui_upload_success: '檔案上傳成功',
@ -49,14 +48,10 @@ export default {
com_ui_delete: '刪除',
com_ui_delete_conversation: '刪除對話?',
com_ui_delete_conversation_confirm: '這將刪除',
com_auth_error_login:
'無法使用提供的資訊登入。請檢查您的登入資訊後重試。',
com_auth_error_login_rl:
'短時間內嘗試登入的次數過多。請稍後再試。',
com_auth_error_login_ban:
'由於違反我們的服務條款,您的帳號已被暫時停用。',
com_auth_error_login_server:
'發生內部伺服器錯誤。請稍候片刻,然後重試。',
com_auth_error_login: '無法使用提供的資訊登入。請檢查您的登入資訊後重試。',
com_auth_error_login_rl: '短時間內嘗試登入的次數過多。請稍後再試。',
com_auth_error_login_ban: '由於違反我們的服務條款,您的帳號已被暫時停用。',
com_auth_error_login_server: '發生內部伺服器錯誤。請稍候片刻,然後重試。',
com_auth_no_account: '還沒有帳號?',
com_auth_sign_up: '註冊',
com_auth_sign_in: '登入',
@ -79,9 +74,8 @@ export default {
com_auth_password_not_match: '密碼不符',
com_auth_continue: '繼續',
com_auth_create_account: '建立您的帳號',
com_nav_auto_scroll:'開啟時自動捲動至最新內容',
com_auth_error_create:
'嘗試註冊您的帳號時發生錯誤。請重試。',
com_nav_auto_scroll: '開啟時自動捲動至最新內容',
com_auth_error_create: '嘗試註冊您的帳號時發生錯誤。請重試。',
com_auth_full_name: '全名',
com_auth_name_required: '名稱必填',
com_auth_name_min_length: '名稱長度必須至少有 3 個字元',
@ -97,8 +91,7 @@ export default {
com_auth_here: '這裡',
com_auth_to_reset_your_password: '重設您的密碼。',
com_auth_reset_password_link_sent: '電子郵件已傳送',
com_auth_reset_password_email_sent:
'已向您傳送電子郵件,其中包含進一步重設密碼的操作說明。',
com_auth_reset_password_email_sent: '已向您傳送電子郵件,其中包含進一步重設密碼的操作說明。',
com_auth_error_reset_password:
'重設密碼時出現問題。找不到使用提供的電子郵件地址的使用者。請重試。',
com_auth_reset_password_success: '密碼重設成功',
@ -154,8 +147,7 @@ export default {
com_endpoint_openai_pres:
'數值範圍介於 -2.0 和 2.0 之間。正值會根據該 token 是否在目前的文字中出現來進行懲罰,增加模型談及新主題的可能性。',
com_endpoint_openai_custom_name_placeholder: '為 ChatGPT 設定自定義名稱',
com_endpoint_openai_prompt_prefix_placeholder:
'在系統訊息中設定自定義提示。',
com_endpoint_openai_prompt_prefix_placeholder: '在系統訊息中設定自定義提示。',
com_endpoint_anthropic_temp:
'範圍從 0 到 1。對於分析/多選題,使用接近 0 的溫度,對於創意和生成式任務,使用接近 1 的溫度。我們建議修改這個或 Top P但不建議兩者都修改。',
com_endpoint_anthropic_topp:
@ -171,8 +163,7 @@ export default {
com_endpoint_plug_skip_completion: '跳過完成步驟',
com_endpoint_disabled_with_tools: '與工具一起停用',
com_endpoint_disabled_with_tools_placeholder: '選擇工具時停用',
com_endpoint_plug_set_custom_instructions_for_gpt_placeholder:
'在系統訊息中新增自定義提示。',
com_endpoint_plug_set_custom_instructions_for_gpt_placeholder: '在系統訊息中新增自定義提示。',
com_endpoint_import: '匯入',
com_endpoint_set_custom_name: '設定自定義名稱,以便您找到此預設設定',
com_endpoint_preset: '預設設定',
@ -189,8 +180,7 @@ export default {
com_endpoint_save: '儲存',
com_endpoint_export: '匯出',
com_endpoint_save_as_preset: '另存為預設設定',
com_endpoint_presets_clear_warning:
'您確定要清除所有預設設定嗎?此操作無法復原。',
com_endpoint_presets_clear_warning: '您確定要清除所有預設設定嗎?此操作無法復原。',
com_endpoint_not_implemented: '尚未實做',
com_endpoint_no_presets: '尚無預設設定',
com_endpoint_not_available: '無可用選項',
@ -228,8 +218,7 @@ export default {
'確保點選「建立並繼續」並至少給予「Vertex AI 使用者」角色。最後,建立一個 JSON 金鑰以在此處匯入。',
com_nav_plugin_store: '外掛商店',
com_nav_plugin_search: '搜尋外掛',
com_nav_plugin_auth_error:
'嘗試驗證此外掛時發生錯誤。請重試。',
com_nav_plugin_auth_error: '嘗試驗證此外掛時發生錯誤。請重試。',
com_nav_close_menu: '關閉側邊選單',
com_nav_open_menu: '開啟側邊選單',
com_nav_export_filename: '檔名',
@ -253,9 +242,8 @@ export default {
com_nav_log_out: '登出',
com_nav_user: '使用者',
com_nav_clear_conversation: '清除對話',
com_nav_clear_conversation_confirm_message:
'您確定要清除所有對話嗎?此操作無法復原。',
com_nav_help_faq: '說明與常見問題',
com_nav_clear_conversation_confirm_message: '您確定要清除所有對話嗎?此操作無法復原。',
com_nav_help_faq: '歡迎使用新Bing',
com_nav_settings: '設定',
com_nav_search_placeholder: '搜尋訊息',
com_nav_setting_general: '一般',

2
package-lock.json generated
View file

@ -23994,7 +23994,7 @@
},
"packages/data-provider": {
"name": "librechat-data-provider",
"version": "0.2.0",
"version": "0.2.1",
"license": "ISC",
"dependencies": {
"@tanstack/react-query": "^4.28.0",