with the /3/configuration/languages
API, I can get the language list supported by TMDB.
However, only the iso_639_1 code is returned in the list. Regional languages are not returned.
{
"iso_639_1": "fr",
"english_name": "French",
"name": "Français"
},
{
"iso_639_1": "zh",
"english_name": "Mandarin",
"name": "普通话"
},
For example, "zh" is in the list, but people in Taiwan use zh-TW, which is not in the list.
But acturally, TMDB works with those regional language codes. For example, I can use zh-TW for the language parameter. ( https://api.themoviedb.org/3/movie/43949?language=zh-TW )
Question: how can I get the supported language list, includes those regional ones like zh-TW and fr-CA? (so that I can provide a user preference works with the regional language code)
Thanks
Leo
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by ticao2 🇧🇷 pt-BR
on June 15, 2021 at 8:07 AM
I think what you want is the list of primary_translations.
Look here: https://developers.themoviedb.org/3/configuration/get-primary-translations
Reply by leoleozhu
on June 15, 2021 at 9:48 PM
Thanks. Seems so.
It could be better to also have "name" and "english_name" for
primary_translations
.