Quellcode durchsuchen

Update translator.js

when translate word, trim the word first, in case the word doesn't match the key of wordsMap.
bubble
bnupaladin vor 9 Jahren
Ursprung
Commit
c0ea250ddd
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. +1
    -1
      lang/translator.js

+ 1
- 1
lang/translator.js Datei anzeigen

@@ -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) {


Laden…
Abbrechen
Speichern