mirror of
https://github.com/alam00000/bentopdf.git
synced 2026-11-10 17:14:34 +01:00
fix: integrate localization for table of contents title
This commit is contained in:
1 parent
2dd58cc894
commit
cf8dd5ec2c
2 files changed
+2
-2
No files matched your search
@@ -6,6 +6,7 @@ import {
|
||||
WasmProvider,
|
||||
} from '../utils/wasm-provider.js';
|
||||
import { loadPdfWithPasswordPrompt } from '../utils/password-prompt.js';
|
||||
import { initI18n, t } from '../i18n/index.js';
|
||||
|
||||
const worker = new Worker(
|
||||
import.meta.env.BASE_URL + 'workers/table-of-contents.worker.js'
|
||||
@@ -146,7 +147,7 @@ async function generateTableOfContents() {
|
||||
|
||||
showStatus('Generating table of contents...', 'info');
|
||||
|
||||
const title = tocTitleInput.value || 'Table of Contents';
|
||||
const title = tocTitleInput.value || t('tools:tableOfContents.name');
|
||||
const fontSize = parseInt(fontSizeSelect.value, 10);
|
||||
const fontFamily = parseInt(fontFamilySelect.value, 10);
|
||||
const addBookmark = addBookmarkCheckbox.checked;
|
||||
|
||||
Reference in new issue
Block a user