From 9d5f97b2dc5fa7990b7cfc7b8f4aa129981505a5 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 3 Dec 2023 18:38:58 -0400 Subject: content, data: minor fixes caught by full site build --- src/content/dependencies/generateRelativeDatetimestamp.js | 2 +- src/data/things/language.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/content/dependencies/generateRelativeDatetimestamp.js b/src/content/dependencies/generateRelativeDatetimestamp.js index bbe33188..7b7a28de 100644 --- a/src/content/dependencies/generateRelativeDatetimestamp.js +++ b/src/content/dependencies/generateRelativeDatetimestamp.js @@ -28,7 +28,7 @@ export default { }, generate(data, relations, slots, {language}) { - if (data.comparison === 'equal') { + if (data.equal) { return relations.fallback.slots({ style: slots.style, tooltip: slots.tooltip, diff --git a/src/data/things/language.js b/src/data/things/language.js index c1916313..d7e8a1a6 100644 --- a/src/data/things/language.js +++ b/src/data/things/language.js @@ -309,7 +309,7 @@ export class Language extends Thing { else if (numMonths && numDays) basis = this.formatString('count.dateDuration.monthsDays', {months, days}); else if (numMonths) - basis = this.formatzString('count.dateDuration.months', {months}); + basis = this.formatString('count.dateDuration.months', {months}); else if (numDays) basis = this.formatString('count.dateDuration.days', {days}); else -- cgit 1.3.0-6-gf8a5