Advice and answers from the DevIT Team help center

If translated theme supports internationalizing using locale files, you can create new own localization variable follow next steps:

  1. Go to "Themes" section of the app menu.
  2. Press "Theme localization" of needed translated theme.
  3. Select "Custom Variables" tab.
  4. Press "Add new" button at the bottom of the section.
  5. Fill in all fields in the opened form: 
    - Field label - just a field description to display it in a list.
    - Original value - value to display on the store page.
  6. Press "Add" button for adding a new custom field.
  7. Now you can translate this custom field per any language manually or use auto translate feature.
  8. Press the "Save" button.

You can find code snippet below any created field to use it in any parts of your themes HTML code.

 

For example, code snippet for Product Page Title will look like:

{% include 'LS_THEME_ID_locales', LS_locales_item: 'custom_variables.product_page_title' %}{% if LS_10967941171_locales_value == '' %}{{ 'custom_variables.product_page_title' | t }}{% else %}{{ LS_THEME_ID_locales_value }}{% endif %}

Watch video about it.

Did this answer your question?

Contact Us
Chat