Add localization for loading page count in various PDF processing pages

This commit is contained in:
Sebastian Espei
2026-03-10 20:13:13 +01:00
parent 571ce07af6
commit 2ede256de2
20 changed files with 944 additions and 806 deletions

View File

@@ -1,4 +1,5 @@
import { showLoader, hideLoader, showAlert } from '../ui.js';
import { t } from '../i18n/i18n';
import { createIcons, icons } from 'lucide';
import * as pdfjsLib from 'pdfjs-dist';
import {
@@ -71,7 +72,7 @@ document.addEventListener('DOMContentLoaded', () => {
const metaSpan = document.createElement('div');
metaSpan.className = 'text-xs text-gray-400';
metaSpan.textContent = `${formatBytes(file.size)}Loading pages...`; // Placeholder
metaSpan.textContent = `${formatBytes(file.size)}${t('common.loadingPageCount')}`; // Placeholder
infoContainer.append(nameSpan, metaSpan);