What can you do with it?

The /translation command enables you to translate text, audio files, and documents into different languages using AI-powered translation. You can translate plain text, transcribe and translate audio recordings, convert PDF documents to other languages, and maintain formatting while translating content across multiple language pairs.

How to use it?

Basic Command Structure

/translation [content] to [target-language]

Parameters

Required:

  • content - The text, file, or audio to translate

  • target-language - The language to translate into (e.g., Spanish, French, Japanese)

Optional:

  • source-language - The original language (auto-detected if not specified)

  • format - Output format: json, plaintext, markdown, or html (defaults to json)

  • file - URL or reference to a file to translate (PDF, text, or audio)

Response Format

The command returns:

{
  "output": "translated text content",
  "source_language": "detected or specified source language",
  "target_language": "target language",
  "format": "output format used"
}

Examples

Basic Usage

/translation
content: Hello, how are you today?
target-language: Spanish

Translates a simple text phrase from English to Spanish.

Advanced Usage

/translation
file: document.pdf
target-language: French
source-language: English
format: markdown

Translates a PDF document from English to French and returns the result in markdown format.

Specific Use Case

/translation
file: audio-recording.mp3
target-language: Japanese
format: plaintext

Transcribes an audio file and translates the transcription to Japanese, returning plain text output.

Notes

Supports text files (.txt), PDF (.pdf), WAV (.wav), and MP3 (.mp3) formats. Major languages supported include Arabic, Bengali, Chinese, English, French, German, Hindi, Italian, Japanese, Korean, Portuguese, Russian, and Spanish. Additional support for over 100 languages including less common ones like Basque, Hawaiian, Khmer, and Welsh. Auto-detects source language when not specified.

The /translate command converts text from one language to another. Perfect for:

  • Translating documents
  • Converting messages
  • Making content accessible in multiple languages
  • Understanding foreign text
  • Creating multilingual content

Basic Usage

There are three ways to use the translate command:

  1. Direct text translation:
/translate to French 
Hello, how are you?
  1. File upload:
/translate to Spanish
document.txt
  1. File URL:
Translate the following document to Hindi:
https://example.com/documents/report.pdf

Supported Formats

  • Text files (.txt)
  • PDF (.pdf)
  • Wav (.wav)
  • Mp3 (.mp3)

Supported Languages

Major World Languages

  • Arabic
  • Bengali
  • Chinese (Simplified and Traditional)
  • English
  • French
  • German
  • Hindi
  • Italian
  • Japanese
  • Korean
  • Portuguese
  • Russian
  • Spanish

Less Commonly Supported Languages

  • Croatian
  • Czech
  • Danish
  • Dutch
  • Estonian
  • Finnish
  • Greek
  • Hebrew
  • Hungarian
  • Indonesian
  • Latvian
  • Lithuanian
  • Norwegian
  • Polish
  • Romanian
  • Serbian
  • Slovak
  • Slovenian
  • Swedish
  • Thai
  • Turkish
  • Ukrainian
  • Vietnamese

Additional Languages

  • Afrikaans
  • Amharic
  • Assamese
  • Azerbaijani
  • Basque
  • Belarusian
  • Bhojpuri
  • Burmese
  • Cebuano
  • Chichewa (Nyanja)
  • Corsican
  • Esperanto
  • Ewe
  • Frisian
  • Galician
  • Georgian
  • Gujarati
  • Haitian Creole
  • Hausa
  • Hawaiian
  • Hmong
  • Igbo
  • Javanese
  • Kannada
  • Kazakh
  • Khmer
  • Kurdish
  • Kyrgyz
  • Lao
  • Luxembourgish
  • Macedonian
  • Malagasy
  • Malayalam
  • Maltese
  • Maori
  • Marathi
  • Mongolian
  • Nepali
  • Odia (Oriya)
  • Pashto
  • Punjabi
  • Samoan
  • Scots Gaelic
  • Sesotho
  • Shona
  • Sindhi
  • Sinhala
  • Somali
  • Sundanese
  • Tajik
  • Tamil
  • Telugu
  • Uyghur
  • Uzbek
  • Welsh
  • Xhosa
  • Yiddish
  • Yoruba
  • Zulu