web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / HTML and MicrosoftTran...
Power Apps
Unanswered

HTML and MicrosoftTranslatorV2

(0) ShareShare
ReportReport
Posted on by 31
MicrosoftTranslatorV2 translates from English to another language such as Spanish. I have the app working right now. I don't need help with the feature. However, the following text is translated in a problematic way. "On 9/13/2023 9:05 PM during Period 1 John demonstrated the following behaviors <br> • all assignments turned in as of this email<br> • answered questions when asked <br> • arrived on time to class." The translation is as follows: "El 13/09/2023 a las 9:05 PM durante el Período 1, John demostró los siguientes comportamientos • <br> Todas las tareas entregadas a partir de este correo electrónico • <br> Respondió preguntas cuando se le hicieron<br> • Llegó a tiempo a clase." The translation into Spanish is fine. However, notice that the bullet point in the English is preceded by the HTML code HTML <hard return>. But in Spanish the HTML code<br> follows the bullet. This text will be sent do OutLook as an email. The HTML code places hard returns in the appropriate location. However, after the translation the bullets appear at the end of the sentence. I know what's wrong. I just want to know how can I prevent this?
 
Categories:
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @paguirre ,

     

    You could add a replace action to replace the '• <br>' with '<br> • ' .

    Replace(MicrosoftTranslatorV2Result,'• <br>' , '<br> • ')

     

    Best Regards,

    Bof

  • paguirre Profile Picture
    31 on at

    Replace() requires me to give an exact position. However, it seems that Substitute() does not. The variable I'm using: varEmailTranslation does not work either. My situation is I have a list of student behaviors in a dropdown box. Using a UpdateContext() and a With(), I create a variable with the selected items in the dropdown, that all start with bullets, into varEmail. This looks fine in the email. Then for Spanish speaking parents I use MicrosoftTranslatorV2() and place it at the end of the same TextInputBox.Text. Unfortunately, after the translation the bullets move to the left of the HTML code "<• br>". Nothing I've done has resolved this. The text is in a variable. It will sometimes have one bullet and sometimes 5 or more. I have read the Replace() and Substitute() instructions. I have used a button, OnSelect to search the TextInputBox.Text only to fail. I'm at a roadblock. Thank you for your suggestion. I really appreciate it and could use a bit more. Thanks again.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 223

Last 30 days Overall leaderboard