Browse Source

pricing blocktitle translated

bach 3 years ago
parent
commit
90b8f1bb6a

File diff suppressed because it is too large
+ 0 - 0
web/themes/custom/materiotheme/assets/dist/main.js


BIN
web/themes/custom/materiotheme/assets/dist/main.js.gz


File diff suppressed because it is too large
+ 1 - 1
web/themes/custom/materiotheme/assets/dist/report.html


+ 3 - 3
web/themes/custom/materiotheme/assets/scripts/main.js

@@ -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

+ 1 - 1
web/themes/custom/materiotheme/vuejs/components/Content/MainContent.vue

@@ -47,7 +47,7 @@ export default {
       console.log('MainContent getHomeHtml');
       MA.get('materio_home/ajax/gethome')
         .then(({data}) => {
-          console.log('MainContent getHomeHtml data', data)
+          // console.log('MainContent getHomeHtml data', data)
           this.full_home_template_loaded = true
           this.home_template_src = data.rendered // record the html src into data
         })

+ 1 - 1
web/themes/custom/materiotheme/vuejs/store/modules/blabla.js

@@ -60,7 +60,7 @@ export default {
     getItemIndex ({ dispatch, commit, state }, nid) {
       console.log('getItemIndex nid', nid)
       return state.items.findIndex((e) => {
-        console.log('findIndex', e.nid, nid)
+        // console.log('findIndex', e.nid, nid)
         return e.nid === nid
       })
     },

Some files were not shown because too many files changed in this diff