- Fix: Removes default transformInput function that trims strings, since it might break things.
- Feature: Provides a way to transform strings provided to
<T />
before it is sent to the translation function.
- Fix: Only injects the
content
part of{{ component:content }}
if it is specified.
- Feature: Adds string interpolation support to non-component translator functions
t()
,tn()
,tp()
andtnp()
, using the same{{ variable }}
template syntax as for the other translator functions.
- Feature: Forces
<T>
and components decorated withwithTranslator()
to re-render whenever<LionessProvider>
'slocale
ormessages
props are updated.
- Fix: Supports new lines in raw strings, scope variables and template variable values
- Feature: Added a debug prop to
<LionessProvider>
- Feature: Export interpolateComponents
- Breaking: Rename tpn -> tnp and tcpn -> tcnp
- Breaking: Dropped official support for node.js 5 and 7
- Feature: Added official support for node.js 8
- Feature: Set displayName when using
withTranslators()
- Chore: Improved documentation
- Feature: Added support for gettext text domains
- Bug: Fixed proptypes notices
- Chore: Improved documentation
- Feature: Handled interpolation of non-string, non-element scope variables
- Bug: Makes logo image URL a full path
- Breaking: Rename composers.js -> withTranslators.js
- Breaking: Rename gettext.js -> getGettextInstance.js
- Breaking: Extract
interpolateComponents()
into a separate file - Feature: Added tc, tcn, tcp, tcpn translators
- Feature:
interpolateComponents()
now returns simple string if it can - Chore: Added tests and CI
- Bug: Fixes bad parsing of key/value commas in interpolated variables
- Feature: Allows commas to be used in interpolated scope values
- Feature: Improve interpolation regex to allow whatever inside curly braces
- Bug: Fixed image path
- Breaking: Change package name to lioness
- Feature: Defines prop types on
<T>
- Chore: Removes unused interpolate package dependency
- Initial release