mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 06:55:46 +01:00
calling translator in parseMessage
This commit is contained in:
@@ -423,7 +423,9 @@ define('forum/chats', ['components', 'string', 'sounds', 'forum/infinitescroll',
|
|||||||
Chats.parseMessage = function(data, callback) {
|
Chats.parseMessage = function(data, callback) {
|
||||||
templates.parse('partials/chat_message' + (Array.isArray(data) ? 's' : ''), {
|
templates.parse('partials/chat_message' + (Array.isArray(data) ? 's' : ''), {
|
||||||
messages: data
|
messages: data
|
||||||
}, callback);
|
}, function(html) {
|
||||||
|
translator.translate(html, callback);
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
function loadMoreRecentChats() {
|
function loadMoreRecentChats() {
|
||||||
|
|||||||
Reference in New Issue
Block a user