Implementing Plugin for Google Cloud Translation API V3

Hello,

I've been trying to implement a machine translation plugin that uses Google Cloud Translation's AutoML models.

Google's tutorials on how to use it all involved the used of the Google.Cloud.Translate.V3 C# library to request a translation, but using it for a Trados Studio plugin resulted in the following error:

Could not load file or assembly 'Google.Cloud.Translate.V3, Version=1.0.0.0. Culture=neutral, PublicKeyToken=185c282632e132a0' or one of its dependencies. The system cannot find the file specified.

Which I assume means that the library isn't supported by Trados Stuio.

So I'm wondering if there is another way to implement the method without using Google's library.

Parents Reply
  • Hello Andrea-Melinda Ghisa, thank you for your reply.

    It turned out that I did forget to add some libraries.

    But then after I added all of them, I got a different error when trying to run the plugin:

    Could not load file or assembly 'Google.Apis.Auth, Version=1.21.0.0. Culture=neutral, PublicKeyToken=4b01fa6e34db77ab' or one of its dependencies. The system cannot find the file specified.

    The library in question is already included in the manifest file, but I have noted that Trados Stuido is trying to load an older version of it. I have version 1.22.0 installed, which is the minimum required version of one of Google.Cloud.Translate.V3 dependencies.

    So I was wondering what might have caused this error and how I can get around it, or is there anything else I'm missing?

    Incl. list of installed libraries and their dependencies and for reference, using community's MT Enhanced Provider as base for testing:

    https://github.com/sdl/Sdl-Community/tree/master/MT%20Enhanced%20ProviderScreenshot of Trados Studio plugin manifest file showing included libraries such as Google.Apis.Auth with version 1.22.0.

    Image displaying a list of installed libraries for Trados Studio's MT Enhanced Provider, including Google.Apis.Auth version 1.22.0.

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 10:49 AM (GMT 0) on 4 Mar 2024]
Children