« get me outta code hell

data: isAlbum, isTrack, isArtist, isCommentaryEntry, etc - 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-07-10 08:28:41 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-07-10 08:28:41 -0300
commit0674d61d13ebaafe3b36dd84b7ab90db7f99ceb4 (patch)
treefa081814a1e44f003fb44b8cdbf6ed782c879c9b /src/data/things/language.js
parentb9afcbf668f52d55550eddcc9ff164ee66aadeae (diff)
data: isAlbum, isTrack, isArtist, isCommentaryEntry, etc
Diffstat (limited to 'src/data/things/language.js')
-rw-r--r--src/data/things/language.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/data/things/language.js b/src/data/things/language.js
index e3689643..d9151551 100644
--- a/src/data/things/language.js
+++ b/src/data/things/language.js
@@ -1,8 +1,9 @@
-import { Temporal, toTemporalInstant } from '@js-temporal/polyfill';
+import {Temporal, toTemporalInstant} from '@js-temporal/polyfill';
 
 import {withAggregate} from '#aggregate';
 import CacheableObject from '#cacheable-object';
 import {logWarn} from '#cli';
+import {input} from '#composite';
 import * as html from '#html';
 import {empty} from '#sugar';
 import {isLanguageCode} from '#validators';
@@ -16,6 +17,7 @@ import {
   isExternalLinkStyle,
 } from '#external-links';
 
+import {exposeConstant} from '#composite/control-flow';
 import {externalFunction, flag, name} from '#composite/wiki-properties';
 
 export const languageOptionRegex = /{(?<name>[A-Z0-9_]+)}/g;
@@ -127,6 +129,12 @@ export class Language extends Thing {
 
     // Expose only
 
+    isLanguage: [
+      exposeConstant({
+        value: input.value(true),
+      }),
+    ],
+
     onlyIfOptions: {
       flags: {expose: true},
       expose: {