We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c076f4 commit c046905Copy full SHA for c046905
src/client/theme-default/Layout.vue
@@ -31,6 +31,11 @@ const isCustomLayout = computed(() => !!frontmatter.value.customLayout)
31
// home
32
const enableHome = computed(() => !!frontmatter.value.home)
33
34
+// automatic multilang check for AlgoliaSearchBox
35
+const isMultiLang = computed(
36
+ () => Object.keys(theme.value.locales || {}).length > 0
37
+)
38
+
39
// navbar
40
const showNavbar = computed(() => {
41
const themeConfig = theme.value
@@ -85,7 +90,7 @@ const pageClasses = computed(() => {
85
90
<AlgoliaSearchBox
86
91
v-if="theme.algolia"
87
92
:options="theme.algolia"
88
- :multilang="!!theme.locales"
93
+ :multilang="isMultiLang"
89
94
:key="site.lang"
95
/>
96
</slot>
0 commit comments