Skip to content

Commit fbe8139

Browse files
committed
fluent-react 0.6.1
1 parent 6f1d6a8 commit fbe8139

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

fluent-react/CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# Changelog
22

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+
324
## fluent-react 0.6.0 (February 1, 2018)
425

526
- Allow limited markup in translations. (#101)

fluent-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "fluent-react",
33
"description": "Fluent bindings for React",
4-
"version": "0.6.0",
4+
"version": "0.6.1",
55
"homepage": "http://projectfluent.org",
66
"author": "Mozilla <[email protected]>",
77
"license": "Apache-2.0",

0 commit comments

Comments
 (0)