{currentLang.flag}
{currentLang.code}
{#if isOpen}
{#each supportedLocales as locale} {@const lang = getLanguageDisplay(locale)}
handleLocaleChange(locale)} class="dropdown-item" class:active={currentLocale === locale} style="color: {isDark ? '#ffffff' : '#000000'};" >
{lang.flag}
{lang.name}
{#if currentLocale === locale}
{/if}
{/each}
{/if}