pds-dev-kit-web 2.2.207 → 2.2.208
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -28,10 +28,7 @@ var PricingTranslator = /** @class */ (function () {
|
|
|
28
28
|
*/
|
|
29
29
|
PricingTranslator.currency = function (code, opts) {
|
|
30
30
|
var currency = types_1.CURRENCY_MAP[code];
|
|
31
|
-
|
|
32
|
-
return currency.friendlyName(opts.translation);
|
|
33
|
-
}
|
|
34
|
-
return currency.name;
|
|
31
|
+
return (opts === null || opts === void 0 ? void 0 : opts.friendly) ? currency.friendlyName(opts.translation) : currency.name;
|
|
35
32
|
};
|
|
36
33
|
/**
|
|
37
34
|
* 포맷된 금액과 통화 문자열을 결합합니다
|
|
@@ -43,9 +40,13 @@ var PricingTranslator = /** @class */ (function () {
|
|
|
43
40
|
if (PricingTranslator.isCurrencyLeading(PricingTranslator.browserLanguage)) {
|
|
44
41
|
return "".concat(currencyString, " ").concat(formattedAmount);
|
|
45
42
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
43
|
+
// KRW만 friendly 대응
|
|
44
|
+
if (price.currency === types_1.CurrencyCode.KRW) {
|
|
45
|
+
return (opts === null || opts === void 0 ? void 0 : opts.friendly)
|
|
46
|
+
? "".concat(formattedAmount).concat(currencyString)
|
|
47
|
+
: "".concat(formattedAmount, " ").concat(currencyString);
|
|
48
|
+
}
|
|
49
|
+
return "".concat(formattedAmount, " ").concat(currencyString);
|
|
49
50
|
};
|
|
50
51
|
PricingTranslator.browserLanguage = null;
|
|
51
52
|
return PricingTranslator;
|
|
@@ -19,7 +19,7 @@ exports.CURRENCY_MAP = (_a = {},
|
|
|
19
19
|
_a[CurrencyCode.USD] = {
|
|
20
20
|
code: CurrencyCode.USD,
|
|
21
21
|
name: CurrencyCode.USD,
|
|
22
|
-
friendlyName:
|
|
22
|
+
friendlyName: function () { return CurrencyCode.USD; },
|
|
23
23
|
decimalDigits: 2
|
|
24
24
|
},
|
|
25
25
|
_a[CurrencyCode.JPY] = {
|
package/package.json
CHANGED
package/release-note.md
CHANGED