File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { useDocusI18n } from '../../composables/useDocusI18n'
44const appConfig = useAppConfig ()
55const site = useSiteConfig ()
66
7- const { localePath, isEnabled } = useDocusI18n ()
7+ const { localePath, isEnabled, locales } = useDocusI18n ()
88
99const 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
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import { existsSync } from 'node:fs'
44import { join } from 'node:path'
55import { inferSiteURL , getPackageJsonMetadata } from '../utils/meta'
66import { getGitBranch , getGitEnv , getLocalGitInfo } from '../utils/git'
7- import type { LocaleObject } from '@nuxtjs/i18n'
87
98export default defineNuxtModule ( {
109 meta : {
You can’t perform that action at this time.
0 commit comments