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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

multilingual api access


Go to End


2 Posts   1519 Views

Avatar
dompie

Community Member, 88 Posts

24 February 2011 at 12:25am

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

Community Member, 88 Posts

18 May 2011 at 10:56pm

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.