Adding a default label on custom section properties?

Highlighted
New Member
13 0 0

So if I'm defining a custom property with multiple language support for its label, for example:

      "label": {
        "da": "Diashøjde",
        "de": "Diahöhe",
        "en": "Slide height",
        "es": "Altura de diapositiva",
        "fi": "Dian korkeus",
        "fr": "Hauteur de la diapositive",
        "hi": "स्लाइड ऊंचाई",
        "it": "Altezza slide",
        "ja": "スライドの高さ",
        "ko": "슬라이드 높이",
        "nb": "Lysbildehøyde",
        "nl": "Diahoogte",
        "pt-BR": "Altura do slide",
        "pt-PT": "Altura do diapositivo",
        "sv": "Bildhöjd",
        "th": "ความสูงของสไลด์",
        "zh-CN": "幻灯片高度",
        "zh-TW": "投影片高度"
      },

 

Is there a way to define a default label, so that if I have, say, 3 translations I've defined myself (English, Spanish, French), and an user whose settings are set to German logs in, they'd see the English label?

0 Likes
Highlighted
Astronaut
1085 177 213

Hello,

This label will be selected based on the default language of your theme. Natively Shopify does not change language when a German customer visits your website - only some themes/apps have this feature.

To configure the default language, do this:

dantepw_0-1596588889148.png

Let me know whether it helps you.

 

◦ Problem Solved? ✔️ Please click on Accept as Solution and like.
◦ Hire me! Recommended by 25+ customers on Facebook. Click here to read their reviews.
◦ Contact me at: diego.boarutto.fortes@gmail.com
0 Likes