Language selector not appearing in header

Hello

I have selected 2 languages Swedish as default and Danish as second language

I have enabled the language selector on my theme

why is it that i cannot see it then?

https://the-body-shop-nordic.myshopify.com/

ubahdo

Hello @TBS2023 ,
You need to add aleast 10 different languages to show language selector

i have done 2 languages before and it worked…

Hello @TBS2023 ,
It it possible to show with 2 languages. Could you share code of file ‘country-localization.liquid

I do not have a country-localization sheet but i have this

{%- liquid
  assign show_selectors = false
  assign currency_selector = false
  assign locale_selector = false

  if section.settings.show_currency_selector and shop.enabled_currencies.size > 1
    assign currency_selector = true
  endif

  if section.settings.show_locale_selector and shop.enabled_locales.size > 1
    assign locale_selector = true
  endif

  if currency_selector or locale_selector
    assign show_selectors = true
  endif
-%}

  

    

      {%- if section.settings.toolbar_menu != blank -%}
        

          

          {%- for link in toolbar_menu.links -%}
            - {{ link.title }}
            
          {%- endfor -%}
          

        

      {%- endif -%}

      {%- if section.settings.toolbar_social -%}
        
          

            {%- if settings.social_instagram_link != blank -%}
              - Instagram
                
              

            {%- endif -%}
            {%- if settings.social_facebook_link != blank -%}
              - Facebook
                
              

            {%- endif -%}
            {%- if settings.social_youtube_link != blank -%}
              - YouTube
                
              

            {%- endif -%}
            {%- if settings.social_twitter_link != blank -%}
              - Twitter
                
              

            {%- endif -%}
            {%- if settings.social_pinterest_link != blank -%}
              - Pinterest
                
              

            {%- endif -%}
            {%- if settings.social_snapchat_link != blank -%}
              - Snapchat
                
              

            {%- endif -%}
            {%- if settings.social_tiktok_link != blank -%}
              - TikTok
                
              

            {%- endif -%}
            {%- if settings.social_tumblr_link != blank -%}
              - Tumblr
                
              

            {%- endif -%}
            {%- if settings.social_linkedin_link != blank -%}
              - LinkedIn
                
              

            {%- endif -%}
            {%- if settings.social_vimeo_link != blank -%}
              - Vimeo
                
              
            {%- endif -%}
          

        

      {%- endif -%}

      {%- if show_selectors -%}
        
          {%- render 'multi-selectors',
            locale_selector: locale_selector,
            currency_selector: currency_selector,
            show_currency_flags: section.settings.show_currency_flags
            location: 'toolbar'
          -%}
        

      {%- endif -%}
    

  

or this

{%- assign formId = 'localization_form' | append: location -%}
{%- form 'localization', id: formId, class: 'multi-selectors', data-disclosure-form: '' -%}
  {%- if locale_selector -%}
    
      ## 
        {{ 'general.language.dropdown_label' | t }}
      

      
        
        

          {%- for locale in form.available_locales -%}
            - {{ locale.endonym_name }}
                
              
            
          {%- endfor -%}
        

        
      

    

  {%- endif -%}

  {%- if currency_selector -%}
    
      ## 
        {{ 'general.currency.dropdown_label' | t }}
      

      
        
        

          {%- for currency in form.available_currencies -%}
            - {%- if show_currency_flags -%}
                  
                  {%- endif -%}

                
                    {{ currency.iso_code }} {%- if currency.symbol -%}{{ currency.symbol }}{%- endif -%}
                
              
            
          {%- endfor -%}
        

        
      

    

  {%- endif -%}
{%- endform -%}
{%- assign formId = 'localization_form' | append: location -%}
{%- form 'localization', id: formId, class: 'multi-selectors', data-disclosure-form: '' -%}
  {%- if locale_selector -%}
    

      ## 
        {{ 'general.language.dropdown_label' | t }}
      

      
        
        

          {%- for locale in form.available_locales -%}
            - {{ locale.endonym_name }}
                
              
            
          {%- endfor -%}
        

        
      

    

  {%- endif -%}

  {%- if currency_selector -%}
    
      ## 
        {{ 'general.currency.dropdown_label' | t }}
      

      
        
        

          {%- for currency in form.available_currencies -%}
            - {%- if show_currency_flags -%}
                  
                  {%- endif -%}

                
                    {{ currency.iso_code }} {%- if currency.symbol -%}{{ currency.symbol }}{%- endif -%}
                
              
            
          {%- endfor -%}
        

        
      

    

  {%- endif -%}
{%- endform -%}