feat: hide language selector if no other langages contents

pull/91/head
小倉優悟 5 years ago
parent c7682ea148
commit 690325074c

@ -44,6 +44,10 @@ export default {
const localeCandidates = computed(() => { const localeCandidates = computed(() => {
const localeKeys = Object.keys(siteData.value.locales) const localeKeys = Object.keys(siteData.value.locales)
if (localeKeys.length <= 1) {
return null
}
const currentLangBase = localeKeys.find((v) => { const currentLangBase = localeKeys.find((v) => {
if (v === '/') { if (v === '/') {
return false return false

Loading…
Cancel
Save