es-fluent-build

Crates.ioes-fluent-build
lib.rses-fluent-build
version0.1.3
created_at2025-07-07 15:42:23.851892+00
updated_at2025-07-22 19:34:41.512705+00
descriptionA crate that expose a build script for building Fluent resources
homepage
repositoryhttps://github.com/stayhydated/es-fluent
max_upload_size
id1741480
size26,064
stayhydated (stayhydated)

documentation

README

Build.rs script for generating Fluent localization files from Rust source code.

Parse Modes

The FluentBuilder supports two modes:

Aggressive Mode

Warning : Flushes and rewrites all entries.

// build.rs
es_fluent_build::FluentBuilder::new()
    .mode(es_fluent_build::FluentParseMode::Aggressive)
    .build()

Conservative Mode (default)

Adds new entries while preserving all existing ones. Useful when you want to avoid losing existing work when things move around.

// build.rs
es_fluent_build::FluentBuilder::new()
    .mode(es_fluent_build::FluentParseMode::Conservative)
    .build()

Note

  • the parser will be aware of the #[strum_discriminants(...)] attributes, and will generate entries for them.
Commit count: 0

cargo fmt