The Movie Database Support

Hi all! I don't know if this has been discussed before, I would like to report a new issue Some localizations are not working anymore

For example Using local "es" everything is working:

https://api.themoviedb.org/3/movie/340677?api_key=XXX&language=es

Using local "es-AR" I'm having the movie infos in English instead:

https://api.themoviedb.org/3/movie/340677?api_key=XXX&language=es-AR

Using local "es-ES" goes back to normal:

https://api.themoviedb.org/3/movie/340677?api_key=XXX&language=es-ES

I'm having many languages having the same issue.

The API docs seem unchanged, I'm using the standard ISO 639-1 language code.

Any help?

10 replies (on page 1 of 1)

Jump to last post

Hi @Piplos, es-AR is not a valid translation here on TMDb. Why are you using that?

It's determined automatically by the user's locale. In this case it's an user in Argentina who speaks Spanish.

The point is it was correctly working until some weeks ago, then users began to complain about the content showing in English instead of their language (eg. Spanish, Russian, etc.)

I have to know if I have to fix this on client side (in this case I need a list of "allowed locales") or something else

This question interests me.
The program I use to make Scraper for my collection, MediaElch, is undergoing a redesign of the Movie Scraper interface.
If this rule change here at TMDb is final, it may be interesting for me to inform the programmer that there has been this change.
I have no idea if this will interfere, because I don't know what changes will be made to MediaElch.
MediaElch already uses this criterion to define the interface language based on the user's local language.
They may also want to use this criterion in defining the default language for Scraper.

@Piplos said:

I have to know if I have to fix this on client side (in this case I need a list of "allowed locales") or something else

This list is available on the API here: https://developers.themoviedb.org/3/configuration/get-primary-translations

I'm not 100% sure what changed (I'll have to go digging) but none of this is new, I added this method over 3 years ago. I think I can assume the previous behaviour though. If you made a lookup for a translation that isn't official, it would have defaulted to the bare language lookup. What I mean by this is that es-AR would have defaulted back to es-ES.

Hi @travisbell

I just realized the locales are working on some other API endpoints.

Example: https://api.themoviedb.org/3/search/movie?query=it&api_key=XXX&language=es-AR

Here I'm using the same locale (es-AR) that doesn't work on the /movie/{movie_id} endpoint.

I don't know if there's some other endpoints involved, but it could be a start. When I search a movie, it correctly defaults the es-AR locale to es-ES, but when I get the movie details it incorrectly defaults to en-US.

I can totally relate it's something happened recently, as I'm suddenly having a lot of complains from my users.

Same, we’ve started seeing issues with localization on /movie/ endpoint with users. Seems like something definitely changed.

Yes, and to confirm, what’s the language param you’re using?

We just use the two digit iso code, maybe that doesn’t work anymore? Ex. fr

I am not aware of any issues with a request to a language fr (as an example):

Request

curl -v "https://api.themoviedb.org/3/movie/495764?api_key=###&language=fr"

* Connection state changed (MAX_CONCURRENT_STREAMS == 128)!
< HTTP/2 200
< content-type: application/json;charset=utf-8
< content-length: 2286
< date: Mon, 24 Aug 2020 02:35:32 GMT
< server: openresty
< access-control-allow-origin: *
< access-control-allow-methods: GET, HEAD, POST, PUT, DELETE, OPTIONS
< access-control-expose-headers: ETag, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, Retry-After, Content-Length, Content-Range
< cache-control: public, max-age=21600
< x-memc: HIT
< x-memc-key: eb4da87631d15c0d35e6378ced09a648
< x-memc-age: 20813
< x-memc-expires: 787
< etag: W/"ecc497ae513a919abaeee94a23509182"
< last-modified: Mon, 24 Aug 2020 02:35:32 GMT
< vary: Accept-Encoding,Accept-Encoding,Accept-Encoding
< x-cache: Miss from cloudfront
< via: 1.1 39688168a2a3353be1f3c9378d12d89f.cloudfront.net (CloudFront)
< x-amz-cf-pop: SEA19-C2
< x-amz-cf-id: Y_kjBSeoHV8cEd2VzuGxFRg33brmWph3nIi63x8IUQTglPoQloJ9cA==
<
* Connection #0 to host api.themoviedb.org left intact

Response

{
  "adult": false,
  "backdrop_path": "/9xNOiv6DZZjH7ABoUUDP0ZynouU.jpg",
  "belongs_to_collection": null,
  "budget": 75000000,
  "genres": [
    {
      "id": 28,
      "name": "Action"
    },
    {
      "id": 80,
      "name": "Crime"
    },
    {
      "id": 35,
      "name": "Comédie"
    }
  ],
  "homepage": "http://www.birdsofpreymovie.net/",
  "id": 495764,
  "imdb_id": "tt7713068",
  "original_language": "en",
  "original_title": "Birds of Prey (and the Fantabulous Emancipation of One Harley Quinn)",
  "overview": "Vous connaissez l’histoire du flic, de l’oiseau chanteur, de la cinglée et de la princesse mafieuse  BIRDS OF PREY (ET LA FANTABULEUSE HISTOIRE D'HARLEY QUINN) est une histoire déjantée racontée par Harley en personne, d’une manière dont elle seule a le secret.\r Roman Sionis, l’ennemi le plus abominable et le plus narcissique de Gotham, ainsi que son fidèle acolyte Zsasz décident de s'en prendre à une certaine « Cass ». La ville est passée au peigne fin pour retrouver la trace de la jeune fille.\r Les parcours de Harley, de la Chasseuse, de Black Canary et de Renee Montoya se télescopent et ce quatuor improbable n’a d’autre choix que de faire équipe pour éliminer Roman…",
  "popularity": 72.976,
  "poster_path": "/wdrTYPWH4UJWR2XIwCz85M6GdS3.jpg",
  "production_companies": [
    {
      "id": 9993,
      "logo_path": "/2Tc1P3Ac8M479naPp1kYT3izLS5.png",
      "name": "DC Entertainment",
      "origin_country": "US"
    },
    {
      "id": 82968,
      "logo_path": null,
      "name": "LuckyChap Entertainment",
      "origin_country": "GB"
    },
    {
      "id": 103462,
      "logo_path": null,
      "name": "Kroll & Co Entertainment",
      "origin_country": "US"
    },
    {
      "id": 174,
      "logo_path": "/IuAlhI9eVC9Z8UQWOIDdWRKSEJ.png",
      "name": "Warner Bros. Pictures",
      "origin_country": "US"
    },
    {
      "id": 429,
      "logo_path": "/2Tc1P3Ac8M479naPp1kYT3izLS5.png",
      "name": "DC Comics",
      "origin_country": "US"
    },
    {
      "id": 128064,
      "logo_path": null,
      "name": "DC Films",
      "origin_country": "US"
    },
    {
      "id": 101831,
      "logo_path": "/l6x0SkRVp9ksGgRhboZbkI9w7PM.png",
      "name": "Clubhouse Pictures",
      "origin_country": "US"
    }
  ],
  "production_countries": [
    {
      "iso_3166_1": "US",
      "name": "United States of America"
    }
  ],
  "release_date": "2020-02-05",
  "revenue": 201858461,
  "runtime": 108,
  "spoken_languages": [
    {
      "iso_639_1": "en",
      "name": "English"
    },
    {
      "iso_639_1": "zh",
      "name": "普通话"
    }
  ],
  "status": "Released",
  "tagline": "Penser au chaos",
  "title": "Birds of Prey et la fantabuleuse histoire de Harley Quinn",
  "video": false,
  "vote_average": 7.2,
  "vote_count": 5502
}

Thanks @travisbell, let me see if I can track down anything on our side.

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