Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Setting a default for Translation Provider Credential

Avatar

Avatar
Validate 1
Level 1
rockie-rocafort
Level 1

Likes

0 likes

Total Posts

15 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
rockie-rocafort
Level 1

Likes

0 likes

Total Posts

15 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
rockie-rocafort
Level 1

14-04-2019

Hello! I was just wondering if we can set a default for the Translation Provider Credential in the Translation Project Properties page?

1733002_pastedImage_3.png

I am enhancing a connector which populates the contents of the highlighted area in the above image. I want it to have a default selected depending on the contents of a json file. Although, when I checked on the backend, it just calls a parent class method:

super(Maps.newHashMap(), Maps.newHashMap(), name, SERVICE_LABEL, SERVICE_LABEL, TRANSLATION_CLOUD_CONFIG_ROOT_PATH, TranslationMethod.HUMAN_TRANSLATION, tc);

The TRANSLATION_CLOUD_CONFIG_ROOT_PATH returns a list which contains the names of the cloud configurations of the connector that I'm enhancing. It always sets the first item of the list as the default one. What I wanted to do is to read a json file, get the default cloud config and set it as the first item of the dropdown menu. I also wanted it to be specific per project (depending on the json file content). To do this, I wanted to override the super method although when I checked the parent class it returns this:

1733130_pastedImage_8.png

Is there anything that I can do to implement this? Or is it even possible?

Thank you in advance for your replies.