fluent 0.7.0 (July 24, 2018)
Pre-release-
Implement support for Fluent Syntax 0.6.
Syntax 0.6 keeps the syntax unchanged and makes many small changes to the
previousl underspecified areas of the spec. The runtime parser now
supports Unicode escapes and properly trims whitespace in TextElements. -
Add
FluentResource. (#244)FluentResourceis a class representing a parsed Fluent document. It was
added with caching in mind. It's now possible to parse a Fluent document
inton an instance ofFluentResouceonce and use it to construct new
MessageContexts. For this end,MessageContextnow has the
addResourcemethod which takes an instance ofFluentResource. -
Add the
transformoption toMessageContext. (#213)MessageContextnow accepts a new option,transform, which may be a
function. If passed it will be used to transform the string parts of
patterns. This may be used to implement programmatic transformations of
translations, e.g. to create pseudo-localizations. -
Drop support for IE and old evergreen browsers. (#133)
Currently supported are: Firefox 52+, Chrome 55+, Edge 15+, Safari 10.1+,
iOS Safari 10.3+ and node 8.9+. -
Move
CachedSyncIterableandCachedAsyncIterableto a dependency.They are now available from the
cached-iterablepackage.fluent
depends on it for running tests.