Localization settings in Contentful
Working with locales
In Contentful, locales are used to specify the languages into which content is translated. Each locale is uniquely identified by its ISO language code. Examples: en-US and de-AT. For details of working with locales in Contentful, see Localization with Contentful (Contentful help).
Available languages
The range of languages supported in Contentful differs slightly from the range supported in XTM Cloud.
The languages supported in Contentful can be mapped to the languages in XTM Cloud. To arrange this, contact XTM Support.
Note
When you create a Contentful translation project, using XTM Connect, ensure that you select target languages that are supported in XTM Cloud.
Translatable content item length limits
You can define the maximum and minimum length of an entry (translatable content item) text. You do so in Contentful, not XTM Connect:
In Contentful, select the Content Model tab.
Select the content type for which you want to set character limits (maximum and/or minimum length).
Select Settings in the right, in the list row containing the content type. A pop-up window is displayed.
Select the Validation tab.
In the General validations section, select the Limit character count checkbox. A range dropdown field and the Min and Max entry fields for the minimum and maximum number of translatable content item characters are displayed below the Limit character count label.
In the range dropdown field, select the required range for the values you set in the translatable content item length fields mentioned in step 5.:
Between (default): specify that, if you enter values in these entry fields, the translatable content item length must lie between those values.
At least: specify that, if you enter a value in the Min field, the translatable content item must contain at least as many characters as that value.
No more than: specify that, if you enter a value in the Max field, the translatable content item must not contain more characters than that value.
Select Confirm at the bottom of the pop-up. It closes and you return to the Content Model tab.
Result: the length limitation setting you make is applied in XTM Workbench. When a translated text is reimported into Contentful, it displays a warning to notify you if the text contains too few or too many characters.