All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
- Handle case where the
locale
param is an array and set cookie expiration to one year (#435) (82e842c)
- Add
localePrefix: 'never'
option for middleware (#388 by @boris-arkenaar) (92ec33a), closes #366
- Forward optional remaining args from Next.js router to wrapped
useRouter
(3ff878c)
- Add
format.list(…)
for formatting conjunctions and disjunctions (#327 by @stefanprobst) (32cda32)
Note: Version bump only for package root
2.14.4 (2023-05-22)
- Move JSDoc for
next/link
(b85b6f5)
- Fix support for older Next.js versions by moving
Link
tonext-intl/link
(#288) (f26ef99), closes #287
Note: Version bump only for package root
Note: Version bump only for package root
- Improve warning for invalid namespace characters (7435335)
- Add
BigInt
support foruseFormatter.format()
by @tacomanator (#222) (a5ded6c)
Note: Version bump only for package root
Note: Version bump only for package root
- Add support for using
next-intl
in theapp
folder with Next.js 13 (see https://next-intl-docs.vercel.app/docs/next-13, #144) (18c94d6)
Note: Version bump only for package root
Note: Version bump only for package root
- Provide
createTranslator
andcreateIntl
by extracting a React-agnostic core library. Thanks to David Brands from Marvia for sponsoring the work on this feature, participating in discussion and providing feedback! (#137) (91f7489)
Note: Version bump only for package root
Note: Version bump only for package root
- Adapt TypeScript validation to work with messages files that only have a single top-level namespace (#115) (cf0b83e)
- Overwrite prerelease (6caf5c4)
2.4.0 (2022-02-08)
Note: Version bump only for package root
Note: Version bump only for package root
Note: Version bump only for package root
- TypeScript improvements: Use enum type for
style
ofNumberFormatOptions
, only allow passing React children to messages rendered witht.rich
and updatetslib
(#63) (d73e935)
Note: Version bump only for package root
Note: Version bump only for package root
Note: Version bump only for package root
Note: Version bump only for package root
Note: Version bump only for package root
- feat!: Use a separate API for rich text formatting to avoid type casting in TypeScript #54 (4c13a64), closes #54
- Instead of using the
t
function for formatting both regular messages and rich text, this function will only work for regular messages now. For rich text you can uset.rich
instead now.
Note: Version bump only for package root
Note: Version bump only for package root
Note: Version bump only for package root
1.4.2 (2021-06-16)
1.4.1 (2021-06-16)
- Use correct version range for use-intl (02c33d3)
1.4.0 (2021-06-16)
Note: Version bump only for package root
Note: Version bump only for package root
Note: Version bump only for package root
Note: Version bump only for package root
Note: Version bump only for package root
Note: Version bump only for package root
Note: Version bump only for package root
Note: Version bump only for package root
1.3.3 (2021-02-09)
- Fix: Limit the function signature to return strings or React elements
- Fix: Apply interval correctly in
useNow({updateInterval: …})
- Feat: Add a global fallback for the
now
parameter offormatRelativeTime
. - Feat: Add
useNow
hook, which can be used in conjunction withformatRelativeTime
to continuously update the result. - Fix: Allow
messages
to be optional on the provider.
- Feat: Added specific types for
DateTimeFormatOptions
.
- Feat: Added support for handling time zones.
- Fix: Use 1.0 version of
use-intl
.
This library is now considered production ready. There are no changes from the previous version.
- Feature: Add global formats (see docs)
- Fix: Export
IntlErrorCode
for JavaScript users.
- Fix: Return a stable function reference for
t
.
- Feature: Add error handling capabilities (see docs)
- Chore: Depend on
use-intl
- BREAKING CHANGE: Rename
NextIntlMessages
toIntlMessages
(TypeScript only)
- Fix: Don't throw for empty messages (
""
).