Diese Webseite funktioniert besser mit JavaScript.
Startseite
Erkunden
Hilfe
Anmelden
bubblev
/
swagger-ui
Beobachten
4
Favorisieren
0
Fork
0
Code
Issues
0
Pull-Requests
0
Releases
0
Wiki
Aktivität
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
0ad8c74e32
Commit
c0ea250ddd
1 geänderte Dateien
mit
1 neuen
und
1 gelöschten
Zeilen
Geteilte Ansicht
Diff-Optionen
Statistiken anzeigen
Patch-Datei herunterladen
Vergleichs-Datei herunterladen
+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) {
Verfassen
Vorschau
Laden…
Abbrechen
Speichern