« get me outta code hell

port the rest of everything - 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:
author(quasar) nebula <qznebula@protonmail.com>2022-05-10 21:53:25 -0300
committer(quasar) nebula <qznebula@protonmail.com>2022-05-10 21:53:25 -0300
commit861c4086c6355f6551f6d1dccbf6d9766c6b1d15 (patch)
tree317b35fbc4a5248e6bec84642bd0a6a5fb2cf289 /src/data
parent89ae8d37a9658da0be528e822a6e8116074334fb (diff)
port the rest of everything
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');
         }