TypeError: props.i18n.changeLanguage is not a function

See original GitHub issue

I’ve updated to i18next": "^13.0.0 and started to get this error… not sure if it’s a languageDetector or i18next-react issue?

TypeError: props.i18n.changeLanguage is not a function
initSSR
node_modules/react-i18next/dist/es/utils.js:46
  43 |   }
  44 | 
  45 |   if (!initializedLanguageOnce && props.initialLanguage) {
> 46 |     props.i18n.changeLanguage(props.initialLanguage);
  47 |     initializedLanguageOnce = true;
  48 |   }
  49 | } // --------------

using typescript: 3.2.2

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
jamuhlcommented, Dec 15, 2018
0reactions
klis87commented, Dec 20, 2018

@jamuhl awesome, thx! btw, I confirm that this issue is not present, everything works fine after adjusting according to migration guide, so I think this can be closed @jadbox ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

i18n.changeLanguage is not a function - Stack Overflow
I get this error. TypeError: i18n.changeLanguage is not a function.How to fix? javascript · reactjs · typescript · react-i18next.
Read more >
[Solved]-i18n.changeLanguage is not a function-Reactjs
a) move changeLanguage like in the code above - but also import i18n from '. ... React JS - Uncaught TypeError: this.props.data.map is...
Read more >
TypeError: props.i18n.changeLanguage is not a function
I've updated to i18next": "^13.0.0 and started to get this error... not sure if it's a languageDetector or i18next-react issue? TypeError: ...
Read more >
How to use the i18next.changeLanguage function in ... - Snyk
Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues...
Read more >
i18next.i18n.changeLanguage JavaScript and Node.js code ...
shared/translations/i18n.js/changeLanguage. // Change translation language export function changeLanguage(lng) { return i18next.changeLanguage(lng); }.
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