Skip to content

fluent 0.8.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@stasm stasm released this 27 Sep 07:34
  • 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 to FluentBundle
    via the addResource method. To create a FluentResource given a string
    of Fluent translations, use the static FluentResource.fromString method.

    let resource = FluentResource.fromString(text);
    bundle.addResource(resource);

    The undocumented _parse export was also removed in favor of
    FluentResource.fromString.