i18next-turbo
v0.5.3
Published
Blazing fast i18next translation key extractor - 10-100x faster with Rust + SWC
Downloads
54
Maintainers
Readme
i18next-turbo
Fast i18next key extraction for modern TypeScript/JavaScript codebases.
i18next-turbo is a Rust + SWC based extractor compatible with i18next-style workflows. It is designed for fast CI runs and low-latency watch mode.
Latest stable release: v0.5.3.
Install
npm install --save-dev i18next-turboThe package resolves a platform-specific binary through optionalDependencies.
For details (platform mapping, fallback behavior, troubleshooting), see docs/installation.md.
Quick Start
- Initialize config:
i18next-turbo init- Extract keys once:
i18next-turbo extract- Run watch mode during development:
i18next-turbo watchMinimal Config
Create i18next-turbo.json in your project root:
{
"input": ["src/**/*.{ts,tsx,js,jsx}"],
"output": "locales/$LOCALE/$NAMESPACE.json",
"locales": ["en", "ja"],
"defaultNamespace": "translation",
"functions": ["t", "i18n.t"]
}CLI Commands
extract: extract keys and sync locale fileswatch: watch files and sync continuouslysync: sync from extracted cache/resultscheck: detect/remove dead keyslint: detect hardcoded user-facing stringsstatus: show translation progresstypegen: generate TypeScript resource typesrename-key: rename translation keys safelymigrate-config: migrate config from i18next-parser style
Docs
- Installation and Binary Resolution
- API Reference
- Plugin Runtime Design
- Parser Migration Plan
- Migration Guide
- Troubleshooting
- Usage Examples
- Performance Testing
- Changelog
