mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-04 11:31:23 +01:00
translator.escape
This commit is contained in:
@@ -29,7 +29,11 @@
|
||||
callback(languages[language].loaded[filename]);
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
translator.escape = function(text) {
|
||||
return text.replace(/\[\[([\S]*?)\]\]/g, '\\[\\[$1\\]\\]');
|
||||
};
|
||||
|
||||
translator.getLanguage = function() {
|
||||
return config.defaultLang;
|
||||
|
||||
Reference in New Issue
Block a user