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 } } }}When fetching a single item in a specific language, use language as an argument instead.
{ StickynoteItem(id: 573178675, language: "hi") { content { note component } }}
Thanks! We received your feedback.
An error occurred. Please try again.
Was this page helpful?
This site uses reCAPTCHA and Google's Privacy Policy (opens in a new window) . Terms of Service (opens in a new window) apply.
Get in touch with the Storyblok community