-
Notifications
You must be signed in to change notification settings - Fork 78
Document/allow attribute access from a FluentBundle #358
Copy link
Copy link
Closed
Labels
Description
At the moment, the internal structure of a Message is not public:
fluent.js/fluent/src/bundle.js
Lines 86 to 97 in 326b6ee
| /* | |
| * 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?
Reactions are currently unavailable