Why is my Berlin Theme language selector not working?

Hello

I am using Berlin Theme and I can’t enable only language selector on header. Is appearing only with country/region selector, but when i disable country/region selector then language selector is also disappearing.
Is only chance to make it together?

I checked Berlin theme and it seems that there is a problem with this expression evaluation in the file header.liquid

{%- if section.settings.enable_country_selector and localization.available_countries.size > 1 or section.settings.enable_language_selector and localization.available_languages.size > 1 -%}

you can try to replace it with the following, that I verified it works well when only the country selector is not enabled.

{% liquid
							assign any_selector_enabled = false
							if section.settings.enable_country_selector and localization.available_countries.size > 1 
								assign any_selector_enabled = true
							endif 
							if section.settings.enable_language_selector and localization.available_languages.size > 1
								assign any_selector_enabled = true
							endif
						%}

						{%- if any_selector_enabled -%}

Hi @KasiaS ,
Can you kindly share your store link (with the password, if any) with us? We will check it and suggest you a solution if possible.

Hello

Can you tell me where exactly should I add this code?

The file to modify is header.liquid and the code is around line 230 for Berlin theme 1.0.1