Random code in segments translated with AI Assistant

Hello, 

When translating a file with AI Assistant (using Open AI), I get random code/software instructions appear in some segments. It generally appears as ```json
{ "transUnits": [ { "translation": " before the translation with ", "comment": "" }] }
``` added afterwards. I have added a screenshot to help illustrate this point. This was translated using AI assistant linked to my TM and glossary in Trados 2024. It does not affect every segment, only some, and I don't understand why.

Any help with this would be greatly appreciated.

Many thanks,

Jessica



Removed AI Suggestion
[edited by: Jessica Rees at 12:20 PM (GMT 1) on 7 Jul 2026]
emoji
Parents
  •  

    This happens indeed sometimes. Just run a simple search and replace with this regex and all will be ok:

    Search pattern:

    {[^:]*:[^:]*: "([^"]*).*}

    Replace pattern

    $1

    Activate regex and replace all:

    This is the simplest and quickest solution to this problem.

    _________________________________________________________

    When asking for help here, please be as accurate as possible. Please always remember to give the exact version of product used and all possible error messages received. The better you describe your problem, the better help you will get.

    Want to learn more about Trados Studio? Visit the Community Hub. Have a good idea to make Trados Studio better? Publish it here.

    emoji
Reply
  •  

    This happens indeed sometimes. Just run a simple search and replace with this regex and all will be ok:

    Search pattern:

    {[^:]*:[^:]*: "([^"]*).*}

    Replace pattern

    $1

    Activate regex and replace all:

    This is the simplest and quickest solution to this problem.

    _________________________________________________________

    When asking for help here, please be as accurate as possible. Please always remember to give the exact version of product used and all possible error messages received. The better you describe your problem, the better help you will get.

    Want to learn more about Trados Studio? Visit the Community Hub. Have a good idea to make Trados Studio better? Publish it here.

    emoji
Children