mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: #7586, switchTimeagoLanguage shouldn't discriminate against languages w/o shorthands
This commit is contained in:
@@ -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);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user