Skip to content

Document/allow attribute access from a FluentBundle #358

@eemeli

Description

@eemeli

See also #208, #282

At the moment, the internal structure of a Message is not public:

/*
* Return the internal representation of a message.
*
* The internal representation should only be used as an argument to
* `FluentBundle.format`.
*
* @param {string} id - The identifier of the message to check.
* @returns {Any}
*/
getMessage(id) {
return this._messages.get(id);
}

Despite this, it's the interface that at least fluent-dom and fluent-react use to access message attributes. This makes things difficult for external developers, as fluent currently does not provide any other means of accessing them. Is the plan to solve this to wait for #322 to land?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions