fluent 0.8.1
Pre-release
Pre-release
-
Expose
FluentResourceas an export. (#286)FluentResourceis a data structure representing a parsed Fluent document.
It can be used to cache resources which can then be added toFluentBundle
via theaddResourcemethod. To create aFluentResourcegiven a string
of Fluent translations, use the staticFluentResource.fromStringmethod.let resource = FluentResource.fromString(text); bundle.addResource(resource);
The undocumented
_parseexport was also removed in favor of
FluentResource.fromString.