How can I display the widget texts translated?
Shopify provides an app, Translate & Adapt, designed to simplify the often tedious task of translating content, including automatic translations. With Translate & Adapt you can provide translations for the widget texts in the Also Bought app.
Therefore, when customers visit your store in their local language, they will see the widget texts translated (such as the app title or the 'Add to Cart' button), as long as you have provided translations via Shopify Translate & Adapt or a compatible third-party translation app.
To display the widget texts translated, please follow these steps:
First, enable the following setting in the Advanced Preferences section and save the changes:
- Once you have enabled it, provide translations for the widget texts using Translate & Adapt or a compatible third-party translation app.
How do I add translations for the widget texts using Translate & Adapt?
The Translate and Adapt app by Shopify is designed to help merchants easily localize their online stores for international markets. It offers both automatic and manual translation features.
Automatic translation
To create the widget translations automaticly, select the desired language, and simply click on the "Auto-translate" button:
Manual translation
To create the widget translations manually, select the desired language and look for the "Store metadata" section:
Once inside, look for the following metafields starting with 'cbb_also_bought':
- In the first column, we can see the metafield names.
- In the second column, we can see the default translations provided on the app preferences pages.
- In the third column, we can create the desired translations.
Let's see an example: if no translations are created, the widget will display the default translations provided on the app preferences pages:
However, if we have added translations in the Translate and Adapt app, the widget will display those specific translations: