Contentful Connector

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

  1. Default: simplified dynamic HTML Visual Context
  2. Disable: disables automatic default Visual Context. As a result, no Visual Context is provided to linguists in the CAT Tool. However, this options allows for the integration of additional Visual Context tools, such as capturing context by using Smartling’s JavaScript Library, or an API integration, or Smartling’s Context Capture Google Chrome Extension.
  3. 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:

  1. None: no authentication required, Smartling obtains Contentful Preview Context without validation
  2. Basic Auth: using your Contentful user credentials, insert your Contentful username and password and click Save
  3. 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

Screenshot_2021-11-23_at_13.55.31.png

 

 

 

 

 

 

Was this article helpful?