🍿 @lorenzopant/tmdb

Languages

Get the list of languages used throughout TMDB.

Returns the list of languages (ISO 639-1) used throughout TMDB.

async languages(): Promise<ConfigurationLanguage[]>

TMDB Reference: Configuration Languages

Parameters

This method takes no parameters.

Returns

An array of ConfigurationLanguage objects, each representing a language recorded in the TMDB database.

Example

import { TMDB } from "@lorenzopant/tmdb";

const tmdb = new TMDB("your-api-key");
const languages = await tmdb.configuration.languages();

console.log(languages);
// [
//   { iso_639_1: "en", english_name: "English", name: "English" },
//   { iso_639_1: "it", english_name: "Italian", name: "Italiano" },
//   { iso_639_1: "fr", english_name: "French", name: "Français" },
//   ...
// ]

This returns all languages TMDB has recorded, which is broader than the set of fully-supported translation locales. For localization purposes, prefer using primary_translations() or the Language type.

Types

On this page