mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-08-26 14:19:24 +00:00
fix translations
This commit is contained in:
parent
3994914c4b
commit
feba136044
@ -1316,17 +1316,7 @@
|
|||||||
"tags": "auto-detect,header-based,organize,relabel",
|
"tags": "auto-detect,header-based,organize,relabel",
|
||||||
"title": "Auto Rename",
|
"title": "Auto Rename",
|
||||||
"header": "Auto Rename PDF",
|
"header": "Auto Rename PDF",
|
||||||
"submit": "Auto Rename"
|
|
||||||
},
|
|
||||||
"autoRename": {
|
|
||||||
"title": "Auto Rename PDF File",
|
|
||||||
"description": "This tool will automatically rename PDF files based on their content. It analyses the document to find the most suitable title from the text.",
|
|
||||||
"submit": "Auto Rename",
|
"submit": "Auto Rename",
|
||||||
"settings": {
|
|
||||||
"title": "Auto-Rename Settings",
|
|
||||||
"useFirstTextAsFallback": "Use first text as fallback",
|
|
||||||
"useFirstTextAsFallbackDesc": "If no suitable title is found, use the first text in the document"
|
|
||||||
},
|
|
||||||
"files": {
|
"files": {
|
||||||
"placeholder": "Select a PDF file in the main view to get started"
|
"placeholder": "Select a PDF file in the main view to get started"
|
||||||
},
|
},
|
||||||
|
@ -1043,17 +1043,7 @@
|
|||||||
"tags": "auto-detect,header-based,organize,relabel",
|
"tags": "auto-detect,header-based,organize,relabel",
|
||||||
"title": "Auto Rename",
|
"title": "Auto Rename",
|
||||||
"header": "Auto Rename PDF",
|
"header": "Auto Rename PDF",
|
||||||
"submit": "Auto Rename"
|
|
||||||
},
|
|
||||||
"autoRename": {
|
|
||||||
"title": "Auto Rename PDF File",
|
|
||||||
"description": "This tool will automatically rename PDF files based on their content. It analyzes the document to find the most suitable title from the text.",
|
|
||||||
"submit": "Auto Rename",
|
"submit": "Auto Rename",
|
||||||
"settings": {
|
|
||||||
"title": "Auto-Rename Settings",
|
|
||||||
"useFirstTextAsFallback": "Use first text as fallback",
|
|
||||||
"useFirstTextAsFallbackDesc": "If no suitable title is found, use the first text in the document"
|
|
||||||
},
|
|
||||||
"files": {
|
"files": {
|
||||||
"placeholder": "Select a PDF file in the main view to get started"
|
"placeholder": "Select a PDF file in the main view to get started"
|
||||||
},
|
},
|
||||||
|
@ -20,6 +20,6 @@ export const useAutoRenameOperation = () => {
|
|||||||
filePrefix: '', // Not used when preserveBackendFilename is true
|
filePrefix: '', // Not used when preserveBackendFilename is true
|
||||||
multiFileEndpoint: false,
|
multiFileEndpoint: false,
|
||||||
preserveBackendFilename: true, // Use filename from backend response headers
|
preserveBackendFilename: true, // Use filename from backend response headers
|
||||||
getErrorMessage: createStandardErrorHandler(t('autoRename.error.failed', 'An error occurred while auto-renaming the PDF.'))
|
getErrorMessage: createStandardErrorHandler(t('auto-rename.error.failed', 'An error occurred while auto-renaming the PDF.'))
|
||||||
});
|
});
|
||||||
};
|
};
|
@ -34,7 +34,7 @@ const AutoRename = ({ onPreviewFile, onComplete, onError }: BaseToolProps) => {
|
|||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (onError) {
|
if (onError) {
|
||||||
onError(error instanceof Error ? error.message : t("autoRename.error.failed", "Auto-rename operation failed"));
|
onError(error instanceof Error ? error.message : t("auto-rename.error.failed", "Auto-rename operation failed"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -58,11 +58,11 @@ const AutoRename = ({ onPreviewFile, onComplete, onError }: BaseToolProps) => {
|
|||||||
files: {
|
files: {
|
||||||
selectedFiles,
|
selectedFiles,
|
||||||
isCollapsed: hasFiles || hasResults,
|
isCollapsed: hasFiles || hasResults,
|
||||||
placeholder: t("autoRename.files.placeholder", "Select a PDF file in the main view to get started"),
|
placeholder: t("auto-rename.files.placeholder", "Select a PDF file in the main view to get started"),
|
||||||
},
|
},
|
||||||
steps: [],
|
steps: [],
|
||||||
executeButton: {
|
executeButton: {
|
||||||
text: t("autoRename.submit", "Auto-Rename"),
|
text: t("auto-rename.submit", "Auto Rename"),
|
||||||
isVisible: !hasResults,
|
isVisible: !hasResults,
|
||||||
loadingText: t("loading"),
|
loadingText: t("loading"),
|
||||||
onClick: handleAutoRename,
|
onClick: handleAutoRename,
|
||||||
@ -71,7 +71,7 @@ const AutoRename = ({ onPreviewFile, onComplete, onError }: BaseToolProps) => {
|
|||||||
review: {
|
review: {
|
||||||
isVisible: hasResults,
|
isVisible: hasResults,
|
||||||
operation: autoRenameOperation,
|
operation: autoRenameOperation,
|
||||||
title: t("autoRename.results.title", "Auto-Rename Results"),
|
title: t("auto-rename.results.title", "Auto-Rename Results"),
|
||||||
onFileClick: handleThumbnailClick,
|
onFileClick: handleThumbnailClick,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user