File tree 2 files changed +18
-1
lines changed
2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
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
+
3
20
## fluent 0.8.0 (August 20, 2018)
4
21
5
22
- Rename ` MessageContext ` to ` FluentBundle ` . (#222 )
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " fluent" ,
3
3
"description" : " Localization library for expressive translations." ,
4
- "version" : " 0.8.0 " ,
4
+ "version" : " 0.8.1 " ,
5
5
"homepage" : " http://projectfluent.org" ,
6
6
"author" :
" Mozilla <[email protected] >" ,
7
7
"license" : " Apache-2.0" ,
You can’t perform that action at this time.
0 commit comments