Type
Product improvement
Description
Extend Translation API to Allow translation of arrays of text + a translation context
Benefit
Request #1: The current Cloudflare API is very limited in that it only permits translation of a single text string per API call. This is contrary to all other cloud translation services (AFIAK) that accept an array of text strings to translate and return a corresponding array of translated strings. This limitation makes it very slow (multiple API calls) and thus less viable when considering offering users alternative translation services within an application.
Request #2: LLM based models can typically support a system context. Only DeepL (AFAIK) supports this very important feature. For example, by setting a system context that specifies the gender of the speaker or subject being referred to, the LLM can correctly generate gender specific words when translating to a target language like French or Hindi that needs to know the gender information to correctly translate. GT & Azure fail at this as they lack the context feature. Other applications include setting a medical or financial context or specifying that the translation should use shortest possible words as required for an application or web site menu. Poor translations often result when the source text is only a single word or short phrase as the LLM lacks the context of a larger sentence. Adding a system context can fix this.