Translation support has been added.

This commit is contained in:
saikumarjetti 2025-03-25 19:54:38 +05:30
parent 5938e18e2e
commit 5a7f52f748

View File

@ -53,9 +53,10 @@ function setupFileInput(chooser) {
});
// Handle form validation if the input is left empty
fileInput.addEventListener("invalid", (e)=>{
e.preventDefault();
alert('Please select a PDF file before submitting.')
fileInput.addEventListener("invalid", (e) => {
e.preventDefault();
alert(pdfPrompt);
console.log(escapeHtml(translations.selectPDF));
});
const dragenterListener = function () {