mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-20 09:16:13 +01:00
🔧 fix(Shared Links): Handling Shared Link Errors (#3118)
* refactor: add error handling in Share model * refactor: add error handing to API routers * refactor: display error message when API response is an error * chore: remove unneccesary JSON.stringify * chore: revert unintended changes --------- Co-authored-by: Danny Avila <danny@librechat.ai>
This commit is contained in:
parent
3172381bad
commit
4e4de88faa
23 changed files with 323 additions and 75 deletions
|
|
@ -55,6 +55,8 @@ export default {
|
|||
com_ui_create_link: '建立連結',
|
||||
com_ui_share_link_to_chat: '分享連結到聊天',
|
||||
com_ui_share_error: '分享聊天連結時發生錯誤',
|
||||
com_ui_share_retrieve_error: '刪除共享鏈接時出錯。',
|
||||
com_ui_share_delete_error: '刪除共享鏈接時出錯。',
|
||||
com_ui_share_create_message: '您的姓名以及您在共享後新增的任何訊息都會保密。',
|
||||
com_ui_share_created_message: '已建立到您的聊天的共享連結。可以隨時透過設定管理以前共享的聊天。',
|
||||
com_ui_share_update_message: '您的姓名、自定義指示以及您在共享後新增的任何訊息都會保密。',
|
||||
|
|
@ -759,6 +761,14 @@ export const comparisons = {
|
|||
english: 'Share link to chat',
|
||||
translated: '分享連結到聊天',
|
||||
},
|
||||
com_ui_share_retrieve_error: {
|
||||
english: 'There was an error deleting the shared link.',
|
||||
translated: '刪除共享鏈接時出錯。',
|
||||
},
|
||||
com_ui_share_delete_error: {
|
||||
english: 'There was an error deleting the shared link.',
|
||||
translated: '刪除共享鏈接時出錯。',
|
||||
},
|
||||
com_ui_share_error: {
|
||||
english: 'There was an error sharing the chat link',
|
||||
translated: '分享聊天連結時發生錯誤',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue