« get me outta code hell

rename strings( to language.$( - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/things.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2022-05-10 20:17:40 -0300
committer(quasar) nebula <qznebula@protonmail.com>2022-05-10 20:17:40 -0300
commitc6aff602f65dfa4e5a1bc1a8c6841cdda829a0ce (patch)
tree26dbe2fedea2a994591200a06fd7bf533e5b1f0f /src/data/things.js
parent4749a682d55469b3df994ab76b29e62cf570b78c (diff)
rename strings( to language.$(
Diffstat (limited to 'src/data/things.js')
-rw-r--r--src/data/things.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/data/things.js b/src/data/things.js
index a37ede7..34946c0 100644
--- a/src/data/things.js
+++ b/src/data/things.js
@@ -1494,7 +1494,7 @@ Object.assign(Language.prototype, {
 
     formatDuration(secTotal, {approximate = false, unit = false}) {
         if (secTotal === 0) {
-            return strings('count.duration.missing');
+            return language.$('count.duration.missing');
         }
 
         const hour = Math.floor(secTotal / 3600);
@@ -1537,8 +1537,8 @@ Object.assign(Language.prototype, {
             : value);
 
         const words = (value > 1000
-            ? strings('count.words.thousand', {words: num})
-            : strings('count.words', {words: num}));
+            ? language.$('count.words.thousand', {words: num})
+            : language.$('count.words', {words: num}));
 
         return this.$('count.words.withUnit.' + this.getUnitForm(value), {words});
     },