coderifous / jquery-localize

a jQuery plugin that makes it easy to internationalize your web site.
465 stars 142 forks source link

Ajax complete #39

Closed nikmauro closed 8 years ago

nikmauro commented 10 years ago

Hello it's possible to re-initialize the localize after a request ajax complete or load event?

example not working

$(document).ajaxStop(function(){
    var opts = { language: "en", pathPrefix: "/" };
    $("[data-localize]").localize("shop", opts);
});
LucasVandroux commented 9 years ago

I'm also looking for a way to do so.

coderifous commented 8 years ago

The library itself shouldn't care about when it's invoked. I can't think of any particular reason this would be a problem.