Request for help.
Step 1) So i created my glossary resource and got success.
{
"name": "projects/my-project-number/locations/us-central1/operations/20210322-00291616398144-60500080-0000-2ec8-8d87-001a114eb362", "metadata":
"name": "projects/
my-project-number/locations/us-central1/glossaries/my-glossary-id",
"state": "RUNNING",
"submitTime": "2021-03-22T07:29:04.336303930Z"
}
}
Then i wanted to use the glossary to translate my text --- so i did the Step 2 Scenario 1 which gave error and then i tried Step 2 Scenario 2 which also gave error. Details below -
Step 2) request1.json
{
"sourceLanguageCode": "en",
"targetLanguageCode": "zh",
"contents": "Please translate this. Subtitle.",
"glossaryConfig":
{ "glossary": "projects/my-project-id/locations/us-central1/glossaries/my-glossary-id" }
}
Scenario 1
{ "error": { "code": 404, "message": "Glossary not found.; Failed to initialize a glossary.", "status": "NOT_FOUND" }}
Scenario 2
{ "error": { "code": 400, "message": "Locations in model 'global' and in glossary 'us-central1' do not match.", "status": "INVALID_ARGUMENT" }}