File tree 2 files changed +22
-1
lines changed
2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## fluent-react 0.6.1 (February 19, 2018)
4
+
5
+ - Preserve children of wrapped components if translation value is null. (#154 )
6
+
7
+ ` <Localized> ` now special-cases translations with null values; it
8
+ preserves the original children of the wrapped element and only sets
9
+ translated attributes.
10
+
11
+ - Protect void elements from translations which try to set children. (#155 )
12
+
13
+ A broken translation may have a value where none is expected.
14
+ ` <Localized> ` components now protect wrapped void elements from having
15
+ this unexpected value inserted as children.
16
+
17
+ - Add a third argument to getString for fallback. (#147 )
18
+
19
+ The new third argument to the ` getString ` function in ` withLocalized `
20
+ wrapped components allows for definition of a fallback message in case
21
+ the message id is not fount in the message context. The fallback message
22
+ may also be used for extraction of source copy.
23
+
3
24
## fluent-react 0.6.0 (February 1, 2018)
4
25
5
26
- Allow limited markup in translations. (#101 )
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " fluent-react" ,
3
3
"description" : " Fluent bindings for React" ,
4
- "version" : " 0.6.0 " ,
4
+ "version" : " 0.6.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