mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
[Editor] Fix l10n issues
Remove the strings containing only a variable.
This commit is contained in:
parent
501da85222
commit
63d0fa5733
3 changed files with 6 additions and 5 deletions
|
@ -299,9 +299,13 @@ class NewAltTextManager {
|
|||
totalLoaded = Math.min(0.99 * total, totalLoaded);
|
||||
|
||||
// Update the progress.
|
||||
const totalSize = (this.#downloadModelDescription.ariaValueMax =
|
||||
Math.round(total / ONE_MEGA_BYTES));
|
||||
const downloadedSize = (this.#downloadModelDescription.ariaValueNow =
|
||||
Math.round(totalLoaded / ONE_MEGA_BYTES));
|
||||
this.#downloadModelDescription.setAttribute(
|
||||
"data-l10n-args",
|
||||
`{"totalSize": ${Math.round(total / ONE_MEGA_BYTES)}, "downloadedSize": ${Math.round(totalLoaded / ONE_MEGA_BYTES)}}`
|
||||
JSON.stringify({ totalSize, downloadedSize })
|
||||
);
|
||||
if (!finished) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue