Skip to main content

Documentation

Library Exports.Language

A language.

Constructors

constructor

new Language(youtube, data, full?)

Parameters

NameTypeDefault value
youtubeYouTubeundefined
dataanyundefined
fullbooleantrue

Defined in

entities/language.ts:52

Properties

data

data: any

The raw data of this language.

Defined in

entities/language.ts:35


full

full: boolean = true

Whether or not this is a full language object.

Defined in

entities/language.ts:30


hl

hl: string

The language code that uniquely identifies the language.

Defined in

entities/language.ts:45


id

id: string

The ID of this language.

Defined in

entities/language.ts:40


name

name: string

The language's name.

Defined in

entities/language.ts:50


youtube

youtube: YouTube

The YouTube object that created this language object.

Defined in

entities/language.ts:25


endpoint

Static endpoint: string = 'i18nLanguages'

The name of the endpoint used for this entity.

Defined in

entities/language.ts:10


fields

Static fields: string = 'items(kind,id,snippet(hl,name))'

The fields to request for this entity.

Defined in

entities/language.ts:20


part

Static part: string = 'snippet'

The parts to request for this entity.

Defined in

entities/language.ts:15