Skip to content

Releases: Assembless/react-littera

🏷️ v2.4.0

07 Feb 12:27
Compare
Choose a tag to compare

What's Changed

  • Implement array type translations by @DRFR0ST in #12
  • Fix crashes on SSR when detecting locale by @DRFR0ST in #13
  • Fallback on missing translations by @zivavu in #16

New Contributors

Full Changelog: v2.2.1...v2.4.0

🏷️ v2.2.0

08 Apr 00:01
Compare
Choose a tag to compare

[2.2.0] - 2021-04-08

Added

  • Function translateSingle exposed by useLitteraMethods hook for translating a single key.

🏷️ v2.1.0

30 Aug 00:42
cac6911
Compare
Choose a tag to compare

Changelog

Added

  • Variable translations.

Fixed

  • Type checking for translations and locale in core methods.

🏷️ v2.0.0

15 Jul 21:34
Compare
Choose a tag to compare

Changelog

Added

  • Automaticaly detect browser language. Use the detectLocale provider prop.
  • Ability to provide custom locale pattern (default is still xx_XX)
  • New provider props, locales and initialLocale

Changed

  • Split useLittera into two hooks (useLittera and useLitteraMethods)
  • Change provider props naming. Language is now called locale etc.

See migration guide in README.md file.

🏷️ v2.0.0-alpha.4

07 Mar 23:56
Compare
Choose a tag to compare
Pre-release

Added

  • New provider props, locales and initialLocale

Changed

  • Provider handles locale state automatically.

🏷️ v2.0.0-alpha.2

06 Mar 22:31
Compare
Choose a tag to compare
Pre-release

Added

  • Improved types.

Removed

  • Nesting translations.

🏷️ v2.0.0-alpha.1

01 Mar 16:33
Compare
Choose a tag to compare
Pre-release

Added

  • Support for nesting translations
  • Ability to provide custom pattern

Changed

  • Split useLittera into two hooks changing inputs and outputs
  • Change provider props. Language is now called locale etc

🏷️ v1.2.2

10 Nov 17:51
Compare
Choose a tag to compare

Critical hotfix

🏷️ v1.2.1

09 Nov 00:46
Compare
Choose a tag to compare
  • Rewrote lib to Typescript

🏷️ v1.2.0

15 Oct 11:06
a18e2d8
Compare
Choose a tag to compare

First stable release