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 } }}
Get in touch with the Storyblok community