Цей веб-сайт працює краще з JavaScript.
Головна
Огляд
Довідка
Увійти
bubblev
/
swagger-ui
Слідкувати
4
В обрані
0
Форк
0
Код
Проблеми
0
Запити на злиття
0
Релізи
0
Вікі
Активність
Переглянути джерело
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 видалено
Розділений перегляд
Параметри порівняння
Показати статистику
Завантажити патч
Завантажити файл різниці
+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) {
Писати
Попередній перегляд
Завантаження…
Відмінити
Зберегти