Fix: Tooltips

This commit is contained in:
Luc Mcgrady 2025-11-26 17:36:43 +00:00
parent b554556cc3
commit d11b803b88
No known key found for this signature in database
GPG key ID: 4F3D7A0B17CC3D9C
3 changed files with 7 additions and 4 deletions

View file

@ -521,8 +521,8 @@ deck-config-save-options-to-preset-confirm = Overwrite the options in your curre
# to show the total number of cards that can be recalled or retrieved on a
# specific date.
deck-config-fsrs-simulator-radio-memorized = Memorized
deck-config-fsrs-simulator-radio-ratio = Time / Memorized Ratio
deck-config-fsrs-simulator-ratio-tooltip = { $time } memorized cards per hour
deck-config-fsrs-simulator-radio-ratio2 = Memorized / Time Ratio
deck-config-fsrs-simulator-ratio-tooltip2 = { $time } memorized cards per hour
## Messages related to the FSRS schedulers health check. The health check determines whether the correlation between FSRS predictions and your memory is good or bad. It can be optionally triggered as part of the "Optimize" function.
@ -543,6 +543,9 @@ deck-config-fsrs-good-fit = Health Check:
## NO NEED TO TRANSLATE. This text is no longer used by Anki, and will be removed in the future.
deck-config-fsrs-simulator-radio-ratio = Time / Memorized Ratio
# $time here is pre-formatted e.g. "10 Seconds"
deck-config-fsrs-simulator-ratio-tooltip = { $time } per memorized card
deck-config-plotted-on-x-axis = (Plotted on the X-axis)
deck-config-a-100-day-interval =
{ $days ->

View file

@ -571,7 +571,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
value={SimulateWorkloadSubgraph.ratio}
bind:group={simulateWorkloadSubgraph}
/>
{tr.deckConfigFsrsSimulatorRadioRatio()}
{tr.deckConfigFsrsSimulatorRadioRatio2()}
</label>
<label>
<input

View file

@ -91,7 +91,7 @@ export function renderWorkloadChart(
const formatY: (value: number) => string = ({
[SimulateWorkloadSubgraph.ratio]: (value: number) =>
tr.deckConfigFsrsSimulatorRatioTooltip({ time: value.toFixed(2) }),
tr.deckConfigFsrsSimulatorRatioTooltip2({ time: value.toFixed(2) }),
[SimulateWorkloadSubgraph.time]: (value: number) =>
tr.statisticsMinutesPerDay({ count: parseFloat((value / 60).toPrecision(2)) }),
[SimulateWorkloadSubgraph.count]: (value: number) => tr.statisticsReviewsPerDay({ count: Math.round(value) }),