I created a multi-language site based on 8.0-alpha11. This site is configured so English is displayed when using the 'www' subdomain. Spanish is displayed when using the "es" subdomain. The following URLs are both working as a result:

http://www.RayStedman.info/node/1 -- returns English HTML

http://es.RayStedman.info/node/1 -- returns Spanish HTML

My goal is to return JSON using a RESTful GET for the two URLs above. I enabled modules, configured permissions and adjusted rest.settings. I then issued a GET request with an "Accept: application/json" header for the English URL. I received JSON content in English as expected. I then issued a GET with the Spanish URL and the same header. I received JSON content in English as well. I expected to receive JSON content in Spanish using the Spanish URL.

Please note both of these URLs access a custom content type where most of the fields are translatable. The English node was created first and then translated into Spanish.

Comments

Greg Sims’s picture

Greg Sims’s picture

Status: Active » Postponed
Greg Sims’s picture

Status: Postponed » Closed (duplicate)
Gábor Hojtsy’s picture

Which issue is/was this one a duplicate of?

Greg Sims’s picture

I believe the duplicate is: #2135829: Handling entities with translations in REST. Please reopen this issue if you do not believe this is the case.

Gábor Hojtsy’s picture

Right sorry you have that listed above. My bad.