fix(i18n): correct duplicate key definitions in en-GB translations

- Fixed duplicate `errorConversion` key in `translation.json`
- Aligned and reordered translation keys for clarity in CBR-related options
- Removed redundant entry of `optimizeForEbook` within CBZ section

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
This commit is contained in:
Balázs Szücs 2025-11-12 16:44:13 +01:00
parent 64f9421d46
commit 35d0014d10
2 changed files with 5 additions and 6 deletions

View File

@ -1105,14 +1105,12 @@
"markdown": "Markdown", "markdown": "Markdown",
"textRtf": "Text/RTF", "textRtf": "Text/RTF",
"grayscale": "Greyscale", "grayscale": "Greyscale",
"errorConversion": "An error occurred while converting the file.",
"cbrOptions": "CBR to PDF Options",
"optimizeForEbook": "Optimize PDF for ebook readers (uses Ghostscript)",
"cbrOutputOptions": "PDF to CBR Options",
"cbrDpi": "DPI for image rendering"
"errorConversion": "An error occurred while converting the file.", "errorConversion": "An error occurred while converting the file.",
"cbzOptions": "CBZ to PDF Options", "cbrOptions": "CBR to PDF Options",
"optimizeForEbook": "Optimize PDF for ebook readers (uses Ghostscript)", "optimizeForEbook": "Optimize PDF for ebook readers (uses Ghostscript)",
"cbrOutputOptions": "PDF to CBR Options",
"cbrDpi": "DPI for image rendering",
"cbzOptions": "CBZ to PDF Options",
"cbzOutputOptions": "PDF to CBZ Options", "cbzOutputOptions": "PDF to CBZ Options",
"cbzDpi": "DPI for image rendering" "cbzDpi": "DPI for image rendering"
}, },

View File

@ -36,6 +36,7 @@ export const shouldProcessFilesSeparately = (
// Static function that can be used by both the hook and automation executor // Static function that can be used by both the hook and automation executor
export const buildConvertFormData = (parameters: ConvertParameters, selectedFiles: File[]): FormData => { export const buildConvertFormData = (parameters: ConvertParameters, selectedFiles: File[]): FormData => {
const formData = new FormData(); const formData = new FormData();
const { fromExtension, toExtension, imageOptions, htmlOptions, emailOptions, pdfaOptions, cbrOptions, pdfToCbrOptions, cbzOptions, cbzOutputOptions } = parameters;
selectedFiles.forEach(file => { selectedFiles.forEach(file => {
formData.append("fileInput", file); formData.append("fileInput", file);