es-fluent-cli-0.4.0 is not a library.
Visit the last successful build:
es-fluent-cli-0.6.0
es-fluent-cli
A command-line tool for managing Fluent translations in es-fluent projects.
Installation
Usage
Run the tool from your project root or a sub-crate.
Commands
generate
Scans your Rust source code for #[derive(EsFluent)] and related macros, and updates or creates your FTL files.
- Default Behavior: Adds new keys and updates existing ones. Preserves existing translations.
- Options:
--mode aggressive: Completely overwrites the file (WARNING: this deletes custom translations).
watch
Watches your src/ directory for changes and automatically runs the generator. This is ideal for development.
clean
Removes orphan keys and groups—translations that are defined in your FTL file but no longer found in your Rust code.
Note: This will remove comments associated with orphan keys, and even entire groups if they become empty.
Configuration
The CLI relies on an i18n.toml file in your crate root:
= "i18n" # Directory for FTL files
= "en" # Default language