Giter VIP home page Giter VIP logo

Comments (8)

pedrodurek avatar pedrodurek commented on June 5, 2024 1

Ohh never mind, I just got what's happening, I'll see what I can do

from i18next-http-backend.

pedrodurek avatar pedrodurek commented on June 5, 2024 1

Hey @adrai, we have some options:
1 - Implement the augmentation for the i18next-chained-backend plugin, but users would have to import i18next-chained-backend first.

24-08-8jlp2-ijr0n

2 - Remove the augmentation from all backend plugins, and it's up to users to manually implement the augmentation.
3 - Alternatively, we can infer based on Backend passed to the init function, but that I'd cause major breaking changes.

Which one should we choose?

from i18next-http-backend.

adrai avatar adrai commented on June 5, 2024 1

I have no clue... (I'm not a TypeScript user)
Maybe 1) or if not that much of a major break 3) 🤷‍♂️

from i18next-http-backend.

mxsxs2 avatar mxsxs2 commented on June 5, 2024 1

I think option 1 is good enough. If it is in the documentation then most people would understand it.

Option 3 would be good too but I am not sure if it is worth it to introduce a single braking change just for this. Maybe if there are more in the near future?

from i18next-http-backend.

adrai avatar adrai commented on June 5, 2024

//cc @pedrodurek

from i18next-http-backend.

pedrodurek avatar pedrodurek commented on June 5, 2024

Hey @mxsxs2, can you provide an example?

from i18next-http-backend.

mxsxs2 avatar mxsxs2 commented on June 5, 2024

i18next/i18next-browser-languageDetector#235 Will more than likely cause the same issue.

from i18next-http-backend.

yadigarbz avatar yadigarbz commented on June 5, 2024

Hey @adrai, we have some options: 1 - Implement the augmentation for the i18next-chained-backend plugin, but users would have to import i18next-chained-backend first.

24-08-8jlp2-ijr0n 24-08-8jlp2-ijr0n

2 - Remove the augmentation from all backend plugins, and it's up to users to manually implement the augmentation. 3 - Alternatively, we can infer based on Backend passed to the init function, but that I'd cause major breaking changes.

Which one should we choose?

Can't believe this is the solution 😄

from i18next-http-backend.

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.