Skip to content

Commit

Permalink
chore: hide locale switcher when no i18n is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviareichl committed Sep 30, 2024
1 parent b0217c2 commit 2b7e895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/app-header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const links = computed(() => {

<div class="ml-auto flex items-center gap-4">
<ColorSchemeSwitcher />
<LocaleSwitcher v-if="locales.length > 0" />
<LocaleSwitcher v-if="locales.length > 1" />
<nav :aria-label="t('AppHeader.navigation-main')" class="flex shrink-0 lg:hidden">
<AppNavigationMobileMenu :title="t('AppHeader.navigation-menu')" :links="links" />
</nav>
Expand Down

0 comments on commit 2b7e895

Please sign in to comment.