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

Commit

Permalink
fix(default-theme): hide language switcher if only one language
Browse files Browse the repository at this point in the history
  • Loading branch information
jnuricumbo committed Nov 17, 2020
1 parent f6bda11 commit edcab6a
Showing 1 changed file with 5 additions and 1 deletion.
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

0 comments on commit edcab6a

Please sign in to comment.