WIP. inline doesn't work, but the rest does.

This commit is contained in:
2025-09-19 20:54:43 -04:00
parent ee7be363cc
commit 9021a11172

10
main.ts
View File

@@ -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':