text.translation
translate text between languages, using an online service
Permissions: network, cache
Translating text between languages, using an online service.
online
Section titled “online”Translating sends the text to the service. Translations are cached, so ones you’ve already done work offline.
Tags: conversion, network
translatetranslate text into the language to, named by code or English name, like “es”, “zh-CN” or “spanish”
Functions
Section titled “Functions”translate
Section titled “translate”translate(text: str, to: str, from?: str) -> str
translate text into the language to, named by code or English name, like “es”, “zh-CN” or “spanish”
The language it’s in is detected unless you give from
1"good morning".translate("es")2translate("Guten Morgen", "english", "german")Example outputCtrl+Enter to run
Example results generated on 2026-11-04. Ones using now, today or randomness will differ when you run them.