made translatable block page title

This commit is contained in:
Bachir Soussi Chiadmi 2021-06-01 15:02:31 +02:00
parent 9791e55b8a
commit f0b69fa76a
7 changed files with 16 additions and 6 deletions

View File

@ -14,5 +14,5 @@ third_party_settings:
id: taxonomy_term.showroom
target_entity_type_id: taxonomy_term
target_bundle: showroom
default_langcode: und
default_langcode: en
language_alterable: true

View File

@ -3,3 +3,7 @@ display:
display_options:
menu:
title: Tarifs
default:
display_options:
title: Tarifs
label: Tarifs

View File

@ -1,7 +1,13 @@
uuid: f91607a8-ccf5-4dc6-b9eb-f205a9f89d79
langcode: und
status: true
dependencies: { }
dependencies:
module:
- unique_content_field_validation
third_party_settings:
unique_content_field_validation:
unique: false
unique_text: ''
name: Showroom
vid: showroom
description: ''

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -251,7 +251,7 @@ export let _v_sitebranding_block, _v_user_block, _v_header_menu,
store.commit('Common/setPagetitle', title)
}
// replace in template the pagetitle by vue binding
$h2.innerText = '{{ pagetitle }}'
$h2.innerText = '{{ $t("materio."+pagetitle) }}'
// create the vue
_v_pagetitle_block = new Vue({
store,