Skip to content

Messages and terms with the same names  #371

@kgv

Description

@kgv

For js implementation it is possible: context_test.js#L46
But for rs implementation it throws error:

let mut bundle = FluentBundle::new_concurrent(vec![langid!("en")]);
bundle
    .add_resource(
        FluentResource::try_new(
            "foo = Foo\\
                    -bar = Bar"
                .to_owned(),
        )
        .unwrap(),
    )
    .unwrap();
bundle.add_resource_overriding(
    FluentResource::try_new("-foo = Private Foo".to_owned()).unwrap(),
);
assert!(bundle.has_message("foo")); // assertion failed: bundle.has_message("foo")

Will this be implemented in fluent-rs?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions