浏览代码

Update translator.js

when translate word, trim the word first, in case the word doesn't match the key of wordsMap.
bubble
bnupaladin 9 年前
父节点
当前提交
c0ea250ddd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      lang/translator.js

+ 1
- 1
lang/translator.js 查看文件

@@ -29,7 +29,7 @@ window.SwaggerTranslator = {
},

_tryTranslate: function(word) {
return this._words[word] !== undefined ? this._words[word] : word;
return this._words[$.trim(word)] !== undefined ? this._words[$.trim(word)] : word;
},

learn: function(wordsMap) {


正在加载...
取消
保存