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