From 9021a111723393c99229fbbf4a2d1a4723b8a567 Mon Sep 17 00:00:00 2001 From: Olivier Date: Fri, 19 Sep 2025 20:54:43 -0400 Subject: [PATCH] WIP. inline doesn't work, but the rest does. --- main.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main.ts b/main.ts index d987ee1..d84a99b 100644 --- a/main.ts +++ b/main.ts @@ -443,16 +443,16 @@ export default class MyPlugin extends Plugin { const partialMonthDays = Math.round((nextBirthday.getTime() - refDate.getTime()) / oneDay); if (partialMonthDays > 15) monthsUntil += 0.5; - msg = `${possessive} birthday is in ${monthsUntil} months.`; + msg = `next one is in ${monthsUntil} months.`; } else if (daysUntil === 0) { - msg = `wish ${pronoun} Happy Birthday!`; + msg = `Today! Wish ${pronoun} Happy Birthday!`; } else if (daysUntil === 1) { - msg = `${possessive} birthday is tomorrow!`; + msg = `that's tomorrow!`; } else { - msg = `next one in ${daysUntil} days.`; + msg = `next one is in ${daysUntil} days.`; } - container.setText(`${name !== null ? name + ": " : ageLabel } ${age}. Birthday is ${birthdayFormatted}—${msg}`); + container.setText(`${name !== null ? name + ": " : ageLabel } ${age} years old. Birthday is ${birthdayFormatted}—${msg}`); break; } case 'countdown':