fixes in translate
This commit is contained in:
parent
bbf086eb38
commit
74f16ead49
1 changed files with 1 additions and 0 deletions
|
|
@ -2,6 +2,7 @@
|
|||
wn._messages = {};
|
||||
wn._ = function(txt) {
|
||||
if(!txt) return txt;
|
||||
if(typeof(txt) != "string") return txt;
|
||||
return wn._messages[txt.replace(/\n/g, "")] || txt;
|
||||
};
|
||||
wn.translate = function(obj, keys) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue