mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-24 04:10:15 +01:00
feat: add localization strings for tool resource types in file preview
This commit is contained in:
parent
5b38ce8fd9
commit
d07d05a8d0
1 changed files with 4 additions and 4 deletions
|
|
@ -54,13 +54,13 @@ const PromptFilesPreview: React.FC<PromptFilesPreviewProps> = ({ toolResources }
|
|||
const getToolResourceLabel = (toolResource: string) => {
|
||||
switch (toolResource) {
|
||||
case 'file_search':
|
||||
return 'File Search';
|
||||
return localize('com_ui_upload_file_search');
|
||||
case 'execute_code':
|
||||
return 'Code Interpreter';
|
||||
return localize('com_ui_upload_code_files');
|
||||
case 'ocr':
|
||||
return 'Text Extraction';
|
||||
return localize('com_ui_upload_ocr_text');
|
||||
case 'image_edit':
|
||||
return 'Image Editing';
|
||||
return localize('com_ui_upload_image_input');
|
||||
default:
|
||||
return toolResource;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue