« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--strings-default.json1
-rwxr-xr-xupd8.js3
2 files changed, 2 insertions, 2 deletions
diff --git a/strings-default.json b/strings-default.json
index d9ab89a7..d611758c 100644
--- a/strings-default.json
+++ b/strings-default.json
@@ -27,6 +27,7 @@
     "count.duration.minutes.withUnit": "{MINUTES}:{SECONDS} minutes",
     "count.duration.approximate": "~{DURATION}",
     "count.duration.missing": "_:__",
+    "count.index": "#{INDEX}",
     "count.words": "{WORDS}",
     "count.words.thousand": "{WORDS}k",
     "count.words.withUnit.singular": "{WORDS} word",
diff --git a/upd8.js b/upd8.js
index 7d191e0d..772573a8 100755
--- a/upd8.js
+++ b/upd8.js
@@ -568,8 +568,7 @@ const count = {
     },
 
     index: (value, {strings}) => {
-        // TODO: Localize...?
-        return '#' + value;
+        return strings('count.index', {index: value});
     },
 
     number: value => strings.intl.number.format(value),