Suporte do The Movie Database

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 respostas (na página 1 de 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.

Não consegue encontrar um certo Filme ou Série? Inicie Sessão e adicione-o.

Geral

s focus the search bar
p abrir menu do perfil
esc close an open window
? open keyboard shortcut window

Em páginas de Média

b go back (or to parent when applicable)
e ir para a página de edição

Em Páginas de Temporadas de Séries

(seta para a direita) ir para a próxima temporada
(seta para a esquerda) ir para a temporada anterior

Em Páginas de Episódios de Séries

(seta para a direita) ir para o próximo episódio
(seta para a esquerda) ir para o episódio anterior

Em Todas as Páginas de Imagens

a abrir janela para adicionar imagem

Em Todas as Páginas de Edição

t open translation selector
ctrl+ s submit form

Em Páginas de Discussão

n criar uma nova discussão
w toggle watching status
p toggle public/private
c toggle close/open
a abrir actividade
r reply to discussion
l ir para a última resposta
ctrl+ enter submit your message
(seta para a direita) página seguinte
(seta para a esquerda) página anterior

Definições

Deseja classificar ou adicionar este item a uma lista?

Iniciar Sessão

Ainda não é um membro?

Crie uma Conta e Adere a Comunidade