Explorar el Código

add components

Benjamin Kornblum hace 8 meses
padre
commit
32e7e7e4ad
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/components/Navigation.vue

+ 2 - 0
src/components/Navigation.vue

@@ -68,6 +68,7 @@ nav a:first-of-type {
 <script lang="ts">
     import { useFooterLinksStore } from '@/stores/footer-content-pages'
     import { useTimelineStore } from '@/stores/timeline'
+    import { useComponentStore } from '@/stores/component'
     import {loadDynamicPages} from '@/router'
     import { useI18n } from 'vue-i18n'
     import { useRoute } from 'vue-router'
@@ -109,6 +110,7 @@ nav a:first-of-type {
               this.footerLinksStroe = useFooterLinksStore()
             }
             useTimelineStore().setLocale(locale)
+            useComponentStore().setLocale(locale)
             const oldLink = this.footerLinksStroe.getLinkByLabel(this.route.name)
             this.links = await this.footerLinksStroe.getLinks(locale)
             const newLink = this.footerLinksStroe.getLinkByLabel(oldLink.localizations[0].Label)