reactI18next.withNamespaces is undefined since 10.0.0 (working on 9.0.10)
See original GitHub issueDescribe the bug
After upgrading react-i18next from 9.0.10 to 10.1.2, withNamespaces
, which was a function, is now undefined.
// (...)
import { withNamespaces } from 'react-i18next';
// (...)
console.log(typeof withNamespaces); // undefined
Occurs in react-i18next version Was working with 9.0.10, stopped working with 10.0.0 and is still not working on 10.1.2.
To Reproduce
// (...)
import { withNamespaces } from 'react-i18next';
// (...)
console.log(typeof withNamespaces); // undefined
Expected behaviour
withNamespaces
is a function
Screenshots N/A
OS
- Device: MBP 2018 13"
- Browser: Safari 12.0.3 (14606.4.5)
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
withNamespaces (v9) - react-i18next documentation
The withNamespaces hoc is responsible for passing the t function to your component. It enables all the translation functionality provided by i18next.
Read more >Source - GitHub
12.1.1 - fix for node resolution [1589](https://github.com/i18next/react-i18next/issues/1589) ### 12.1.0 - context-less version of Trans component to be ...
Read more >Withnamespaces' Is Not Exported From 'Reacti18Next'
How to properly internationalize a React application using i18next by ... from 9.0.10 to 10.1.2 withNamespaces which was a function is now undefined....
Read more >react-i18next - NPM Package Overview - Socket.dev
Start using Socket to analyze react-i18next and its 2 dependencies to secure your app ... After: With the trans component just change it...
Read more >next-i18next: Versions - Openbase
Features: Allow client side translation loading (8132efd). Documentation: Link to react-i18next config options (422a0f3). 10.5.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
short
withNamespaces
is nowwithTranslation
v9 -> v10 —> BREAKING
https://react.i18next.com/latest/migrating-v9-to-v10#components-v9-greater-than-v10