ChatGPT Translator

Translate strings using ChatGPT and optional DeepL fallback

ChatGPT Translator

AI-generated

Summary

Translate a given string into multiple target languages (Danish, Swedish, Finnish, Czech, Polish, Dutch, German, Chinese) with provided contextual information to guide the translation using ChatGPT's GPT-4 model.

Inputs

  • string (required) — The text string to be translated.
  • context (required) — Contextual information to guide the translation for accuracy and relevance.

Output shape

a list of JSON objects with translations for each input item, where each JSON object contains translated strings keyed by language codes (da, sv, fi, cs, pl, nl, de, zh).

Each output item corresponds to the input item at the same index. The translations are parsed from the model's response as a JSON object. No pagination or additional envelope is used.

Links

Discussion