« get me outta code hell

hidden language support - 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-23 12:33:15 -0300
committer(quasar) nebula <qznebula@protonmail.com>2022-05-23 12:33:15 -0300
commit3ba2440f7b405b0f2556957ad827defe25873c4d (patch)
tree9cd0024876f0cf7f29445e4c7e97ed31b5c81940 /src/data
parent71eb6ecb8e9b2e4bf0a34fb0726a75d638da50d0 (diff)
hidden language support
Diffstat (limited to 'src/data')
-rw-r--r--src/data/things.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/data/things.js b/src/data/things.js
index b4737510..daec610c 100644
--- a/src/data/things.js
+++ b/src/data/things.js
@@ -1466,6 +1466,16 @@ Language.propertyDescriptors = {
         }
     },
 
+    // Flag which represents whether or not to hide a language from general
+    // access. If a language is hidden, its portion of the website will still
+    // be built (with all strings localized to the language), but it won't be
+    // included in controls for switching languages or the <link rel=alternate>
+    // tags used for search engine optimization. This flag is intended for use
+    // with languages that are currently in development and not ready for
+    // formal release, or which are just kept hidden as "experimental zones"
+    // for wiki development or content testing.
+    hidden: Thing.common.flag(false),
+
     // Mapping of translation keys to values (strings). Generally, don't
     // access this object directly - use methods instead.
     strings: {