Skip to content

Releases: artischockee/localiser

React major 17

26 Mar 13:23
Compare
Choose a tag to compare

Breaking

  • the library now supports React 17+

v3.0.1

03 Dec 12:14
Compare
Choose a tag to compare

Changes

  • docs(types): change 'any' to 'unknown' throughout the code
  • style: change 'useLocaliser' internal name
  • chore: update react (and react-dom) versions

v3.0.1-0

29 Sep 05:47
Compare
Choose a tag to compare

Changes

  • Rename useLocaliser to __internal__useLocaliser (only internally) to prevent IDE's from suggesting an autocomplete import from the library's internal file

New API with own Context Provider

27 Sep 11:02
Compare
Choose a tag to compare

This release includes a whole new API to interact with the library.

Changes

  • Replace old init function with new initialize; remove binding to existing app's context
  • Add <LocaleProvider /> component as HOC for the application
  • Add useLocaliser() hook to be able to use localisation in React hook components

Other

  • Update README.md, actualise code examples there