diff --git a/locale/pl/nouns/NounsNav.vue b/locale/pl/nouns/NounsNav.vue index 1c0b3b09..93e78a4a 100644 --- a/locale/pl/nouns/NounsNav.vue +++ b/locale/pl/nouns/NounsNav.vue @@ -1,18 +1,18 @@ @@ -38,5 +38,13 @@ links, }; }, + methods: { + buildRoute(route) { + return `/${this.config.nouns.route}/${route}`; + }, + isActiveRoute(route) { + return decodeURIComponent(this.$route.fullPath) === this.buildRoute(route); + }, + } } diff --git a/locale/pl/nouns/dukatywy.vue b/locale/pl/nouns/dukatywy.vue index 7576a7d2..8ed3f528 100644 --- a/locale/pl/nouns/dukatywy.vue +++ b/locale/pl/nouns/dukatywy.vue @@ -1,16 +1,11 @@