ifly-translate

Solid

iFlytek Machine Translation (机器翻译) — translate text between Chinese, English, Japanese, Korean, French, Spanish, German, Russian, Arabic, Thai, Vietnamese, and many more languages. Use when the user wants to translate text. Pure Python stdlib, no pip dependencies.

AI & Automation 179 stars 21 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 88/100

Stars 20%
75
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# ifly-translate Translate text using iFlytek's Machine Translation API (机器翻译). Supports 70+ language pairs. ## Setup 1. Create an app at [讯飞控制台](https://console.xfyun.cn) with 机器翻译 service enabled 2. Set environment variables: ```bash export XFYUN_APP_ID="your_app_id" export XFYUN_API_KEY="your_api_key" export XFYUN_API_SECRET="your_api_secret" ``` ## Usage ### Basic translation (Chinese → English by default) ```bash python3 scripts/translate.py "你好世界" ``` ### Specify source and target language ```bash python3 scripts/translate.py -s en -t cn "Hello world" ``` ### Read from stdin ```bash echo "こんにちは" | python3 scripts/translate.py - -s ja -t cn ``` ### Read from file ```bash python3 scripts/translate.py -f document.txt -s cn -t en ``` ### Options | Flag | Short | Description | |------|-------|-------------| | `text` | | Text to translate (use `-` for stdin) | | `--file` | `-f` | Read text from a file | | `--from` | `-s` | Source language code (default: `cn`) | | `--to` | `-t` | Target language code (default: `en`) | | `--verbose` | `-v` | Show source/target language labels | | `--raw` | | Output raw JSON response | ### Common language codes | Code | Language | Code | Language | |------|----------|------|----------| | `cn` | 中文 | `en` | English | | `ja` | 日语 | `ko` | 韩语 | | `fr` | 法语 | `de` | 德语 | | `es` | 西班牙语 | `ru` | 俄语 | | `ar` | 阿拉伯语 | `th` | 泰语 | | `vi` | 越南语 | `pt` | 葡萄牙语 | | `it` | 意大利语 | `tr` | 土耳其语 | Aliases are supported: `zh`→`cn`, ...

Details

Author
iflytek
Repository
iflytek/iFly-Skills
Created
2 months ago
Last Updated
today
Language
Python
License
Apache-2.0

Similar Skills

Semantically similar based on skill content — not just same category

Data & Documents Solid

ifly-translate

iFlytek Machine Translation (机器翻译) — translate text between Chinese, English, Japanese, Korean, French, Spanish, German, Russian, Arabic, Thai, Vietnamese, and many more languages. Use when the user wants to translate text. Pure Python stdlib, no pip dependencies.

3,964 Updated 1 months ago
openclaw
AI & Automation Solid

translate

Translate English or Japanese tech articles and texts into natural, fluent Chinese. Use this skill when the user wants to translate text to Chinese, asks for Chinese translation, mentions "translate to Chinese", "翻译", provides English/Japanese tech content for translation, or wants any text converted into Chinese. Also trigger when the user pastes text and asks to translate it, or references a file to translate into Chinese.

1,535 Updated 1 months ago
feiskyer
AI & Automation Featured

azure-ai-translation-text-py

Azure AI Text Translation SDK for real-time text translation, transliteration, language detection, and dictionary lookup. Use for translating text content in applications.

39,350 Updated today
sickn33
AI & Automation Solid

azure-ai-translation-text-py

Azure AI Text Translation SDK for real-time text translation, transliteration, language detection, and dictionary lookup. Use for translating text content in applications. Triggers: "text translation", "translator", "translate text", "transliterate", "TextTranslationClient".

2,429 Updated 2 days ago
microsoft
AI & Automation Listed

azure-ai-translation-text-py

Azure AI Text Translation SDK for real-time text translation, transliteration, language detection, and dictionary lookup. Use for translating text content in applications. Triggers: "text translation", "translator", "translate text", "transliterate", "TextTranslationClient".

335 Updated today
aiskillstore