Skip to content

Commit 570efb4

Browse files
committed
fluent 0.7.0
1 parent 4dba436 commit 570efb4

File tree

2 files changed

+26
-4
lines changed

2 files changed

+26
-4
lines changed

fluent/CHANGELOG.md

+25-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,37 @@
11
# Changelog
22

3-
## Unreleased
3+
## fluent 0.7.0 (July 24, 2018)
4+
5+
- Implement support for Fluent Syntax 0.6.
6+
7+
Syntax 0.6 keeps the syntax unchanged and makes many small changes to the
8+
previousl underspecified areas of the spec. The runtime parser now
9+
supports Unicode escapes and properly trims whitespace in TextElements.
10+
11+
- Add `FluentResource`. (#244)
12+
13+
`FluentResource` is a class representing a parsed Fluent document. It was
14+
added with caching in mind. It's now possible to parse a Fluent document
15+
inton an instance of `FluentResouce` once and use it to construct new
16+
`MessageContexts`. For this end, `MessageContext` now has the
17+
`addResource` method which takes an instance of `FluentResource`.
18+
19+
- Add the `transform` option to `MessageContext`. (#213)
20+
21+
`MessageContext` now accepts a new option, `transform`, which may be a
22+
function. If passed it will be used to transform the string parts of
23+
patterns. This may be used to implement programmatic transformations of
24+
translations, e.g. to create pseudo-localizations.
425

526
- Drop support for IE and old evergreen browsers. (#133)
627

728
Currently supported are: Firefox 52+, Chrome 55+, Edge 15+, Safari 10.1+,
829
iOS Safari 10.3+ and node 8.9+.
930

10-
- Move CachedSyncIterable and CachedAsyncIterable to an external dependency.
31+
- Move `CachedSyncIterable` and `CachedAsyncIterable` to a dependency.
1132

12-
They are now available from the `cached-iterable` package.
33+
They are now available from the `cached-iterable` package. `fluent`
34+
depends on it for running tests.
1335

1436
## fluent 0.6.4 (April 11, 2018)
1537

fluent/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "fluent",
33
"description": "Localization library for expressive translations.",
4-
"version": "0.6.4",
4+
"version": "0.7.0",
55
"homepage": "http://projectfluent.org",
66
"author": "Mozilla <[email protected]>",
77
"license": "Apache-2.0",

0 commit comments

Comments
 (0)