Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

multilingual api access


Reply

2 Posts   771 Views

Avatar
dompie

24 February 2011 at 12:25am Community Member, 88 Posts

Hello,

I have searched the forums and docs to find out how to access translated dataobjects with api/v1/MyDataObject but could not find anything. Somoeone know how to query them? I'd expect something like http://mydomain.com/api/v1/MyDataObject/2?locale=en_US but this does not work.

Avatar
dompie

18 May 2011 at 10:56pm Community Member, 88 Posts

Just in case someone else is looking for a solution:

Use http://mydomain.com/api/v1/MyDataObject/?locale=en_US
instead of
http://mydomain.com/api/v1/MyDataObject/2?locale=en_US

And api multilanguage support is done.