Text GenerationPrompt EngineeringPrompt Library
How to Build a Multilingual interpreter
Interpret between a wide variety of different languages.
Prompt
Interpret the text below into into French, Spanish, Italian, German, Brazilian Portuguese,Japanese, Korean, Simplified Chinese, and Arabic:The customer is having a problem with a printer that is not connecting to the computer. Hetried restarting both the computer and the printer.
Output
French: Le client rencontre un problème avec une imprimante qui ne se connecte pas à l'ordinateur.Il a essayé de redémarrer l'ordinateur et l'imprimante.Spanish: El cliente tiene un problema con una impresora que no se conecta a la computadora.Ha intentado reiniciar ambas, la computadora y la impresora.Italian: Il cliente ha un problema con la stampante che non si connette al computer. Ha provatoa riavviare sia il computer che la stampante.German: Der Kunde hat ein Problem mit einem Drucker, der sich nicht mit dem Computer verbindet.Er hat sowohl den Computer als auch den Drucker neu gestartet.Brazilian Portuguese: O cliente está com problema em uma impressora que não está se conectandoao computador. Ele tentou reiniciar tanto o computador quanto a impressora.Japanese: お客様はプリンターがパソコンに繋がらない問題を抱えています。お客様はパソコンとプリンターの両方を再起動しました。Korean: 고객이 컴퓨터에 연결되지 않는 프린터 문제로 고민하고 있습니다. 고객은 컴퓨터와 프린터를 모두 재부팅해 보았습니다.Simplified Chinese: 客户的打印机无法连接到电脑,他尝试重启了电脑和打印机。Arabic: يواجه العميل مشكلةمع طابعة لا تتوصّل بالكمبيوتر، وقد حاول إعادة تشغيل الكمبيوتر والطابعة دون جدوى.
API Request
PYTHON
import cohereco = cohere.ClientV2(api_key="<YOUR API KEY>")response = co.chat(model="command-a-plus-05-2026",messages=[{"role": "user","content": """Interpret the text below into into French, Spanish, Italian, German, Brazilian Portuguese, Japanese, Korean, Simplified Chinese, and Arabic:The customer is having a problem with a printer that is not connecting to the computer. He tried restarting both the computer and the printer.""",}],)print(response.message.content[0].text)