Releases: gilbsgilbs/babel-plugin-i18next-extract
Releases · gilbsgilbs/babel-plugin-i18next-extract
1.0.0
This release marks the first major version bump for this library. While it does not include a lot of new features or profound reworks, it introduces two breaking changes that warrant attention.
Breaking Changes
- Removed support for JSONv3 (#279):
Following the i18next decision to discontinue JSONv3, this version removes its support as well. Users are strongly encouraged to migrate to JSONv4, which provides more precise translations for plural forms. Refer to the i18next migration guide for detailed instructions. - Removed support for the ICU file format:
Since the ICU format relied on JSONv3-style plural rules, it has also been removed. The feature remained experimental for years and was never fully validated. Contributions to reintroduce ICU support in a more robust manner are welcome. However, given its unclear usage and reliability, I have chosen not to invest time in porting it for this release.
New Features
- Aliased t functions in useTranslation hooks (thanks @masnormen, #278)
- Custom t names for translation hooks (thanks @guiedugt, #276)
Chore
- Updated all dependencies
- Migrated ESLint configuration to their new awful so-called "flat" format
- Officially support for node 22 and 23, drop support for node 21 since EOL was reached
0.10.0
0.9.2
0.9.1
0.9.0
Feat:
- Add support for JSONv4 (#214)
- ℹ️ Note that this is not the default for now as it would be a breaking change. You need to set the
compatibilityJSON
option to"v4"
if you want to use it. JSONv4 will be used by default in 1.0.0.
- ℹ️ Note that this is not the default for now as it would be a breaking change. You need to set the
- Support more plural rules with experimental ICU. (#214)
⚠️ This comes at the cost of a breaking change: you need to upgrade to JSONv4 is you enabledexperimentalICU
. As the feature is explicitly marked as experimental, the major version wasn't bumped.- See https://i18next-extract.netlify.app/#/configuration?id=enableexperimentalicu
- Add ability to exclude files and directories from extraction. (#215)
Patch:
- Don't extract translations from
node_modules
by default. (#215) - Fix missing keys in output when
discardOldKeys
was set totrue
. (#227, thanks @xu3u4)
Chore:
0.9.0-rc.1
0.9.0-rc
Feat:
- Add support for JSONv4 (#214)
- ℹ️ Note that this is not the default for now as it would be a breaking change. You need to set the
compatibilityJSON
option to"v4"
if you want to use it. JSONv4 will be used by default in 1.0.0.
- ℹ️ Note that this is not the default for now as it would be a breaking change. You need to set the
- Support more plural rules with experimental ICU. (#214)
⚠️ This comes at the cost of a breaking change: you need to upgrade to JSONv4 is you enabledexperimentalICU
. As the feature is explicitly marked as experimental, the major version wasn't bumped.- See https://i18next-extract.netlify.app/#/configuration?id=enableexperimentalicu
- Add ability to exclude directories from being scanned. (#215)
Patch:
- Don't extract translations from
node_modules
by default. (#215)
Chore:
0.8.3
Patch:
- Fix default value for experimental ICU support. (#185, thanks @jakubriedl)
0.8.2
0.8.1
Patch:
- Fix local changes being overwritten by plugin when running the plugin in a hot context such as webpack dev server (fixes #78, thanks to @xDisfigure).
- Update dependencies.