Skip to content

Commit a25d86c

Browse files
committed
fix: ensure runnable when no locales are provided
1 parent 4cf1232 commit a25d86c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/app/dataMixin.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default {
3434
return store.siteData
3535
},
3636
$localeConfig () {
37-
const { locales } = this.$site
37+
const { locales = {}} = this.$site
3838
let targetLang
3939
let defaultLang
4040
Object.keys(locales).forEach(path => {

0 commit comments

Comments
 (0)