Skip to content

Commit

Permalink
fix(default-theme): hide language switcher when only one language ava…
Browse files Browse the repository at this point in the history
…ilable
  • Loading branch information
jnuricumbo committed Nov 17, 2020
1 parent f6bda11 commit ffc9bd4
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 ffc9bd4

Please sign in to comment.