[Editor] Fix l10n issues

Remove the strings containing only a variable.
This commit is contained in:
Calixte Denizet 2024-08-02 09:28:57 +02:00
parent 501da85222
commit 63d0fa5733
3 changed files with 6 additions and 5 deletions

View file

@ -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;