Discount Ninja
Search
K
Comment on page

Localization

A global variable is available to retrieve localized strings in the browser. This object can be accessed using window.discountNinjaLocalization.
It contains the following properties:
Property path
Default value (English)
drawerCart.quantity.label
Quantity
drawerCart.quantity.inputLabel
Quantity for {{ product }}
drawerCart.quantity.increase
Increase quantity for {{ product }}
drawerCart.quantity.decrease
Decrease quantity for {{ product }}
price.perUnit
per
price.free
Free
price.soldOut
Sold out
price.discountedPriceLabel
Sale price
price.originalPriceLabel
Regular price
price.compareAtPriceLabel
Compare-at price
price.unitPriceLabel
Unit price
price.compliancePriceLabel
Lowest prior price
price.compliancePriceTooltip
Lowest prior price
Last modified 2mo ago