Skip to content

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

Open
@bostondevin

Description

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!

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions