wikimedia / jquery.i18n

🌐 jQuery based internationalization library
GNU General Public License v2.0
704 stars 144 forks source link

#255 the load function does not fail the promise correctly #257

Open ANKITSINGH065 opened 1 year ago

ANKITSINGH065 commented 1 year ago

255 the load function does not fail the promise correctly

handle the 404 exceptions

if (jqxhr.status === 404) { // Ignore 404 exception, because we are handling fallbacks explicitly deferred.resolve(); } else { $.i18n.log( "Error in loading messages from " + url + " Exception: " + exception ); deferred.reject(exception); }

ANKITSINGH065 commented 1 year ago

ok

ANKITSINGH065 commented 1 year ago

Can you merge my changes

winstonsung commented 1 year ago

I am not a maintainer.