Patch Changes
This release addresses a critical issue with translation functionality across the core and react packages, introducing better modularity, improved fallback behavior, and robust test coverage.
🆕 New Features
- Exposed additional translation utility functions for external use
- Added support for initializing the consent manager store with a translation configuration
- Introduced a utility to streamline translation configuration preparation
🐛 Bug Fixes
- #207 2d81c9f – fix(core, react): translations not working. Thanks @KayleeWilliams!
- Improved language detection and translation merging logic, ensuring more accurate language selection and fallback behavior
- Fixed an issue where translations were not working in the core and react packages
🧪 Tests
- Added comprehensive tests for translation utilities and the translation hook
- Expanded test coverage to include both
.tsand.tsxfiles
🧹 Refactor
- Moved translation utilities from the react package to core for better reusability
- Simplified translation configuration logic in the consent manager provider for easier maintenance
✨ What's Changed
- feat(docs): re-added theme switcher, added color scheme docs by @KayleeWilliams in #206
- fix(core, react): translations not working by @KayleeWilliams in #207