diff --git a/lib/persona.js b/lib/persona.js index 1f3ff90..d227c41 100644 --- a/lib/persona.js +++ b/lib/persona.js @@ -198,7 +198,8 @@ $(document).ready(function() { }); function loadNotifications() { - require(['notifications'], function(notifications) { + const lang = utils.userLangToTimeagoCode(config.userLang); + require(['notifications', 'assets/vendor/jquery/timeago/locales/jquery.timeago.' + lang + '.js'], function(notifications) { notifications.loadNotifications($('#menu [data-section="notifications"] ul')); }); }