Denna sida fungerar bättre med Javascript igång.
Startsida
Utforska
Hjälp
Logga in
bubblev
/
swagger-ui
Bevaka
4
Stjärnmärk
0
Förgrening
0
Kod
Ärenden
0
Pull-förfrågningar
0
Släpp
0
Wiki
Aktiviteter
Bläddra i källkod
Update translator.js
when translate word, trim the word first, in case the word doesn't match the key of wordsMap.
bubble
bnupaladin
9 år sedan
förälder
0ad8c74e32
incheckning
c0ea250ddd
1 ändrade filer
med
1 tillägg
och
1 borttagningar
Delad Vy
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
lang/translator.js
+ 1
- 1
lang/translator.js
Visa fil
@@ -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) {
Skriv
Förhandsgranska
Laddar…
Avbryt
Spara