upon inspection of the code, i found a few values that are still hard coded
the new setting values are
unitServingWeight : '<span aria-hidden="true">g</span><span class="sr-only"> grams</span>', //this is for the 2018 version
textUKPer100 : 'Per', //this is for the uk version
textUKDefaultServingNameIfEmpty : 'Serving', //this is for the uk version
textDataNotAvailable : 'Data not available',
textAriaLabelIncreaseQuantityArrow : 'Increase the Quantity Arrow',
textAriaLabelDecreaseQuantityArrow : 'Decrease the Quantity Arrow',
textAriaLabelChangeQuantityTextbox : 'Change the Quantity Textbox',
textCalorieDietHtmlLegacyLessThan : 'Less than',
textCalorieDietHtmlLegacyDietary : 'Dietary',
and also to fix an issue with the 2018 label where Amount per serving is hard-coded instead of using the setting textAmountPerServing
on the image below, only Per and Data not available are not yet included in the setting
upon inspection of the code, i found a few values that are still hard coded
the new setting values are
and also to fix an issue with the 2018 label where
Amount per serving
is hard-coded instead of using the settingtextAmountPerServing
on the image below, only
Per
andData not available
are not yet included in the setting