« get me outta code hell

content, data: minor fixes caught by full site build - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-12-03 18:38:58 -0400
committer(quasar) nebula <qznebula@protonmail.com>2023-12-03 18:38:58 -0400
commit9d5f97b2dc5fa7990b7cfc7b8f4aa129981505a5 (patch)
tree77080a8ff8ace97fceea037d69b84d1231c86e85 /src
parentd9d2bd7642b1ef398ad2ff5cfb027abaf437e4a3 (diff)
content, data: minor fixes caught by full site build
Diffstat (limited to 'src')
-rw-r--r--src/content/dependencies/generateRelativeDatetimestamp.js2
-rw-r--r--src/data/things/language.js2
2 files changed, 2 insertions, 2 deletions
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