Skip to content

Commit

Permalink
fix: Only add language dropdown when there has more than one locale c…
Browse files Browse the repository at this point in the history
…onfigured. (#181)
  • Loading branch information
ulivz authored and yyx990803 committed Apr 20, 2018
1 parent 384c5c7 commit 7f311da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/default-theme/NavLinks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default {
},
nav () {
const { locales } = this.$site
if (locales) {
if (locales && Object.keys(locales).length > 1) {
let currentLink = this.$page.path
const routes = this.$router.options.routes
const themeLocales = this.$site.themeConfig.locales || {}
Expand Down

0 comments on commit 7f311da

Please sign in to comment.