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