i18readme
v1.0.1
Published
AI-powered README localization — translates and links README files across languages
Maintainers
Readme
English | Русский | Deutsch | Français | 中文 | 日本語
i18readme
Translate your README.md into any language with one command. Powered by Claude or GPT-4o.
The language bar above is injected automatically into every file. When your README changes, only the outdated translations are re-generated.
Install
npm install -g i18readmeRequires Node.js 18+.
Quick start
# 1. Go to your project
cd my-project
# 2. Set up — asks for languages, folder, AI provider, model, and API key
i18r init
# 3. Translate
i18r syncThat's it. Your translations will appear in i18readme/README.ru.md, i18readme/README.de.md, etc.
Commands
i18r init Set up the project (interactive)
i18r sync Translate missing and outdated files
i18r sync --force Re-translate everything
i18r sync --force ru,de Re-translate specific languages only
i18r sync --provider <p> Override provider for this run
i18r sync --model <m> Override model for this run
i18r status Show what's up to date and what's not
i18r config Update provider, model, and API key
i18r config show Show saved config
i18r config set --provider <p> --key <k> Save API key non-interactivelyHow it works
i18r init scans your project for README files, asks which languages to translate to, which AI provider and model to use, and saves your API key. Creates .i18readme.json:
{
"langs": ["ru", "de", "zh"],
"dir": "i18readme",
"readmes": ["README.md"]
}i18r sync compares a content hash of your README.md against the hash stored in each translation. If the content hasn't changed, the translation is skipped — even across git checkouts or file copies that would reset timestamps.
Each translated file gets a language switcher bar at the top linking to all other languages.
AI providers
| Provider | Default model | How to get a key | | ------------------ | -------------------------- | ------------------------------------------------------ | | Claude (default) | claude-haiku-4-5 (fast) | console.anthropic.com | | OpenAI | gpt-4o-mini (fast) | platform.openai.com |
You can select a more powerful model (Sonnet, Opus, GPT-4o) during i18r init or i18r config, or override it for a single run with --model.
The key is stored in ~/.i18readmerc on your machine — never in the project.
License
MIT
