Localizing Variation Descriptions
Stencil themes support translations for variation descriptions enabling you to customize the display language of your theme.
Adding translations
You can localize theme variations by adding a translations object for each variation in the theme’s config.json file.
The following example demonstrates how to localize each variation description by adding a translations object.
Note
- Translations can only contain
i18n.descriptionat the moment. - You must include the original
descriptionvalue to render the theme on the BigCommerce theme marketplace. - Language code must contain a default value.
Supported language code schemes
In addition to the default language code, themes support both ISO 639‑1 and IETF language tag code schemes.
The language code must follow a set format of two lowercase letters for a two-letter code system or two lowercase letters, a dash, and at least two alphanumeric characters for a multiple-character code system.