From 861c4086c6355f6551f6d1dccbf6d9766c6b1d15 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 10 May 2022 21:53:25 -0300 Subject: port the rest of everything --- src/data/things.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/data') 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'); } -- cgit 1.3.0-6-gf8a5