fix: #7586, switchTimeagoLanguage shouldn't discriminate against languages w/o shorthands

v1.18.x
yossizahn 6 years ago committed by Julian Lam
parent d349754d9e
commit 1703233f48

@ -610,9 +610,6 @@
delete adaptor.timeagoShort;
var languageCode = utils.userLangToTimeagoCode(config.userLang);
if (!config.timeagoCodes.includes(languageCode + '-short')) {
languageCode = 'en';
}
jQuery.getScript(config.relative_path + '/assets/vendor/jquery/timeago/locales/jquery.timeago.' + languageCode + '.js').done(callback);
},

Loading…
Cancel
Save