Skip to content

Custom Translation API

A GET request will be sent to the specified API address with application/www-urlencode data:

text: Text/string to be translated

source_language: Original language code zh,en,ja,ko,ru,de,fr,tr,th,vi,ar,hi,hu,es,pt,it/string

target_language: Target language code zh,en,ja,ko,ru,de,fr,tr,th,vi,ar,hi,hu,es,pt,it/string

Expected JSON data returned from the interface:

{

code: 0=success, a number >0 represents failure, msg: ok=success, others represent the reason for failure, text: Translated text

}

Free translation API implemented based on cloudflare and m2m100, see: https://github.com/jianchang512/translate-api