Skip to content

Commit a91a5db

Browse files
committed
Fixing translation swapping of parameters and returns
1 parent ace8388 commit a91a5db

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/templates/pages/reference/index.hbs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,12 @@ slug: reference/
109109
if (translations[obj] && translations[obj][name]) {
110110
var entry = translations[obj][name];
111111
$('.description-text').html('<p>'+entry.description+'</p>');
112-
$('.returns').html($('.returns').contents()[0].innerHTML + ": " + entry.returns);
112+
$('.returns').html(entry.returns);
113113
$('.params').find('ul').each(function(i) {
114114
if (i < entry.params.length) {
115-
$(this).children().each(function(j){
116-
$(this).children().eq(1).children().eq(1).html(entry.params[i]);
117-
})
115+
$(this).children('li').each(function(j){
116+
$(this).children('.paramtype').html(entry.params[j]);
117+
});
118118
}
119119
});
120120
}

0 commit comments

Comments
 (0)