Skip to content

Commit 7f311da

Browse files
ulivzyyx990803
authored andcommitted
fix: Only add language dropdown when there has more than one locale configured. (#181)
1 parent 384c5c7 commit 7f311da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/default-theme/NavLinks.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default {
3434
},
3535
nav () {
3636
const { locales } = this.$site
37-
if (locales) {
37+
if (locales && Object.keys(locales).length > 1) {
3838
let currentLink = this.$page.path
3939
const routes = this.$router.options.routes
4040
const themeLocales = this.$site.themeConfig.locales || {}

0 commit comments

Comments
 (0)