Releases: QuiiBz/next-international
Releases · QuiiBz/next-international
0.4.0
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 havecreateI18n()
useI18n
hook now only returns at
function, instead of an object containing botht
andscopedT
functions- A new
useScopedI18n
hook replaces the oldscopedT
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
- @baptisteArno made their first contribution in #48
- @mieszkosabo made their first contribution in #52
Full Changelog: 0.3.6...0.4.0
0.3.6
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
Full Changelog: 0.3.0...0.3.6
0.3.0
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
- @ivanhofer made their first contribution in #26
- @cstrnt made their first contribution in #30
- @EXio4 made their first contribution in #29
Full Changelog: 0.2.0...0.3.0