XTM is a cloud-based translation management application that offers language localization to simplify the process of content distribution across systems. It is a simple, robust, and cost-effective solution that helps to broaden your reach to multiple customers with multiple languages and colossal content.
Contentstack Marketplace allows you to easily integrate the XTM application and use it within your stack to create localized versions of your entries.
Prerequisites
Let's go through the steps required to install and configure the XTM app within Contentstack Marketplace.
Steps for Execution
- Fetch the credentials from your XTM account
- Define workflow in Contentstack
Note: Skip this step if you want to create a project only using the Sidebar Widget.
- Install the XTM application
- Translate your Content
Fetch the credentials from your XTM account
To configure the application, you need to create an account in XTM. To do so, follow the below steps:
- Go to https://xtm.cloud and create a new account based on your requirement.
- Fetch the XTM details such as baseURL, user identifier, customer ID, UserCompany, and password required to set up the app configuration page.
You can fetch the user ID from the User list section under Users in the XTM dashboard as given below:
You can fetch the customer ID from the Customer list section under Customers in the XTM dashboard as given below:
- If you want to create a project using the Sidebar Widget, create or fetch a workflow in the XTM dashboard under the Configuration section. You can use this workflow name in the XTM Workflow field on the app configuration page.
Note: In the XTM dashboard, you must define the languages and create a template for the translation process. Make sure these languages are present in Contentstack as well.
Define Workflow in Contentstack
To use the XTM application, you must define the Workflow to initiate the translation process.
Firstly, you need to create a content type and an entry. To do so, follow the below steps:
- Log in to your Contentstack account.
- Click the + New Stack button and then click the Create New button.
- Go to your stack, click the Content Models icon on the left navigation panel, and click the + New Content Type button.
- Create a content type by entering relevant details as given below:
- On the left navigation panel, select Entries. On the Entries list page, click the + New Entry button, select the content type and click the Proceed button.
- Add content in your entry that you want to translate, and Save the entry.
Note: If you already have a stack, skip the above steps.
Follow the steps below to define the Workflow for your stack:
- Navigate to your stack and click the Settings icon on the left navigation panel.
- Under Settings, click Workflows.
- Define the workflow stages.
- Once done, click Enable Workflow and click the Save button.
Install the XTM application
Follow the steps to install the application in Contentstack.
- Log in to your Contentstack account.
- On the left navigation panel, you will find the icon for Marketplace. Click the icon to navigate to Marketplace.
- Select XTM from the list of apps.
- On the right-hand side, click the Install App button.
- In the Authorization window, select the stack where you want to install the app, accept the Terms of Service and Privacy Policy, and then click the Authorize & Install button.
You have successfully installed the XTM app to your stack in Contentstack.
Translate your content
XTM lets you translate your content in two different ways:
- Machine Translate
- Human Translate
Machine Translate
The machine translation process can translate multiple languages in just one go.
On the XTM Configuration screen, enter the following details:
- XTM Fields
You can fetch the below details from your XTM account.
- XTM Base URL: The URL of the application.
- XTM User Identifier: Unique identification given to a user.
- User Company Name: The company name of the user.
- XTM Customer ID: Unique customer ID given to users.
- XTM Password: Company credentials for integration.
- XTM Workflow: Enter the XTM Workflow name if you want to create a project from the Sidebar Widget by selecting the Language option.
- Select Translation Type: XTM provides two translation types.
- XTM Templates: This field can help to define the languages in which you want to translate your content. Click Get XTM Template, and a dropdown menu with a list of templates will appear.
- Click the Next button.
- Configure the Contentstack Fields settings:
- To create a project using Workflows, check the Workflow checkbox and fill in the following fields:
- Workflow: Set of instructions used to define a plan for a process.
- Workflow Stage: Define the initial Workflow stage for your translation.
- Next Workflow Stage: After translation, the Workflow stage will be changed to the stage you have defined in this field.
- To create a project using the Sidebar Widget, check the From Sidebar checkbox and select a role from the Select Roles dropdown.
Note: The selected roles have access to 'Create Project' from the Sidebar Widget. By default, only the stack owner and admin have access to create project(s) from the Sidebar Widget.
- Enable Additional Settings: If you enable Additional Settings, you can define the scope of your fields for translation.
- Click the Next button.
- Configure the Additional Settings:
- Content Type Field Mapper: Define the fields of a particular content type you want to exclude from translation.
- Field(s) to Exclude from All Content Type(s): Define specific fields of all the content types you want to exclude from the translation.
- Language Configuration: Define the content translation languages for XTM and Contentstack to avoid any mismatch between the language codes. All the entries from XTM languages will be localized into Contentstack languages. For any target languages not selected, the app uses the default language code of the stack.
- Once done, click the Finish button.
- Click the Save button.
- To reset the configuration:
- If you want to reset the configuration with other values, click the Reset Configuration button.
- A pop-up will appear. Click the Reset Config button to reset the entire configuration.
Initiate the translation process
Once you define the configuration for your XTM application, initiate the translation process by following the below steps:
- Navigate to the Entry page that you created in Step 2.
- Enter the content in the entry field.
- Click the Save button.
- If you set the configuration to create a project using Workflows, follow the steps given below:
- In the right navigation panel, click Workflow Details.
Note: Set Stage in the Workflow Details when you set Workflow for the first time.
- Click Change. To start the translation process, you need to change the Workflow stage, as defined in the XTM configuration page.
- Select the Workflow stage from the dropdown and click the Update button.
- If you set the configuration to create a project using the Sidebar Widget, follow the steps given below.
- In the right navigation panel, click Widgets.
- Select the option for XTM from the Sidebar Widget. By default, All Project Status will be displayed in the Sidebar.
- You can create a project by the following methods:
- Language: Click the Language option, select a language from the dropdown below, and click the Create Project button.
- Template: Click the Template option, select a template from the dropdown, and click the Create Project button.
If your role(s) is not configured to create a project using the Sidebar Widget, you will see only the All Project Status in the Sidebar, as below:
Note: In the Sidebar Widget, you can check the translation status of the latest 10 projects created in the XTM dashboard in the All Project Status section based on the creation date. Contentstack Sidebar Widget provides insight about the XTM dashboard, such as the list of projects, the status of the translation (whether Completed/In-Progress), and the list of languages the content is translated.
Human Translate
In the Human translation process, an individual user manually translates the content. This process is slower than machine translation.
On the XTM Configuration screen, enter the following details for human translation:
- XTM Fields
Note: The rest of the configuration will be similar to the machine translation process.
The process for human translation will be as follows:
- Navigate to the entry page. Click on the Widget icon in the right navigation panel.
- Within Widgets, click the Entry Widgets dropdown, and under Apps, select XTM App.
- Select the project ID from the dropdown. You need to select the ProjectID from the All Project Status section of the Sidebar Widget.
Note: Project ID is a unique identifier given to the entry which needs to be translated. With the help of project ID, users can easily search for the entry in the XTM dashboard and translate the content manually.
- Navigate to the XTM dashboard to view the list of all the projects.
- Select the project based on your project ID.
- In the left navigation panel, click Workflow. Assign different languages to different users so they can manually translate the content.
- Click the Start button.
Note: Users need to log in via individual credentials in the XTM dashboard. Credentials are different for human and machine translation in XTM.
- Select the project based on project ID. Translate the content manually.
- Click the Finish button.
You will be able to see the translated content in Contentstack.