diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-11-24 14:56:10 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-11-24 14:56:10 -0400 |
commit | ca30b07b9e116f6d42d6ea6a2623e1500c289383 (patch) | |
tree | 64a65bbff14b09c914743c15f0e17d26bd27b87c /src/data/composite | |
parent | 9e00e7770e5c3987b6a6a1437d79a38ff57115b9 (diff) | |
parent | bad238355e19c4fef5e5f3b41df88fa9b1b84aaa (diff) |
Merge branch 'additional-names' into preview
Diffstat (limited to 'src/data/composite')
-rw-r--r-- | src/data/composite/wiki-properties/additionalNameList.js | 13 | ||||
-rw-r--r-- | src/data/composite/wiki-properties/index.js | 1 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/data/composite/wiki-properties/additionalNameList.js b/src/data/composite/wiki-properties/additionalNameList.js new file mode 100644 index 00000000..d1302224 --- /dev/null +++ b/src/data/composite/wiki-properties/additionalNameList.js @@ -0,0 +1,13 @@ +// A list of additional names! These can be used for a variety of purposes, +// e.g. providing extra searchable titles, localizations, romanizations or +// original titles, and so on. Each item has a name and, optionally, a +// descriptive annotation. + +import {isAdditionalNameList} from '#validators'; + +export default function() { + return { + flags: {update: true, expose: true}, + update: {validate: isAdditionalNameList}, + }; +} diff --git a/src/data/composite/wiki-properties/index.js b/src/data/composite/wiki-properties/index.js index 2462b047..7607e361 100644 --- a/src/data/composite/wiki-properties/index.js +++ b/src/data/composite/wiki-properties/index.js @@ -1,4 +1,5 @@ export {default as additionalFiles} from './additionalFiles.js'; +export {default as additionalNameList} from './additionalNameList.js'; export {default as color} from './color.js'; export {default as commentary} from './commentary.js'; export {default as commentatorArtists} from './commentatorArtists.js'; |