Skip to content

Commit 8662f8e

Browse files
committed
Compatibility with 3.6 (language store). Closes #35"
1 parent c28fd98 commit 8662f8e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

index.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/page.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ export default {
6363
return !this.lang.overview
6464
},
6565
currentLanguage() {
66-
let current = this.$store.state.languages.current
67-
return current ? current.code : false
66+
let _l = this.$store.state.languages ? this.$store.state.languages.current : this.$language;
67+
return _l ? _l.code : false
6868
},
6969
currentUri() {
7070
return this.uri.constructor == Object ? this.uri[this.currentLanguage] : this.uri

0 commit comments

Comments
 (0)