It's actually the translations API, here's a full example. I think I found the reason, it uses the translated name field, so if that is blank for the locale, the API also returns a blank string. Maybe this can fall back to the original name if the translated name is blank? or the original name can also be included?
In the example below, I filled in the translated name (used the same value as original name) and the name field is there for the Norwegian translation.
{
"id":94653,
"translations":[
{
"iso_3166_1":"US",
"iso_639_1":"en",
"name":"English",
"english_name":"English",
"data":{
"name":"",
"overview":"Atle Antonsen has invited five of Norway's best comedians to solve a number of tasks.",
"homepage":"",
"tagline":""
}
},
{
"iso_3166_1":"NO",
"iso_639_1":"no",
"name":"Norsk",
"english_name":"Norwegian",
"data":{
"name":"Kongen befaler",
"overview":"Atle Antonsen inntar rollen som den allmektige kongen med Olli Wermskog som assistent. I hvert program deler han ut absurde praktiske oppgaver og utfordringer til Bård og Vegard Ylvisåker, Calle Hellevang-Larsen, Siri Kristiansen og Maria «Piateed» Stavang som humoristene må løse på mest mulig kreativt og effektivt vis. Skitne triks og bestikkelser er lov underveis, og når alt er sagt og gjort –og all verdighet er blåst bort –er det opp til Atle Antonsen å bestemme hvem som er ukens vinner.\n\nNår Kongen befaler er tilbake på tv denne høsten, blir det både gamle og nye fjes som skal utføre Atles bisarre utfordringer. Årets deltakere er Jon Almaas, Calle Hellevang-Larsen, Maria Stavang, Magnus Devold og Mia Hundvind.",
"homepage":"",
"tagline":""
}
}
]
}
Ok gotcha, thanks for the info. I'll just have users fill in the translated fields with the correct info and that should address the missing data they are seeing. Thanks!
Reply by Travis Bell
on September 21, 2020 at 6:08 PM
Which field are you referring to exactly, the
name
field? Here's an example request I just did, the field is being returned...Request
Response
Reply by rectifyer
on September 21, 2020 at 6:28 PM
It's actually the translations API, here's a full example. I think I found the reason, it uses the translated name field, so if that is blank for the locale, the API also returns a blank string. Maybe this can fall back to the original name if the translated name is blank? or the original name can also be included?
In the example below, I filled in the translated name (used the same value as original name) and the name field is there for the Norwegian translation.
Request
Response
Reply by Travis Bell
on September 21, 2020 at 6:38 PM
Ah in that case, this is expected. We can only display the data that has been entered. It's the same as the data you can see being returned here.
Reply by rectifyer
on September 21, 2020 at 6:42 PM
Ok gotcha, thanks for the info. I'll just have users fill in the translated fields with the correct info and that should address the missing data they are seeing. Thanks!