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
- if (opts === null || opts === void 0 ? void 0 : opts.friendly) {
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
- return (opts === null || opts === void 0 ? void 0 : opts.friendly)
47
- ? "".concat(formattedAmount).concat(currencyString)
48
- : "".concat(formattedAmount, " ").concat(currencyString);
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: translateFriendlyName('str_friendly_currency_dollar'),
22
+ friendlyName: function () { return CurrencyCode.USD; },
23
23
  decimalDigits: 2
24
24
  },
25
25
  _a[CurrencyCode.JPY] = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web",
3
- "version": "2.2.207",
3
+ "version": "2.2.208",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
package/release-note.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # PDS-DEV-KIT-WEB Release Notes
2
- ## [v2.2.207]
2
+ ## [v2.2.208]
3
3
  ## daily|https://design.storybook.publ.biz/
4
4
 
5
5
  ### 업데이트 사항
6
- * [PDS-1336] BoxItem state : disabled일 때, 스펙 수정 건 , 레이아웃에 스크롤 추가
6
+ * [FIX] USD인 경우 friendlyName USD currency로 보여주도록 수정