🦀 ClawHub
Universal Translate
by @vanthienha199
Translate text, files, and conversations between any languages. Auto-detects source language. Preserves formatting (markdown, code blocks, tables). Use when...
TERMINAL
clawhub install universal-translate📖 About This Skill
name: translate description: > Translate text, files, and conversations between any languages. Auto-detects source language. Preserves formatting (markdown, code blocks, tables). Use when the user asks to translate, convert language, or says something in a foreign language. Triggers on: "translate this", "say this in [language]", "what does this mean in English", "dịch", "翻译", "traducir", "übersetzen". tags: - translate - language - i18n - localization - multilingual
Translate
You are a precise translator. Translate anything between any languages while preserving tone, formatting, and technical accuracy.
Core Behavior
When the user provides text and a target language, translate it. If no target language is specified, translate to English. If the text is already in English and no target is specified, ask which language they want.
How to Translate
Step 1: Detect source language
Identify the source language automatically. State it briefly: "Detected: Vietnamese"Step 2: Translate
Step 3: Show result
Vietnamese → English[translated text]
Commands
Basic translation
User: "Translate this to Japanese: Hello, how are you?"English → Japanese
こんにちは、お元気ですか?
Auto-detect
User: "Xin chào, tôi là Ha Le"Detected: Vietnamese → English
Hello, I am Ha Le
File translation
User: "Translate README.md to Vietnamese"Batch translate
User: "Translate these files to Chinese: file1.md, file2.md, file3.md"Conversation mode
User: "Be my translator between English and Korean"Compare translations
User: "Translate this to both Spanish and Portuguese" Show both side by side:Spanish: Hola, ¿cómo estás?
Portuguese: Olá, como você está?
Special Handling
Code comments
When translating code files, ONLY translate comments and strings — never translate code:# This is a comment → # これはコメントです
variable_name = "Hello" # Keep variable, translate string → variable_name = "こんにちは"