Translation commentary is optional
This commit is contained in:
parent
311ff8f356
commit
e0e10cf622
1 changed files with 5 additions and 1 deletions
|
@ -8,8 +8,12 @@ $(function() {
|
|||
|
||||
var translations = []
|
||||
data['translations'].forEach(function(item) {
|
||||
var commentary = ''
|
||||
if (item['commentary']) {
|
||||
commentary = ' (' + item['commentary'] + ')'
|
||||
}
|
||||
translations.push(
|
||||
'<li>' + item['translation'] + ' (' + item['commentary'] + ')</li>'
|
||||
'<li>' + item['translation'] + commentary + '</li>'
|
||||
)
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue