Azure Translate adds "です" to the end of the translated text because it is using polite form (です・ます) by default. To remove "です" from the translated HTML, you can change the style to plain form (だ・である) in the Translation Resource configuration. This can be done by setting the "textType" parameter to "plain" in the request body. Here's an example of what the request body would look like:
{
"apiVersion": "3.0",
"from": "en",
"to": "ja",
"textType": "plain",
"text": "<html><body><p>Hello my friends </p></body></html>"
}
This will result in the following output:
<html><body><p>こんにちは、</p></body></html>
Note that this will change the style of the entire text, not just the tags. If you need more fine-grained control over the translation, you may need to use a different translation tool or manually edit the output.
References: