Issue with the Microsoft Auto-Translator ! Help


There’s an issue with Microsoft Auto-Translator : when messages containing mentions or emojis are translated, placeholders/tokens appear in their place instead of the actual text. This doesn’t happen in Google Translator, which properly handles mentions and emojis after translation. This issue has been reported on GitHub (Issues · RocketChat/Rocket.Chat · GitHub

I investigated the problem and believe it’s related to the detokenize function. In Google Translator, this function is called for translated messages which replaces tokens with the actual text after translation, but it seems to be missing in Microsoft Translator. I made some changes to the code to incorporate detokenization for Microsoft Translator, but unfortunately, the issue persists. I’m not sure why my changes haven’t resolved the problem, and I’d appreciate any insights you might have.

Server Setup Information

  • Version of Rocket.Chat Server: 6.6.0-develop
  • Operating System: linux
  • Deployment Method:
  • Number of Running Instances: 1
  • DB Replicaset Oplog: Enabled
  • NodeJS Version: 14.21.4
  • MongoDB Version: 6.0.3
  • Proxy:
  • Firewalls involved:

Any additional Information