Code Monkey home page Code Monkey logo

Comments (11)

keul avatar keul commented on May 17, 2024 1

It works! Thanks you 🍻

from react-i18next.

jamuhl avatar jamuhl commented on May 17, 2024 1

if you like open a new issue - requesting it. so you get an update when implemented.

from react-i18next.

keul avatar keul commented on May 17, 2024

BTW: enabling also .use(Cache) from i18next-localstorage-cache prevent the issue, but still I'm wondering if I missing something with wait

from react-i18next.

jamuhl avatar jamuhl commented on May 17, 2024

should work...will have a look after my xmas holidays (9th january)

from react-i18next.

keul avatar keul commented on May 17, 2024

Thanks! This is the demo example I used: https://github.com/keul/react-i18next-demo

from react-i18next.

jamuhl avatar jamuhl commented on May 17, 2024

could you try with:

[email protected]
[email protected]

should now wait for initialization of i18next instance

from react-i18next.

JulianGaibler avatar JulianGaibler commented on May 17, 2024

It's not really fixed if you have to revert to some older version.
It works with export default translate(['defaultNamespace'], { wait: true })(View); but not when changed inside the settings, then this "flickering effect" keeps happening.

from react-i18next.

jamuhl avatar jamuhl commented on May 17, 2024

@JulianWels please check before writing. i18next 4.2.0 was current release when writing this fix. Also works with current 7.0.x. No need to revert. If not working anymore we might have introduced some regression we not yet are aware of...sorry.

What you mean changed inside settings?

from react-i18next.

JulianGaibler avatar JulianGaibler commented on May 17, 2024

Sorry, wasn't aware of that. I'm currently at [email protected] & [email protected] and experience the same issue as described from keul
i18n.init({wait: false,…}) does not work for me. (Which I meant by "settings")

from react-i18next.

jamuhl avatar jamuhl commented on May 17, 2024

can't work...wait is not a setting inside i18next - it's just related to the translate hoc and has to be defined there. Where did you read this works?

By the way i like the idea to make that possible. As we more or less use the wait option more or less in every translated hoc we use.

from react-i18next.

JulianGaibler avatar JulianGaibler commented on May 17, 2024

Oh, I'm sorry, I just assumed that this would be a global setting as well. But, you're right; my fault; wasn't reading the docs right. At least I gave you an idea 😅

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.