Feat/90% desired retention warning

This commit is contained in:
Luc Mcgrady 2025-05-11 12:17:11 +01:00
parent 5080451829
commit 37b932f032
2 changed files with 2 additions and 1 deletions

View file

@ -475,6 +475,7 @@ deck-config-a-100-day-interval =
[one] A 100 day interval will become { $days } day.
*[other] A 100 day interval will become { $days } days.
}
deck-config-90-percent-desired-retention-warning = The higher the desired retention, the shorter the intervals between reviews.
deck-config-percent-of-reviews =
{ $reviews ->
[one] { $pct }% of { $reviews } review

View file

@ -75,7 +75,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
(stability / factor) * (Math.pow(retention, 1 / decay) - 1),
);
if (days === 100) {
return "";
return tr.deckConfig90PercentDesiredRetentionWarning();
}
return tr.deckConfigA100DayInterval({ days });
}