If $text is > 20000 arguments are passed in wrong order to executeTranslation

Created on 14 February 2025, 10 days ago

Problem/Motivation

When you have long texts the calls to executeTranslation are split up but the arguments are passed in the wrong order. I got an error like: Translation has been rejected with following error: Google\ApiCore\ApiException: { "message": "Source language is invalid.", "code": 3, "status": "INVALID_ARGUMENT", "details": [ { "@type": "type.googleapis.com\/google.rpc.BadRequest", "fieldViolations": [ { "field": "source_language_code", "description": "Source language:

"

Steps to reproduce

Try and translate a really long content type > 20,000 characters.

Proposed resolution

Pass args in right order

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

achap 🇦🇺

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024