UNPKG

@automattic/calypso-products

Version:

This module contains information about the various products sold within calypso, such as product slugs, plan intervals, etc.

20 lines 845 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getStorageAddOnDisplayName = getStorageAddOnDisplayName; const i18n_calypso_1 = require("i18n-calypso"); /* translators: Information about a recurring yearly payment made by a subscriber to a site owner. %(productName)s - the title of the purchase in the purchase history views, %(quantity)s - the amount of storage purchased in gigabytes GB - gigabytes */ function getStorageAddOnDisplayName(productName, quantity) { if (quantity) { return (0, i18n_calypso_1.translate)('%(productName)s %(quantity)s GB', { args: { productName, quantity, }, }); } return productName; } //# sourceMappingURL=get-storage-addon-display-name.js.map