Git Product home page Git Product logo

Comments (8)

jamuhl avatar jamuhl commented on May 18, 2024

Seems like i18n gets not set on context in your case...which is really odd. Does the error show up in browser or test environment?

from react-i18next.

rpnna avatar rpnna commented on May 18, 2024

Hey, thanks for collaboration.
The error occurs in the browser..

from react-i18next.

jamuhl avatar jamuhl commented on May 18, 2024
const RootedApp = root(App, store);
render(<I18nextProvider i18n={i18n}><RootedApp /></I18nextProvider >, document.getElementById('app'));

seems like context.i18n somehow gets lost - can you try to wrap the I18nextProvider somewhere deeper? no idea right now why the context should not be appended?!? sorry...

from react-i18next.

rpnna avatar rpnna commented on May 18, 2024

yes..the problem seems to be the react-router. I wrapped directly the Home.js component, one level deeper..in Header.js the decorator @translate(['view', 'nav']) currently works..

from react-i18next.

jamuhl avatar jamuhl commented on May 18, 2024

that's strange...keep me uptodate...wondering what happens there...

from react-i18next.

rpnna avatar rpnna commented on May 18, 2024

ok @jamuhl ..thanks again.

from react-i18next.

jamuhl avatar jamuhl commented on May 18, 2024

should be solved in latest version...if still encounter this issue please reopen

from react-i18next.

rpnna avatar rpnna commented on May 18, 2024

Ok, thank you.

from react-i18next.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.