i18n: fix solid-delete

This commit is contained in:
Jean-Baptiste Pasquier 2020-10-22 13:48:49 +02:00
parent b941c00144
commit 0d4c2738d8
4 changed files with 9 additions and 3 deletions

View File

@ -20,7 +20,7 @@ solid-widget(name='hubl-create')
br
span(data-trans="menuLeft.emptyCircleProject.createNew")
span  
solid-link(next='admin', data-trans="menuLeft.emptyCircleProject.adminPanel")
solid-link(next="${value == 'projet' ? 'admin-projects' : 'admin-circles'}", data-trans="menuLeft.emptyCircleProject.adminPanel")
solid-widget(name='hubl-menu-fix-url-circle')
template

View File

@ -39,6 +39,12 @@ class JsI18n {
if (attr == "html") {
this.translateNodeContent(node, k);
} else {
if(node.tagName == "SOLID-DELETE") {
let button = node.querySelector('button');
if(button != null) {
this.translateNodeContent(button, k);
}
}
this.translateNodeContent(node.attributes[attr], k);
}
}

View File

@ -61,5 +61,5 @@ div.content-box__info.flex
next='admin-communities-list'
submit-button=''
data-trans='label-user.first_name=user.create.labelFirstname;label-user.last_name=user.create.labelLastname;label-user.username=user.create.labelUsername;user.create.labelEmail;submit-button=user.create.buttonSubmit'
data-trans='label-user.first_name=user.create.labelFirstname;label-user.last_name=user.create.labelLastname;label-user.username=user.create.labelUsername;label-user.email=user.create.labelEmail;submit-button=user.create.buttonSubmit'
)

View File

@ -68,7 +68,7 @@ div.content-box__info
widget-user='solid-form-dropdown-autocompletion'
submit-button=''
data-trans='circle.edit.buttonAddMember'
data-trans='submit-button=circle.edit.buttonAddMember'
)
.table-wrapper