The Movie Database Support

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

2 replies (on page 1 of 1)

Jump to last post

I think what you want is the list of primary_translations.
Look here: https://developers.themoviedb.org/3/configuration/get-primary-translations

https://api.themoviedb.org/3/configuration/primary_translations?api_key=THE_KEY  

0   "ar-AE"
1   "ar-SA"
2   "be-BY"
3   "bg-BG"

@ticao2 said:

I think what you want is the list of primary_translations.
Look here: https://developers.themoviedb.org/3/configuration/get-primary-translations

https://api.themoviedb.org/3/configuration/primary_translations?api_key=THE_KEY  

0 "ar-AE"
1 "ar-SA"
2 "be-BY"
3 "bg-BG"

Thanks. Seems so.

It could be better to also have "name" and "english_name" for primary_translations.

Can't find a movie or TV show? Login to create it.

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Settings

Want to rate or add this item to a list?

Login