fix: workaround for startinblox-feature-requests#250
This commit is contained in:
parent
9a747b6ab5
commit
68587dc94e
@ -32,7 +32,7 @@
|
|||||||
"circlesBrowse": "Browse circles",
|
"circlesBrowse": "Browse circles",
|
||||||
"circleCreate": "Create circle",
|
"circleCreate": "Create circle",
|
||||||
"messages": "Messages",
|
"messages": "Messages",
|
||||||
"search": "Search...",
|
"search": "Search",
|
||||||
"republiqueESS": {
|
"republiqueESS": {
|
||||||
"home": "Home",
|
"home": "Home",
|
||||||
"contribute": "Contribute",
|
"contribute": "Contribute",
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
"circlesBrowse": "Examinar los círculos",
|
"circlesBrowse": "Examinar los círculos",
|
||||||
"circleCreate": "Crea un círculo.",
|
"circleCreate": "Crea un círculo.",
|
||||||
"messages": "Mensajes",
|
"messages": "Mensajes",
|
||||||
"search": "Buscar...",
|
"search": "Buscar",
|
||||||
"republiqueESS": {
|
"republiqueESS": {
|
||||||
"home": "Hogar",
|
"home": "Hogar",
|
||||||
"contribute": "Contribuir",
|
"contribute": "Contribuir",
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
"circlesBrowse": "Parcourir les cercles",
|
"circlesBrowse": "Parcourir les cercles",
|
||||||
"circleCreate": "Créer un cercle",
|
"circleCreate": "Créer un cercle",
|
||||||
"messages": "Messages",
|
"messages": "Messages",
|
||||||
"search": "Rechercher...",
|
"search": "Rechercher",
|
||||||
"republiqueESS": {
|
"republiqueESS": {
|
||||||
"home": "Accueil",
|
"home": "Accueil",
|
||||||
"contribute": "Contribuer",
|
"contribute": "Contribuer",
|
||||||
|
@ -78,6 +78,17 @@ class JsI18n {
|
|||||||
this.translateNodeContent(label, k);
|
this.translateNodeContent(label, k);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// https://git.startinblox.com/framework/sib-core/issues/755
|
||||||
|
if (attr.startsWith('placeholder-')) {
|
||||||
|
let placeholder = node.querySelector('[placeholder="' + attr.replace("placeholder-", "") + '"]');
|
||||||
|
if (placeholder != null) {
|
||||||
|
this.translateNodeContent(placeholder.attributes['placeholder'], k);
|
||||||
|
let input = node.querySelector('[name="' + attr.replace("placeholder-", "") + '"] > input');
|
||||||
|
if(input != null) {
|
||||||
|
this.translateNodeContent(input.attributes['placeholder'], k);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
this.translateNodeContent(node.attributes[attr], k);
|
this.translateNodeContent(node.attributes[attr], k);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,8 @@ solid-form-search.icon.children-icon-magnifier(
|
|||||||
search-name='circle.name, project.customer.name, project.name, contact.username, contact.name'
|
search-name='circle.name, project.customer.name, project.name, contact.username, contact.name'
|
||||||
order-asc-names='name'
|
order-asc-names='name'
|
||||||
|
|
||||||
label-name='Rechercher'
|
placeholder-name=''
|
||||||
|
data-trans='placeholder-name=menuLeft.search'
|
||||||
widget-name="solid-form-placeholder-text"
|
widget-name="solid-form-placeholder-text"
|
||||||
|
|
||||||
submit-button=""
|
submit-button=""
|
||||||
|
Loading…
Reference in New Issue
Block a user