Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
Ayuda
Iniciar sesión
bubblev
/
swagger-ui
Seguir
4
Destacar
0
Fork
0
Código
Incidencias
0
Pull Requests
0
Lanzamientos
0
Wiki
Actividad
Explorar el Código
Update translator.js
when translate word, trim the word first, in case the word doesn't match the key of wordsMap.
bubble
bnupaladin
hace 9 años
padre
0ad8c74e32
commit
c0ea250ddd
Se han
modificado 1 ficheros
con
1 adiciones
y
1 borrados
Dividir vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+1
-1
lang/translator.js
+ 1
- 1
lang/translator.js
Ver fichero
@@ -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) {
Escribir
Vista previa
Cargando…
Cancelar
Guardar