@bookipi/htmlgenerator 1.1.45-alpha1 → 1.1.45-alpha2

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.
@@ -12500,8 +12500,24 @@ var formatDate = function formatDate(date, _ref, formatMore, locale) {
12500
12500
  if (timeZone) {
12501
12501
  d = d.tz(timeZone);
12502
12502
  }
12503
+ if (locale === "zh-tw") {
12504
+ return formatDateLong(momentTimezone$1(d).format('YYYY-MM-DD'), locale);
12505
+ }
12503
12506
  return d.format((_ref2 = generateDateFormat(dateFormat) + " " + formatMore || "") === null || _ref2 === void 0 ? void 0 : _ref2.trim());
12504
12507
  };
12508
+ var formatDateLong = function formatDateLong(dateString, locale) {
12509
+ if (locale === void 0) {
12510
+ locale = 'en-US';
12511
+ }
12512
+ var date = new Date(momentTimezone$1(dateString).format(dateString, "YYYY-MM-DD"));
12513
+ var options = {
12514
+ year: 'numeric',
12515
+ month: 'long',
12516
+ day: 'numeric'
12517
+ };
12518
+ var formatter = new Intl.DateTimeFormat(locale, options);
12519
+ return formatter.format(date);
12520
+ };
12505
12521
 
12506
12522
  var getTax1 = function getTax1(item) {
12507
12523
  var enableTax1 = "";