
SimpleLocalize CLI
CLISimpleLocalize 官方命令行:上传、下载多语言翻译文件,一键发起机器翻译与 AI 自动翻译,把译文发布到 CDN 托管,还能从源码中抽取待翻译的文案键,适合放进 CI 自动跑本地化流程。需要 SimpleLocalize 账号与项目 API Key,平台为付费服务,可免费试用 14 天。
Translation Management for software projects
The easiest way to manage translation files for web and mobile apps.
SimpleLocalize CLI is a command-line tool that allows you to manage translations in your software project, and it's a great tool for CI/CD pipelines and localization automation.
- Synchronize files - keep in sync all your translation files
- Auto-translate - auto-translate texts in seconds
- Host translations - manage your hosted translations
- GitHub Actions support - seamless integration with GitHub Actions
Installation
The installation process is automated by command-line scripts. Both scripts for Windows (PowerShell) and macOS/Linux/Windows downloads a binary file with CLI, copies it to user files and makes it available to run anywhere in the system from a command-line. The CLI supports macOS (both Apple Silicon and Intel), Linux (x86 and ARM64), and Windows.
# macOS / Linux / Windows (WSL)
curl -s https://get.simplelocalize.io/2.11/install | bash
# Windows (PowerShell)
. { iwr -useb https://get.simplelocalize.io/2.11/install-windows } | iex;
# npm - https://github.com/simplelocalize/simplelocalize-cli-npm
npm install @simplelocalize/cli
Usage
The command-line tool offers several commands to execute. All of them requires Project API Key that is unique for each project.
You can set apiKey via configuration file, pass it as parameter with --apiKey or by environment variable SIMPLELOCALIZE_API_KEY.
simplelocalize [command] ...parameters
Upload translations
Upload command takes your local files and uploads them to SimpleLocalize.
simplelocalize upload
--apiKey PROJECT_API_KEY
--uploadPath INPUT_FILE
--uploadFormat FILE_FORMAT
--uploadLanguageKey en
GitHub Wiki: Upload translations
Download translations
Download command takes translations from SimpleLocalize and saves them to your local files.
simplelocalize download
--apiKey PROJECT_API_KEY
--downloadPath DOWNLOAD_PATH
--downloadFormat FILE_FORMAT
--downloadLanguageKey en,de,fr
GitHub Wiki: Download translations
Auto-translate strings
Auto-translate command starts auto-translation tasks for project languages and waits for the finish.
simplelocalize auto-translate --apiKey PROJECT_API_KEY
GitHub Wiki: Auto-translate strings
Translation Hosting
There are two commands that operates on translation hosting resources which is publish and pull.
Publish translations
Publish translations between translation editor and hosting or between hosting environments.
simplelocalize publish
--apiKey PROJECT_API_KEY
--environment _latest
Pull resources
Pull command downloads files from translation hosting.
simplelocalize pull
--apiKey PROJECT_API_KEY
--pullPath ./hosting/
--environment _latest
Additional commands
Initalize configuration file
Command creates a sample configuration file in the current directory.
simplelocalize init
GitHub Wiki: Additional commands
Get project details
Command gets project details and prints them.
simplelocalize status --apiKey PROJECT_API_KEY
GitHub Wiki: Additional commands
Purge translations
Command removes all translations, translation keys and languages.
simplelocalize purge --apiKey PROJECT_API_KEY
GitHub Wiki: Additional commands
Extract translation keys
Extract command finds translation keys and translations from the source code.
simplelocalize extract --searchDir SEARCH_DIRECTORY --projectType PROJECT_TYPE
GitHub Wiki: Additional commands
Configuration file
Create configuration file to to simplify the bash commands. Arguments used in command always override properties set in the configuration file.
# It load simplelocalize.yml file by default
simplelocalize upload
GitHub Wiki: Configuration file
Language mapping (2.11+)
Mapping between SimpleLocalize language key and {lang} placeholder. On download the SimpleLocalize language key is mapped to the {lang} placeholder, On upload the {lang} placeholder is mapped back to the SimpleLocalize language key. This can be used to customize where files are downloaded, e.g., to download 'en' to '/values/' instead of '/values-en/'.
downloadPath: ./res/values{lang}/strings.xml
downloadFormat: android-strings
mappings:
lang:
- languageKey: "en"
placeholder: "" # download 'en' to ./res/values/strings.xml
- languageKey: "de"
placeholder: "-de" # download 'de' to ./res/values-de/strings.xml
Proxy support
SimpleLocalize CLI supports HTTP and HTTPS proxies, and it respects the http_proxy, https_proxy environment
variables.
Here are some examples of how to set proxy environment variables in Linux and macOS:
export http_proxy=http://someproxy.com
export http_proxy=http://someproxy.com:8080
export http_proxy=http://user:password@someproxy.com:8080
Support
Please refer to the official SimpleLocalize documentation. That should help you troubleshoot common issues. For additional help, you can reach out to us on one of these channels:
- GitHub (Bug and issue reports)
- Email (General support)
- Changelog (Product updates)
- YouTube (How-to tutorials)
License
See LICENSE for more details.
相关资源

Lingo.dev CLI
CLILingo.dev 官方命令行:lingo push 把仓库里的 JSON、YAML、Markdown、PO、XLIFF、Android/Xcode 字符串等文件发给平台上的大模型本地化引擎翻译,lingo pull 取回译文,可接入 CI。需 Lingo.dev 账号,按量计费,有免费沙箱。
lingodotdev/lingo.dev5.4k
locize-cli
CLILocize 官方命令行:在本地多语言文件与 Locize 翻译平台之间同步,增删查翻译条目、下载已发布译文、管理版本与分支,可导出 JSON、XLIFF、PO、CSV、Excel 等格式交给译员处理。需要 Locize 账号、项目 ID 与 API Key,有免费套餐。
locize/locize-cli71
General Translation CLI
CLIGeneral Translation 的命令行 gt:用向导为 React、Next.js 等项目配置多语言,再把界面文案和 JSON、YAML、Markdown 等内容文件交给平台 AI 翻译并写回项目,可接入 CI。需要 Node.js 项目和 General Translation 账号与 API Key(可免费注册,翻译按用量计费)。
generaltranslation/gt1.1k
Languine
CLIAI 本地化工具:先把服务端一键部署到自己的 Vercel 账号(自动配好 Postgres 与 AI Gateway,部署后需开启部署保护),再在项目里运行 npx languine@selfhosted translate,用大模型把应用的语言文件翻译成多个语种,也提供自动提 PR 的 GitHub Action。需要 Vercel 账号与 Node.js。
languine-ai/languine2k
attranslate
CLI面向编码 agent 的离线翻译同步工具:只把 JSON、YAML、PO、CSV 等多语言文件里新增的文案交给 agent 翻译,不覆盖人工改过的译文,省 token。适合译员与开发协作维护软件译文;需要 Node.js,本身不调用翻译 API。
fkirc/attranslate358
Crowdin CLI
CLICrowdin 官方命令行:把待翻译的源文件上传到 Crowdin,再把译文下载回原位置,还能查看翻译进度、管理术语表与翻译记忆、触发机器或 AI 预翻译,支持 JSON 输出便于 agent 解析。需要 Crowdin 账号(可免费试用,开源项目可申请免费授权)与个人访问令牌,crowdin init 会引导生成配置文件。
crowdin/crowdin-cli321