Skip to content

Internationalization for Stories

If you use our field-level translation functionality, you will also receive the translated content while fetching the story. Translated content can be viewed just next to the default content. Translated fields will have appended __i18n__ to the field name followed by the language code.

Similarly, for creating or updating content, you can provide the values for the translations/languages within the same content object by appending __i18n__ followed by the language code. Make sure to have the component field optiontranslatable to true.

Get a full list of our languages codes on Github.

Response
story: {
// ...
"content": {
"_uid": "61a81f04-fb28-41f1-897a-8614df7f4143",
"body": [
{
"_uid": "9d3ade8f-5a40-43df-8ab0-7b148f036567",
"headline": "This is awesome!",
"headline__i18n__de": "Das ist toll!",
"component": "teaser",
},
}
// ...
}`}
/>