Skip to content

Releases: QuiiBz/next-international

0.4.0

08 Apr 20:05
Compare
Choose a tag to compare

Breaking changes

This release contains several breaking changes, as we move closer to a v1:

  • createI18n<typeof Locale>() doesn't require anymore a generic, you should now have createI18n()
  • useI18n hook now only returns a t function, instead of an object containing both t and scopedT functions
  • A new useScopedI18n hook replaces the old scopedT function, and works similarly

And some new features:

  • A new useCurrentLocale hook that is correctly typed and returns the current locale
  • Improved types for params extraction of the translations

The README has been updated to reflect those changes. Huge thanks to @baptisteArno and @mieszkosabo for landing these improvements!

What's Changed

  • feat(international-types): improve plural extraction by @QuiiBz in #45
  • fix(international-types): allow multiple params in plural by @QuiiBz in #46
  • feat: add use scoped i18n hook by @baptisteArno in #48
  • fix: use workspace:* protocol by @QuiiBz in #49
  • feat: better type-safety for locales by @mieszkosabo in #52

New Contributors

Full Changelog: 0.3.6...0.4.0

0.3.6

17 Oct 11:17
Compare
Choose a tag to compare

What's Changed

  • feat(international-types): allow more values for locales by @QuiiBz in #31
  • feat(international-types): support plural forms by @QuiiBz in #32
  • feat(international-types): improve plural params by @QuiiBz in #33
  • fix(international-types): multiple params in plural by @QuiiBz in #34
  • chore(docs): add basic test example in readme by @Nsttt in #37
  • fix(next-international): don't load locale client-side if SSR/SSGed by @QuiiBz in #39

New Contributors

  • @Nsttt made their first contribution in #37

Full Changelog: 0.3.0...0.3.6

0.3.0

20 Aug 05:50
Compare
Choose a tag to compare

What's Changed

  • chore(docs): fix typo in examples by @ivanhofer in #26
  • feat(next-international): use a regex to allow multiple interpolations by @cstrnt in #30
  • feat: implement react translation functions by @EXio4 in #29

New Contributors

Full Changelog: 0.2.0...0.3.0

0.2.0

17 Aug 17:21
Compare
Choose a tag to compare

What's Changed

  • chore(docs): fix logo src by @QuiiBz in #21
  • test(international-types): add type tests by @QuiiBz in #22
  • fix: correct syntax for peer deps by @noahflk in #24
  • feat: allow SSR and SSG with getLocaleProps by @QuiiBz in #25

New Contributors

Full Changelog: 0.1.1...0.2.0

0.1.1

02 Aug 09:15
6eab0e6
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.1.0...0.1.1

0.1.0

27 Jul 08:55
Compare
Choose a tag to compare

What's Changed

New Contributors

  • @QuiiBz made their first contribution in #1

Full Changelog: https://github.com/QuiiBz/next-international/commits/0.1.0