Contentful Visual Context Configuration
As Contentful is a headless CMS, precise Visual Context of content in its "destination" environment is not without its complexities. Contentful support content preview capability where it can integrate with your front-end application using its Preview API.
By default, simplified dynamic HTML Visual Context is supported with Smartling for Contentful content translation. If you have integrated with Contentful's Preview API, this can be used to provide more detailed Visual Context to linguists in the CAT Tool.
Configuring Contentful Visual Context
You can configure Visual Context preferences in your Smartling Project Settings:
- Go to your Contentful Connector Project in Smartling
- Click the gear icon > Project Settings
- Click Contentful Settings
- Under Visual Context Settings, choose from one of three options to configure Visual Context for all content in our Contentful Connector Project.
Visual Context Options
- Default: simplified dynamic HTML Visual Context
- Integrated: integrates Visual Context using Contentful's Preview API
Integrated Visual Context
Integrated Visual Context allows for previewing unpublished content from Contentful to linguists in the CAT Tool, as though it were published. To choose this option, you must have completed the Preview API integration with Contentful, and then choose your preferred authentication method for Smartling from one of the three options:
- None: no authentication required, Smartling obtains Contentful Preview Context without validation
- Basic Auth: using your Contentful user credentials, insert your Contentful username and password and click Save
- API Key Auth: choose where Smartling should pull the API key from between the header or query parameter
- Header: insert the HTTP Header Name and Value
- Query: insert the Key and Value