ifly-translate

Translate text via iFlytek's machine translation API from CLI.

217|27|Updated Mar 30, 2026
One-click install
npx skills add https://github.com/iflytek/iFly-Skills --skill ifly-translate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ifly-translate
Source: https://github.com/iflytek/iFly-Skills/tree/main/ifly-translate
Command: npx skills add https://github.com/iflytek/iFly-Skills --skill ifly-translate

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Users need to translate text across many languages quickly without heavy dependencies or external services management, enabling seamless content localization and communication workflows.

Core Features & Use Cases

  • CLI-based translation from text, file, or stdin, with language codes and aliases support.
  • Wide language coverage and simple integration into apps and workflows.
  • Use Case: Localize product documentation or chat messages by translating content between dozens of languages.

Quick Start

Run python3 translate.py "Hello world" to translate a sample text.

Frequently Asked Questions about ifly-translate

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I translate text across multiple languages using pure Python?

You can translate text across multiple languages using pure Python by executing a CLI script that calls iFlytek's machine translation API. It requires no heavy dependencies, using only standard libraries for content localization and communication workflows.

Can I translate content from a file or stdin in Python?

Yes, you can translate content from a file or stdin in Python. The CLI-based translation script accepts text inputs directly from the command line, files, or standard input, supporting various language codes and aliases.

Do I need external packages to run a Python translation script?

No, you do not need external packages to run this Python translation script. It is a pure-Python implementation built entirely on standard libraries, requiring only environment-variable-based authentication for the iFlytek translation API.

What is the best way to localize product documentation using a CLI tool?

The best way to localize product documentation using a CLI tool is passing the document text into a Python translation script. It quickly processes chat, documents, and content localization workflows across dozens of languages.

How does environment-variable-based authentication work for machine translation?

Environment-variable-based authentication for machine translation works by storing your iFlytek API credentials in system environment variables. The Python script reads these variables to securely authorize translation requests without hardcoding keys.

Are there limitations when using standard libraries for machine translation in Python?

Limitations of using standard libraries for machine translation in Python include relying entirely on the iFlytek API for processing. Without active internet access and valid environment-variable credentials, the translation requests will fail.