Thanks to visit codestin.com
Credit goes to github.com

Skip to content

NuclEnergy/t-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

T-CLI

High-performance CLI for code-based i18n management. Built with Rust for maximum speed and reliability.

Features

  • 🚀 Lightning-fast Rust implementation
  • 🔍 Batch code scanning and key collection
  • 🛠️ Automatic generation of translation files
  • ⚡ Modern SWC-based parsing, async processing

Installation

Build from Source

git clone https://github.com/NuclEnergy/t-cli.git
cd t-cli
cargo install --path .

Or for local development:

cargo build --release

Usage

1. Init

Generate an initial t.config.ts file:

t-cli init

2. Collect

Scan your codebase and collect all t function keys:

t-cli collect

3. Generate

Generate translation files and TypeScript index from collected keys:

t-cli generate

Tip:
Run t-cli --help for all available options and flags.


Development

Requirements

  • Rust 1.80+
  • Cargo

Build

cargo build --release

FAQ

  • Which languages and frameworks are supported?
    Any language defined in config; best used with React/Next.js/TypeScript projects.

  • Is performance an issue on large codebases?
    t-cli is optimized for speed with async/multithreaded processing. File issues if you hit a bottleneck.


License

MIT. See LICENSE for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published