Giter VIP home page Giter VIP logo

Comments (4)

jamuhl avatar jamuhl commented on June 20, 2024

just updated the sample to latest versions...can't reproduce there. Could you please provide a sample getting that error?

from jquery-i18next.

jamuhl avatar jamuhl commented on June 20, 2024

what version of i18next are you using? what does your i18n module look like?

from jquery-i18next.

eb1 avatar eb1 commented on June 20, 2024

Ack (smacks head against desk)... that's it! There are two modules to deal with now, instead of the rolled-up i18next.amd.withJQuery. Making sure I referred to both resolved the issue. Thanks!

For those upgrading that come across the same issue -- I'm using require.js and Jquery -- if you're using aliases, include both i18next and jquery-i18next. The first call is to the i18next module, the second is to the jquery-i18next one:

paths: {
    'i18next': 'i18next.min',
    'jquery-i18next': 'jquery-i18next.min'
    ...
},

...and then in the init call:

var i18n = require('i18next'),
    jqueryi18n = require('jquery-i18next');

i18n.init({
    lng: locale,
    debug: true,
    fallbackLng: 'en'
}, function (err, t) {
     // Callback when i18next is finished initializing
     jqueryi18n.init(i18n, $);
});

Thanks again, Jan!

from jquery-i18next.

jamuhl avatar jamuhl commented on June 20, 2024

great you figured out...

from jquery-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.