Translations
Query the translations associated with a specific collection.
This method returns the translations associated with a specific collection. It can be used to retrieve all the translations for a collection.
async translations(params: CollectionTranslationsParams): Promise<CollectionTranslations>TMDB Reference: Collection Translations
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
collection_id | number | ✅ | TMDB collection identifier. |
Returns
A CollectionTranslations object containing
the translations of the specified collection.
Example
import { TMDB } from "@lorenzopant/tmdb";
const tmdb = new TMDB("your-api-key");
const collection = await tmdb.collections.translations({ collection_id: 10 }); // Star Wars Collection Translations