fluent-missing

Crates.iofluent-missing
lib.rsfluent-missing
version0.1.0
sourcesrc
created_at2021-03-28 11:06:13.331962
updated_at2021-03-28 11:06:13.331962
descriptionCompare and find missing fields in a language
homepage
repositoryhttps://github.com/doki-land/doki-system-fluent
max_upload_size
id374625
size1,295
SasakiSaki (oovm)

documentation

README

use fluent_fmt::FluentFormatter;
use fluent_syntax::parser::parse;

#[test]
fn parsing() {
    let mut ctx = FluentFormatter::default();
    let ftl = r#"
### Resource Level Comment
###   * Resource Level Comment2
###   * Resource Level Comment3

# This is a message comment
time-elapsed = Time elapsed: { 
    NUMBER($duration, maximumFractionDigits: 0) 
        }s.
    .placeholder = email@example.com
    .aria-label = Login input value
    .title = Type your login email
"#;
    let out = parse(ftl).unwrap();
    // println!("{:#?}", out);
    println!("{}", ctx.pretty_print(out).unwrap())
}
Commit count: 0

cargo fmt