本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
登入
bubblev
/
swagger-ui
關注
4
收藏
0
複製
0
程式碼
問題
0
合併請求
0
版本發佈
0
Wiki
活動
瀏覽代碼
Update translator.js
when translate word, trim the word first, in case the word doesn't match the key of wordsMap.
bubble
bnupaladin
9 年之前
父節點
0ad8c74e32
當前提交
c0ea250ddd
共有
1 個檔案被更改
,包括
1 行新增
和
1 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+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) {
Write
Preview
Loading…
取消
儲存