Once you have enabled localization in Contentful, it is now time to set up the Contentful Connector in Smartling.
Please note that this Connector is a paid product. For pricing information, please reach out to your Smartling Customer Success Manager.
Configure Contentful User Permissions
Before connecting Smartling to your Contentful account, you should decide which user account will be used, and verify its permissions. Smartling will update your entries with translations on behalf of your Contentful user account. Therefore, it's important to give this user permission to edit, while still restricting access to spaces which you don’t plan to localize. We recommend creating a new user account with a self-descriptive name.
STEP ONE: Create a New Role in Contentful
You'll need to repeat the steps below for each space that you will be translating.
-
- Go to Settings > Roles & Permissions.
-
Click Create new role from the right-hand side.
- We recommend setting up a dedicated user role for the connector, e.g. smartling@yourbusinessname.com
- Role details: Name (Smartling connector role) and description.
-
Content: Create two rules:
- Read - Any entry - All content types
- Write - Any entry - All content types - All fields - All locales
- Publish - Any asset - Any locale
- Unpublish - Any asset - Any locale
-
Media: Create the same two rules as above.
- Content model: Leave this unchecked.
-
API keys: Only check Can access existing API keys for this space.
- If you don't already have an API key generated, you can do so by clicking Settings > API keys > Add API Key in Contentful
- Note: Ensure an API key already exists in the space, or create one before setting up the Connector. The Contentful Connector will not create one, and it will fail to connect if there are no API keys on the space.
- Space settings: Leave this checked.
STEP TWO: Invite a new user and add them to the new role
-
- Go to Organization settings > Users.
- Click Invite user.
- Enter the new user email. This is the email that you'll be using when connecting Smartling to the Contentful account.
- Organization role: member
-
Access to space: Check Smartling connector role for only the spaces that have content to be translated. The screenshot below shows that Smartling will have access to only the Sample project space.
Check your inbox and complete the invitation. When Smartling asks you to allow access to the Contentful account, use the user email and password.
If your Contentful plan doesn’t allow you to add new roles, you'll need to use the Admin role for your user.
STEP THREE: Enable Localization of Contentful
Before using the Smartling Contentful Connector, you will need to make a couple of minor configuration changes to your Contentful account. For more information, read Enabling Localization of Contentful.
STEP FOUR: Connect Contentful to Smartling
- Log into Contentful.
- Log into Smartling.
- Create a Contentful Connector project type in your Smartling Account.
- Choose Contentful (Fields) for field-level localization
- Choose Contentful (Entries) for entry-level localization (entries created in Compose only)
- For more information on the difference between the two, read the Contentful documentation.
- Ensure all required target languages are added to the project
- From within this project, do one of the following
- Click on the gear icon > Project Settings > Contentful Settings (New Experience)
- Click Connectors > Contentful Content (Classic).
- Click Connect to Contentful.
- You will be prompted to authorize the Smartling Contentful Connector to use your account. Click Authorize.
If you are not already logged in to Contentful, you will be redirected to the Contentful login page and prompted to enter your credentials. You will then be brought to the Smartling Contentful Connector page.
Your Contentful instance will now be connected to your Smartling project.
STEP Five: Configure Contentful Connector
When you have successfully completed connecting Contentful to Smartling, the Contentful Setting page has the following configurations
General
You can configure the behavior of the connector when updates are made to your previously translated content.
- From within your Smartling Contentful Project, click on Project Settings > Contentful Settings.
- Click the "Automation of Prior Requests for Translation" dropdown to select your desired behavior.
- Choose to exclude all media assets from translation, whether they have already been translated previously or not, by selecting the Exclude media assets checkbox.
- Click Save.
Automation of Prior Requests for Translation
- Automatically request translation (formerly "Auto"): The Contentful Connector will detect changes to source content every 3 hours. Any changes detected to the source content will be submitted to Smartling for translation, batched into a Job and sit in awaiting authorization. However, if auto-authorize is enabled under Smartling Settings, the updated content will be batched into a Job and automatically authorized for translation. Smartling will not detect net new content, only updates to content that have been submitted for translation in the past.
- Flag changed content (formerly "Manual"): The Contentful Connector will detect changes to source content every 3 hours, but will not automatically submit content changes for translation. Changed content can be filtered for in the Contentful Asset list by selecting the Out of Sync checkbox. A user can then manually select the assets that should be re-translated, and Request Translation from the Actions dropdown.
- Disabled: The Contentful Connector will not detect changes to source content or automatically submit new changes.
3 hours is the recommended shortest time duration between checks. Talk to your Solutions Architect about changing the frequency to longer wave periods using cron.
Language Configuration
Precise language mapping between Contentful and Smartling is essential to ensuring the Contentful Connector is set up correctly and your content is passed from Contentful to Smartling for translation. It is also essential to ensuring your content is translated in the correct languages and translation are returned to the correct target sites. Please take extra care in completing the following steps:
- From within your Smartling Contentful Project, click on Project Settings > Contentful Settings
- In the Language Configuration section, you will see the number of target languages in your Smartling project, along with the source language in your Smartling project.
- Confirm your Contentful source language with your Solutions Architect. This should exactly match with what is listed under Source Language (Smartling).
- The default source language in Contentful is assumed to be en-US
- Do not modify the source locale. Changes will break the integration.
- If you need to change the source locale mapping, reach out to your Solutions Architect.
- Choose the correct target language from the dropdown menu to map the language in your Contentful language configuration to your Smartling project target language
- Click Save
Tip: If you decide to adjust the language configuration after the initial language mapping, please contact support for assistance.
You cannot map a Contentful language to more than one Smartling language. A "wrong locales mapping" error will occur when attempting to use the same Smartling locale twice in the Language Configuration.
Configure Contentful Content Parsing
When Smartling captures content from Contentful it may process the fields of an entry based on your configuration settings and may break down the individual fields into even smaller strings for translation. This process makes it easier to produce higher quality translations faster.
Follow the steps below to configure how Smartling should handle fields based on how your content editors are allowed to format them in Contentful. Of course, if a field is not "localizable" in Contentful, then it won't even appear in the list of fields for that content type in the Smartling settings.
Note: If you modify the parsing configuration for a specific asset, the updated configuration will only take effect once the source content has been updated in Contentful, as this triggers the connector to ingest new content for translation and parse it according to the configuration at that time.
- From your Contentful project, click the Settings tab > Contentful Settings.
- Under Content Parsing, select your Contentful space.
- A list of the localizable fields appears.
- If a field appears to be missing, ensure it has been enabled for localization in Contentful.
- For each field, configure parsing from the options listed below.
- Click Save.
Parsing Option |
Description |
Copy source |
Copies the source content to the target field. The latest version of the source is always delivered as a new version of the target. |
Do not translate |
This allows you to control what fields are not translated. |
Simple Markdown |
Only available to clients who started using the connector before we officially supported Markdown. This configuration parses as plain text and treats Markdown tags as "placeholders". Legacy configuration only. User can choose to upgrade to Markdown. Doing so will create new strings that must be re-translated in Smartling. |
Markdown | Parses Markdown tags similar to HTML tags for the best experience by translators and maximum Translation Memory leverage. Use this when your field is likely to have markdown. |
HTML | Parses the field's HTML tags for the best experience by translators and maximum Translation Memory leverage. Use this when your field is likely to have HTML markup in it |
Rich Text | Only available if the field is Rich Text. Select this to capture the content for translation using are custom rich text parser for Contentful. |
ICU | Parses text in the field as ICU MessageFormat. Use this if the fields contain plural-sensitive content. |
All the content from the fields that are enabled will be captured in Smartling. However, you will still be able to select specific strings when Requesting Translations.
Ensure that these steps are done for each Content Model type.
If any field is not configured, it will not be captured for translation. Whenever a new content type or new field is added, you'll need to configure them under Content Parsing to make sure the content can be captured.
Smartling Settings
Talk to your Customer Success Manager or Solutions Architect about options on auto-authorization and translation retrieval.