https://discord.gg/botpress logo
✅[SOLVED] How to change / translate the date
# 🤝help
b
Hello, actually it write "Today" but how can i change it or translate it ? I tried with
Copy code
.bpMessageBlocksTextText:after {

content:"Aujourd'hui";
}
But it add "Aujourd'hui" to every blockstext https://cdn.discordapp.com/attachments/1367965981875372042/1367965982060056646/image.png?ex=68168119&is=68152f99&hm=4ffb1490f2beb751d10ce490e6f39ad8d8d8d61466c7c353ffb17e5915136a29&
Solution
Copy code
/* 1) Ciblage du <p> système et masquage de son texte */
div.bpMessageContainer[data-direction="system"] > p.bpMessageBlocksTextText {
  visibility: hidden !important;
  position: relative !important;
}

/* 2) Injection du contenu “Aujourd’hui” à la place */
div.bpMessageContainer[data-direction="system"] > p.bpMessageBlocksTextText::before {
  content: "Aujourd'hui" !important;
  visibility: visible !important;
  position: absolute !important;
  top: 0;
  left: 0;
  white-space: nowrap;
}
2 Views