x% complete

This commit is contained in:
Damien Elmes 2023-09-27 16:24:25 +10:00
parent 0532c1f5b0
commit 65c2381f4d
2 changed files with 2 additions and 1 deletions

View file

@ -338,6 +338,7 @@ deck-config-fsrs-on-all-clients =
Please ensure all of your Anki clients are Anki(Mobile) 23.10+ or AnkiDroid 2.17+. FSRS will
not work correctly if one of your clients is older.
deck-config-set-optimal-retention = Set desired retention to { $num }
deck-config-complete = { $num }% complete.
## NO NEED TO TRANSLATE. This text is no longer used by Anki, and will be removed in the future.

View file

@ -182,7 +182,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
return "";
}
const pct = ((val.current / val.total) * 100).toFixed(0);
return `${pct}%`;
return tr.deckConfigComplete({ num: pct });
}
function stringForSetOptimalRetention(retention: number): String {