Class: Language

.models. Language

A class representing a Language

new Language( [data])

Create a new Language
Parameters:
Name Type Argument Description
data Object <optional>
The data to use for this Language object
Properties
Name Type Argument Description
abbreviation String <optional>
An abbreviation for this language, formatted as a valid Abbreviation.
additionalNames Array | Set <optional>
An Array or Set of additional names for this language, as Strings.
codes Object <optional>
An Object containing two properties, `glottolog` and `iso`, each of which must be Arrays or Sets of Strings.
dateCreated Date | String <optional>
The date and optionally time that the data for this Language object was originally created, as either a Date object or a valid date string. If none is provided, this property will be set automatically upon instantiation.
dateModified Date | String <optional>
The date and optionally time that the data for this Language object was last modified, as either a Date object or a valid date string. If none is provided, this property will be set automatically upon instantiation.
glottolog String <optional>
The Glottolog code for this language variety
iso String <optional>
The ISO 639-3 code for this language variety
locations Array <optional>
An Array of locations where this language variety is spoken, each formatted as a Location object.
name Object The name of this language, formatted as a MultiLangString.
orthographies Array <optional>
An Array of orthographies used by this language, each formatted as an Orthography object
phonemes Array <optional>
An Array of phonemes in this language, formatted as Phoneme objects.
url URL <optional>
The URL where the JSON data for this language may be retrieved, as a valid URI
Properties:
Name Type Description
abbreviation String An abbreviation for this Language, as a String.
additionalNames Set A Set of additional names for this language, as Strings.
dateCreated Date The date and time that this Language object was created
dateModified Date The date and time that this Language object was last modified. Setting any property on this object will update this property automatically.
locations Array An Array of locations where this language variety is spoken, as Location objects.
glottolog String The Glottolog code for this language variety
iso String The ISO 639-3 code for this language variety
name MultiLangString The name of this language, as a MultiLangString.
orthographies Array An Array of orthographies used by this language, each as an Orthography object
phonemes Array An Array of phonemes in this language, as Phoneme objects.
url URL The URL where the JSON data for this language may be retrieved, as a valid URI

Extends

  • Model