Skip to content

Commit

Permalink
fluent-react 0.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
stasm committed Feb 19, 2018
1 parent 6f1d6a8 commit fbe8139
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions fluent-react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# Changelog

## fluent-react 0.6.1 (February 19, 2018)

- Preserve children of wrapped components if translation value is null. (#154)

`<Localized>` now special-cases translations with null values; it
preserves the original children of the wrapped element and only sets
translated attributes.

- Protect void elements from translations which try to set children. (#155)

A broken translation may have a value where none is expected.
`<Localized>` components now protect wrapped void elements from having
this unexpected value inserted as children.

- Add a third argument to getString for fallback. (#147)

The new third argument to the `getString` function in `withLocalized`
wrapped components allows for definition of a fallback message in case
the message id is not fount in the message context. The fallback message
may also be used for extraction of source copy.

## fluent-react 0.6.0 (February 1, 2018)

- Allow limited markup in translations. (#101)
Expand Down
2 changes: 1 addition & 1 deletion fluent-react/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "fluent-react",
"description": "Fluent bindings for React",
"version": "0.6.0",
"version": "0.6.1",
"homepage": "http://projectfluent.org",
"author": "Mozilla <[email protected]>",
"license": "Apache-2.0",
Expand Down

0 comments on commit fbe8139

Please sign in to comment.