« get me outta code hell

data: concise-retouch remaining toplevel property descriptors - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/things/language.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-12-06 13:25:28 -0400
committer(quasar) nebula <qznebula@protonmail.com>2025-12-06 13:25:28 -0400
commitc7cc130f97c2a0f390ba0e07e3aa048395636817 (patch)
tree91e4e4b5b1d5c70b364dc7e530b424ea3e422b09 /src/data/things/language.js
parentf2161a3fe8ff9b574f53156d08ca7853427be8e4 (diff)
data: concise-retouch remaining toplevel property descriptors
Diffstat (limited to 'src/data/things/language.js')
-rw-r--r--src/data/things/language.js22
1 files changed, 6 insertions, 16 deletions
diff --git a/src/data/things/language.js b/src/data/things/language.js
index afda258c..1e22ead6 100644
--- a/src/data/things/language.js
+++ b/src/data/things/language.js
@@ -1,7 +1,8 @@
 import {Temporal, toTemporalInstant} from '@js-temporal/polyfill';
 
 import {withAggregate} from '#aggregate';
-import {input} from '#composite';
+import {logWarn} from '#cli';
+import {input, V} from '#composite';
 import * as html from '#html';
 import {accumulateSum, empty, withEntries} from '#sugar';
 import {isLanguageCode, isObject} from '#validators';
@@ -16,7 +17,7 @@ import {
   isExternalLinkStyle,
 } from '#external-links';
 
-import {exitWithoutDependency, exposeConstant, exposeDependency}
+import {exitWithoutDependency, exposeConstant}
   from '#composite/control-flow';
 import {flag, name} from '#composite/wiki-properties';
 
@@ -126,18 +127,9 @@ export class Language extends Thing {
 
     // Expose only
 
-    isLanguage: [
-      exposeConstant({
-        value: input.value(true),
-      }),
-    ],
+    isLanguage: exposeConstant(V(true)),
 
-    onlyIfOptions: {
-      flags: {expose: true},
-      expose: {
-        compute: () => Symbol.for(`language.onlyIfOptions`),
-      },
-    },
+    onlyIfOptions: exposeConstant(V(Symbol.for(`language.onlyIfOptions`))),
 
     intl_date: this.#intlHelper(Intl.DateTimeFormat, {full: true}),
     intl_dateYear: this.#intlHelper(Intl.DateTimeFormat, {year: 'numeric'}),
@@ -167,9 +159,7 @@ export class Language extends Thing {
 
     // TODO: This currently isn't used. Is it still needed?
     strings_htmlEscaped: [
-      exitWithoutDependency({
-        dependency: 'strings',
-      }),
+      exitWithoutDependency('strings'),
 
       {
         dependencies: ['strings'],