Translation commentary is optional
This commit is contained in:
parent
311ff8f356
commit
e0e10cf622
|
@ -8,8 +8,12 @@ $(function() {
|
||||||
|
|
||||||
var translations = []
|
var translations = []
|
||||||
data['translations'].forEach(function(item) {
|
data['translations'].forEach(function(item) {
|
||||||
|
var commentary = ''
|
||||||
|
if (item['commentary']) {
|
||||||
|
commentary = ' (' + item['commentary'] + ')'
|
||||||
|
}
|
||||||
translations.push(
|
translations.push(
|
||||||
'<li>' + item['translation'] + ' (' + item['commentary'] + ')</li>'
|
'<li>' + item['translation'] + commentary + '</li>'
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue