Storyblok
Search Storyblok's Documentation
  1. Fetch Content in a Specific Language

Fetch Content in a Specific Language

To fetch multiple items in a specific language with field-level translations enabled, use the starts_with parameter and provide the corresponding language code as an argument. Suffix the language code with a /* to look for a language rather than a folder.

query {
  PageItems(starts_with: "hi/*") {
    total
    items {
      lang
      content {
        _editable
        _uid
        body
        component
      }
    }
  }
}

In the Content Delivery API, when fetching multiple stories, you can use language as a query param to retrieve all translated fields. This is not supported in the GraphQL API.

When fetching a single item in a specific language, use language as an argument instead.

{
  StickynoteItem(id: 573178675, language: "hi") {
    content {
      note
      component
    }
  }
}