Releases: vintl-dev/vintl
Releases · vintl-dev/vintl
v4.4.1
Patch Changes
- e72dd92: Fixed missing global mixin properties when using Volar
v4.4.0
Minor Changes
-
985b5a0: Added Vue types augmentation to type the global mixin properties
Mixin-provided global properties like $t
, $fmt
and $i18n
should be properly typed now.
If you don't use the global mixin, the below augmentation will remove these unusable properties.
declare global {
namespace VueIntlController {
interface Options {
globalMixin: false
}
}
}
v4.3.0
Minor Changes
-
a1e63be: Added defineMessage(s) utility functions
Similar to @formatjs/intl
, they allow you to define messages with correct types. They don't really do anything else besides returning what you passed into them.
v4.2.3
Patch Changes
-
4310818: Unpin FormatJS dependencies
Previously FormatJS dependencies were pinned due to an unexpected breaking changed, this has been resolved since.
v4.2.2
Patch Changes
-
abb0805: Unpin FormatJS dependencies
Previously FormatJS dependencies were pinned because of the unexpected breaking change, but this has since been resolved.
v4.2.1
Patch Changes
-
1a085f1: Downgrade and pin specific FormatJS packages versions
Unfortunately, newer version shipped with export conditions that result in ESM files being imported as CJS ones. We're temporarily downgrading the versions and pin their versions instead of using a range to mitigate the issue.
For more details check out the issue at formatjs/formatjs#4126.
v4.2.0
4.2.0 (2023-05-22)
Features
- pkg: move vue to peerDependencies (a42fa86)
v4.1.2
4.1.2 (2023-04-19)
Bug Fixes
- compatible reportError on errors in event listeners (c3b9e5b)
v4.1.1
4.1.1 (2023-03-29)
Bug Fixes
- composables: use string as injection key (5b43aeb)
v4.1.0
4.1.0 (2023-03-16)
Features
- add useVIntl composable as an alternative to useI18n (5c5f65a)