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