Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to retrieve the value of a localized field in the correct language? #1

Open
bostondevin opened this issue Oct 12, 2017 · 0 comments

Comments

@bostondevin
Copy link

I made one of my fields localized but when i'm getting the data back for that field, while having a default language set, it's bringing back all of the languages instead of just the one I am looking for.

How is this supposed to be handled? I would expect the value returned from my localized field to look like this (if set to english):

Value A

Instead of:

{
en: "Value A",
fr: "Value B",
ru: "Value C"
}

I don't want to return all of this unnecessary data to the front end or change all of my references to this field around the app.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant