🍿 @lorenzopant/tmdb

Language

Supported language codes for localizing TMDB responses.

The language option sets the default language for all API responses — including titles, overviews, taglines, and biographical data. TMDB accepts two formats:

  • Primary translation codes — locale-specific tags in language-REGION format (e.g., "it-IT", "en-US", "pt-BR")
  • ISO 639-1 codes — bare two-letter language codes (e.g., "it", "en", "fr")
const tmdb = new TMDB(apiKey, { language: "it-IT" });

When no language is set, TMDB defaults to English.

Primary Translation Codes

These are the fully-supported locales that TMDB has dedicated translation support for. Prefer these over bare ISO 639-1 codes when you need consistent, high-quality translations.

CodeLanguage / Region
en-USEnglish (United States)
en-GBEnglish (United Kingdom)
en-AUEnglish (Australia)
en-CAEnglish (Canada)
it-ITItalian (Italy)
fr-FRFrench (France)
fr-CAFrench (Canada)
de-DEGerman (Germany)
de-ATGerman (Austria)
de-CHGerman (Switzerland)
es-ESSpanish (Spain)
es-MXSpanish (Mexico)
pt-PTPortuguese (Portugal)
pt-BRPortuguese (Brazil)
ja-JPJapanese (Japan)
ko-KRKorean (South Korea)
zh-CNChinese Simplified (China)
zh-TWChinese Traditional (Taiwan)
zh-HKChinese Traditional (Hong Kong)
ru-RURussian (Russia)
ar-SAArabic (Saudi Arabia)
ar-AEArabic (UAE)
hi-INHindi (India)
tr-TRTurkish (Turkey)
nl-NLDutch (Netherlands)
pl-PLPolish (Poland)
sv-SESwedish (Sweden)
...and more

The full PrimaryTranslations type contains ~80 supported locale codes. See the PrimaryTranslations type in the package for the exhaustive list.

ISO 639-1 Codes

Bare ISO 639-1 codes (e.g., "en", "it", "fr") are also accepted via the LanguageISO6391 type. These may return less complete translations compared to primary locale codes. Use them only when a primary translation code is not available for your target language.

Types

TMDB Language Guide

On this page