mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-16 11:23:10 +02:00
Cleanup-conversion-translations (#5906)
Co-authored-by: Anthony Stirling <[email protected]>
This commit is contained in:
co-authored by
Anthony Stirling
parent
b68b406a2a
commit
0545c3f997
@@ -71,6 +71,31 @@ export const ENDPOINT_NAMES = {
|
||||
'text-editor-pdf': 'text-editor-to-pdf'
|
||||
} as const;
|
||||
|
||||
/** Maps conversion endpoint → [i18n key, English fallback] for display names */
|
||||
export const ENDPOINT_I18N: Record<string, [string, string]> = {
|
||||
'img-to-pdf': ['imageToPDF.header', 'Image → PDF'],
|
||||
'html-to-pdf': ['HTMLToPDF.header', 'HTML → PDF'],
|
||||
'markdown-to-pdf': ['MarkdownToPDF.header', 'Markdown → PDF'],
|
||||
'pdf-to-img': ['pdfToImage.title', 'PDF → Image'],
|
||||
'pdf-to-word': ['PDFToWord.header', 'PDF → Word'],
|
||||
'pdf-to-presentation': ['PDFToPresentation.header', 'PDF → Presentation'],
|
||||
'pdf-to-text': ['PDFToText.header', 'PDF → Text'],
|
||||
'pdf-to-csv': ['PDFToCSV.header', 'PDF → CSV'],
|
||||
'pdf-to-xlsx': ['PDFToXLSX.header', 'PDF → Excel'],
|
||||
'pdf-to-markdown': ['PDFToMarkdown.header', 'PDF → Markdown'],
|
||||
'pdf-to-html': ['PDFToHTML.header', 'PDF → HTML'],
|
||||
'pdf-to-xml': ['PDFToXML.header', 'PDF → XML'],
|
||||
'pdf-to-pdfa': ['pdfToPDFA.header', 'PDF → PDF/A'],
|
||||
'file-to-pdf': ['convert.fileToPdf', 'Office/Document → PDF'],
|
||||
'cbr-to-pdf': ['convert.cbrToPdf', 'CBR → PDF'],
|
||||
'cbz-to-pdf': ['convert.cbzToPdf', 'CBZ → PDF'],
|
||||
'eml-to-pdf': ['convert.emlToPdf', 'Email → PDF'],
|
||||
'ebook-to-pdf': ['convert.ebookToPdf', 'eBook → PDF'],
|
||||
'svg-to-pdf': ['convert.svgToPdf', 'SVG → PDF'],
|
||||
'pdf-to-cbr': ['convert.pdfToCbr', 'PDF → CBR'],
|
||||
'pdf-to-cbz': ['convert.pdfToCbz', 'PDF → CBZ'],
|
||||
'pdf-to-epub': ['convert.pdfToEpub', 'PDF → EPUB'],
|
||||
};
|
||||
|
||||
// Grouped file extensions for dropdowns
|
||||
export const FROM_FORMAT_OPTIONS = [
|
||||
|
||||
Reference in New Issue
Block a user