Skip to content

Commit fa1cbef

Browse files
committed
up
1 parent 7194613 commit fa1cbef

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

layer/app/components/app/AppHeader.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useDocusI18n } from '../../composables/useDocusI18n'
44
const appConfig = useAppConfig()
55
const site = useSiteConfig()
66
7-
const { localePath, isEnabled } = useDocusI18n()
7+
const { localePath, isEnabled, locales } = useDocusI18n()
88
99
const links = computed(() => appConfig.github?.url
1010
? [
@@ -33,7 +33,7 @@ const links = computed(() => appConfig.github?.url
3333
<template #right>
3434
<AppHeaderCTA />
3535

36-
<template v-if="isEnabled">
36+
<template v-if="isEnabled && locales.length > 1">
3737
<ClientOnly>
3838
<LanguageSelect />
3939

layer/modules/config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { existsSync } from 'node:fs'
44
import { join } from 'node:path'
55
import { inferSiteURL, getPackageJsonMetadata } from '../utils/meta'
66
import { getGitBranch, getGitEnv, getLocalGitInfo } from '../utils/git'
7-
import type { LocaleObject } from '@nuxtjs/i18n'
87

98
export default defineNuxtModule({
109
meta: {

0 commit comments

Comments
 (0)