Merge branch 'restore-timeago-translation' into 'master'
Restore timeago translations in renderTimeago. See merge request !12590
This commit is contained in:
commit
a704f9e580
|
@ -116,7 +116,7 @@ window.dateFormat = dateFormat;
|
||||||
const timeagoEls = $els || document.querySelectorAll('.js-timeago-render');
|
const timeagoEls = $els || document.querySelectorAll('.js-timeago-render');
|
||||||
|
|
||||||
// timeago.js sets timeouts internally for each timeago value to be updated in real time
|
// timeago.js sets timeouts internally for each timeago value to be updated in real time
|
||||||
gl.utils.getTimeago().render(timeagoEls);
|
gl.utils.getTimeago().render(timeagoEls, lang);
|
||||||
};
|
};
|
||||||
|
|
||||||
w.gl.utils.getDayDifference = function(a, b) {
|
w.gl.utils.getDayDifference = function(a, b) {
|
||||||
|
|
Loading…
Reference in New Issue