mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-21 07:50:37 +01:00
load correct timeago settings on cold load instead of after page load
This commit is contained in:
@@ -103,7 +103,16 @@
|
||||
hasLanguageKey: function (input) {
|
||||
return utils.languageKeyRegex.test(input);
|
||||
},
|
||||
|
||||
userLangToTimeagoCode: function (userLang) {
|
||||
var mapping = {
|
||||
'en-GB': 'en',
|
||||
'en-US': 'en',
|
||||
'fa-IR': 'fa',
|
||||
'pt-BR': 'pt-br',
|
||||
nb: 'no',
|
||||
};
|
||||
return mapping[userLang] || userLang;
|
||||
},
|
||||
// shallow objects merge
|
||||
merge: function () {
|
||||
var result = {};
|
||||
|
||||
Reference in New Issue
Block a user