question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

reactI18next.withNamespaces is undefined since 10.0.0 (working on 9.0.10)

See original GitHub issue

Describe 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:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

15reactions
jamuhlcommented, Feb 21, 2019

short withNamespaces is now withTranslation

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found