2

I'm using the Services module together with a multilingual backend (field translation). My endpoint is v1. What I would like to have is <domain>/v1/fr/....

Is this possible without having a redirect? What is the recommended way for handling multilingual services?

0

If you are using the language code as a URL prefix, then you should be able to access your endpoint as usual with the language code prefixed to it:

?q=fr/v1/...

For example, to get a node in French you could make a GET call on:

?q=fr/v1/node/123.json
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.