9 releases

Uses new Rust 2024

new 0.2.5 Oct 20, 2025
0.2.4 Oct 17, 2025
0.1.3 Jul 22, 2025

#338 in Internationalization (i18n)

Download history 122/week @ 2025-07-06 230/week @ 2025-07-13 128/week @ 2025-07-20 10/week @ 2025-07-27 3/week @ 2025-08-31 13/week @ 2025-09-28 5/week @ 2025-10-05 540/week @ 2025-10-12

558 downloads per month

MIT/Apache

87KB
2K SLoC

es-fluent-cli

es-fluent-cli is a command-line tool that provides a Terminal User Interface (TUI) for managing Fluent translations. It automatically discovers crates with i18n.toml configuration, generates .ftl files, and watches for changes in your source code to trigger rebuilds.

This tool is ideal for a "watch" mode during development, giving you instant feedback and generating translation keys as you write your code.

Usage

To start the CLI in its default watch mode, simply run the following command in your project's root directory:

es-fluent-cli

The tool will scan for crates, perform an initial build, and then monitor for file changes.

Modes

You can control how the .ftl files are generated using the --mode flag.

  • Conservative Mode (Default): Adds new translation keys to your .ftl files while preserving any existing keys and their translations. This is the safest and default mode.

    es-fluent-cli --mode conservative
    
  • Aggressive Mode: Overwrites the existing .ftl file entirely with newly generated keys. This is useful for cleaning up stale keys but will erase any manual changes or translations in the file.

    es-fluent-cli --mode aggressive
    

Dependencies

~12–26MB
~363K SLoC