mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-08-26 06:09:23 +00:00
fix translations
This commit is contained in:
parent
3994914c4b
commit
feba136044
@ -1316,17 +1316,7 @@
|
||||
"tags": "auto-detect,header-based,organize,relabel",
|
||||
"title": "Auto Rename",
|
||||
"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",
|
||||
"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": {
|
||||
"placeholder": "Select a PDF file in the main view to get started"
|
||||
},
|
||||
|
@ -1043,17 +1043,7 @@
|
||||
"tags": "auto-detect,header-based,organize,relabel",
|
||||
"title": "Auto Rename",
|
||||
"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",
|
||||
"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": {
|
||||
"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
|
||||
multiFileEndpoint: false,
|
||||
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) {
|
||||
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: {
|
||||
selectedFiles,
|
||||
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: [],
|
||||
executeButton: {
|
||||
text: t("autoRename.submit", "Auto-Rename"),
|
||||
text: t("auto-rename.submit", "Auto Rename"),
|
||||
isVisible: !hasResults,
|
||||
loadingText: t("loading"),
|
||||
onClick: handleAutoRename,
|
||||
@ -71,7 +71,7 @@ const AutoRename = ({ onPreviewFile, onComplete, onError }: BaseToolProps) => {
|
||||
review: {
|
||||
isVisible: hasResults,
|
||||
operation: autoRenameOperation,
|
||||
title: t("autoRename.results.title", "Auto-Rename Results"),
|
||||
title: t("auto-rename.results.title", "Auto-Rename Results"),
|
||||
onFileClick: handleThumbnailClick,
|
||||
},
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user