1
0
Fork 0

Translation commentary is optional

This commit is contained in:
Alex Kotov 2023-02-18 18:31:04 +04:00
parent 311ff8f356
commit e0e10cf622
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

@ -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>'
)
})