diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-09-07 12:06:06 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-09-07 12:07:03 -0300 |
commit | 6889c764caef5542ba9ad8362acf6e8b7b879ea9 (patch) | |
tree | a89bb9a9bd9884ffd1c51e4926a04469618f73b3 /src/data/things/language.js | |
parent | 8b379954c9d74f0d47ac32ef395627353940c728 (diff) |
data, infra: import validators directly
Diffstat (limited to 'src/data/things/language.js')
-rw-r--r-- | src/data/things/language.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/data/things/language.js b/src/data/things/language.js index 7755c505..0638afa2 100644 --- a/src/data/things/language.js +++ b/src/data/things/language.js @@ -1,11 +1,9 @@ +import {isLanguageCode} from '#validators'; + import Thing from './thing.js'; export class Language extends Thing { - static [Thing.getPropertyDescriptors] = ({ - validators: { - isLanguageCode, - }, - }) => ({ + static [Thing.getPropertyDescriptors] = () => ({ // Update & expose // General language code. This is used to identify the language distinctly |