pricing blocktitle translated

This commit is contained in:
2021-06-02 11:21:03 +02:00
parent 345c10b11b
commit 90b8f1bb6a
6 changed files with 9 additions and 9 deletions

View File

@ -103,7 +103,6 @@ export let _v_sitebranding_block, _v_user_block, _v_header_menu,
function initVues () {
// only launch views if we are not in commerce pages
if (!checkNoVuePages()) {
initVi18n()
initVRouter()
initVSiteBrandingBlock()
initVPagetitleBlock()
@ -112,6 +111,7 @@ export let _v_sitebranding_block, _v_user_block, _v_header_menu,
initVSearchBlock()
initVMainContent()
initVStore()
initVi18n()
initVLeftContent()
}
initVUserBlock()
@ -133,7 +133,7 @@ export let _v_sitebranding_block, _v_user_block, _v_header_menu,
function initVRouter () {
// we need this to update the title and body classes while using history nav
router.beforeEach((to, from, next) => {
console.log('router beforeEach to ', to, router, i18n)
console.log('router beforeEach to ', to, router.app.$i18n)
// commit new title to store
let title = null
switch (to.name) {
@ -144,7 +144,7 @@ export let _v_sitebranding_block, _v_user_block, _v_header_menu,
title = false
break
case 'pricing':
title = i18n.t(to.name)
title = i18n.t('materio.' + to.name)
break
default:
title = to.name