From e0e10cf6220342f6c38b3054d2b401a0a9cfa93e Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Sat, 18 Feb 2023 18:31:04 +0400 Subject: [PATCH] Translation commentary is optional --- bundle.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bundle.js b/bundle.js index c7ab7f0..ef89179 100644 --- a/bundle.js +++ b/bundle.js @@ -8,8 +8,12 @@ $(function() { var translations = [] data['translations'].forEach(function(item) { + var commentary = '' + if (item['commentary']) { + commentary = ' (' + item['commentary'] + ')' + } translations.push( - '
  • ' + item['translation'] + ' (' + item['commentary'] + ')
  • ' + '
  • ' + item['translation'] + commentary + '
  • ' ) })