Skip to content

Commit f3a165a

Browse files
committed
fluent 0.8.1
1 parent ac8dea9 commit f3a165a

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

fluent/CHANGELOG.md

+17
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# Changelog
22

3+
## fluent 0.8.1 (September 27, 2018)
4+
5+
- Expose `FluentResource` as an export. (#286)
6+
7+
`FluentResource` is a data structure representing a parsed Fluent document.
8+
It can be used to cache resources which can then be added to `FluentBundle`
9+
via the `addResource` method. To create a `FluentResource` given a string
10+
of Fluent translations, use the static `FluentResource.fromString` method.
11+
12+
```js
13+
let resource = FluentResource.fromString(text);
14+
bundle.addResource(resource);
15+
```
16+
17+
The undocumented `_parse` export was also removed in favor of
18+
`FluentResource.fromString`.
19+
320
## fluent 0.8.0 (August 20, 2018)
421

522
- Rename `MessageContext` to `FluentBundle`. (#222)

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.8.0",
4+
"version": "0.8.1",
55
"homepage": "http://projectfluent.org",
66
"author": "Mozilla <[email protected]>",
77
"license": "Apache-2.0",

0 commit comments

Comments
 (0)