Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

fix(default-theme): hide language switcher if only one language #1211

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/default-theme/src/components/SwLanguageSwitcher.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<template>
<div class="sw-language-switcher" data-cy="language-switcher">
<div
v-if="availableLanguages.length > 1"
class="sw-language-switcher"
data-cy="language-switcher"
>
<SfSelect
:selected="currentLocale"
:size="availableLanguages.length"
Expand Down