« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data
diff options
context:
space:
mode:
Diffstat (limited to 'src/data')
-rw-r--r--src/data/things.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/data/things.js b/src/data/things.js
index aa761356..97e70cde 100644
--- a/src/data/things.js
+++ b/src/data/things.js
@@ -1402,6 +1402,10 @@ Language.propertyDescriptors = {
         update: {validate: isLanguageCode}
     },
 
+    // Human-readable name. This should be the language's own native name, not
+    // localized to any other language.
+    name: Thing.common.simpleString(),
+
     // Language code specific to JavaScript's Internationalization (Intl) API.
     // Usually this will be the same as the language's general code, but it
     // may be overridden to provide Intl constructors an alternative value.
@@ -1556,7 +1560,7 @@ Object.assign(Language.prototype, {
         return this.intl_date.formatRange(startDate, endDate);
     },
 
-    formatDuration(secTotal, {approximate = false, unit = false}) {
+    formatDuration(secTotal, {approximate = false, unit = false} = {}) {
         if (secTotal === 0) {
             return this.formatString('count.duration.missing');
         }