All notable changes to this project will be documented in this file. This project attempts to adhere to Semantic Versioning. We also try to use http://keepachangelog.com/ formatting for this file to make it easier to update and read.
(add items here to be added to future release)
LocalizationContextis exposed for being used in classes with context api- documentation on
withLocalizationandLocalizationContext
- Provide ability to use empty string as translation
- Added
useLocalizehook.
- More documentation (migration guide,
<Text/>replacement guide) - Made a few fixes to the
_localizeinternal function flow, although the order of operations here may need to change again if there's feedback around the current way we invoke / don't invokeprops.localize.
- Support for older react versions via
create-react-context
- Basically everything. Aligned with
react-accessfrom a deps/structure/tooling standpoint - The entire API is updated, while conceptually the same its now more in line with the latest React Context functionality
- Documentation matches up more with the new API. Which is probably for the best?
- the
<Text/>component is no longer in the API at all, and we will plan to add documentation on how you can build a simple one yourself usingwithLocalization().
- Support for React 15.5 💯
peerDependenciesnow includesprop-types🎉.- I don't have a strategy yet for you to only include that in development, and strip PropTypes in prod bundles, but that is what you should do especially if size is a concern.
- Updated devDependencies for mocha & babel-register 👍
- Update Travis CI matrix to test against a wider variety of node and react versions.
- Tests for
<Text/>that assert it can work with larger, nested bundles by default
- Published module now only includes
build/files, and doesn't download src/test files not needed for consumption. - Precommit rule/script has been disabled until linting is fixed.
- Width formatting on some lines in the this CHANGELOG
PropTypescorrectly indicate any object can be passed, not justobjectOf(string)
- Support for
.eslintrc, code clean up to getsrc/directory passing new rules - Connected components can now log warnings out when
_localizeDebugis set, and will always be passed a safe to invoke function regardless of a missing context function.
- Localization Connector now behaves more like redux
connect()in that it passeslocalize()as a prop to components now, removing the need for components to access context. - Project now uses
save-exactfor installed dependencies
- Bug to handle passing
nulltolocalize('label', null)more gracefully
- Support for peerDependency
react@^0.14.6 || 15.x - Changelog formatting for better release tracking
- Repo files (.gitignore, README.md)
- Bug causing
[]to show at end of messages using<Text />introduced here.
Intial release of <Localization /> wrapper and <Text /> helper components for looking up keys in
a message bundle and localizing text. Includes interpolation, custom rendering options, and
context helper function.