vendor/assets/javascripts/flatpickr/l10n/vn.js in flatpickr-3.0.7.0 vs vendor/assets/javascripts/flatpickr/l10n/vn.js in flatpickr-4.5.2.0
- old
+ new
@@ -1,17 +1,66 @@
-/* Vietnamese locals for flatpickr */
-var flatpickr = flatpickr || { l10ns: {} };
-flatpickr.l10ns.vn = {};
+/* flatpickr v4.5.2, @license MIT */
+(function (global, factory) {
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
+ (factory((global.vn = {})));
+}(this, (function (exports) { 'use strict';
-flatpickr.l10ns.vn.weekdays = {
- shorthand: ["CN", "T2", "T3", "T4", "T5", "T6", "T7"],
- longhand: ["Chủ nhật", "Thứ hai", "Thứ ba", "Thứ tư", "Thứ năm", "Thứ sáu", "Thứ bảy"]
-};
+ const fp = typeof window !== "undefined" && window.flatpickr !== undefined
+ ? window.flatpickr
+ : {
+ l10ns: {},
+ };
+ const Vietnamese = {
+ weekdays: {
+ shorthand: ["CN", "T2", "T3", "T4", "T5", "T6", "T7"],
+ longhand: [
+ "Chủ nhật",
+ "Thứ hai",
+ "Thứ ba",
+ "Thứ tư",
+ "Thứ năm",
+ "Thứ sáu",
+ "Thứ bảy",
+ ],
+ },
+ months: {
+ shorthand: [
+ "Th1",
+ "Th2",
+ "Th3",
+ "Th4",
+ "Th5",
+ "Th6",
+ "Th7",
+ "Th8",
+ "Th9",
+ "Th10",
+ "Th11",
+ "Th12",
+ ],
+ longhand: [
+ "Tháng một",
+ "Tháng hai",
+ "Tháng ba",
+ "Tháng tư",
+ "Tháng năm",
+ "Tháng sáu",
+ "Tháng bảy",
+ "Tháng tám",
+ "Tháng chín",
+ "Tháng mười",
+ "Tháng 11",
+ "Tháng 12",
+ ],
+ },
+ firstDayOfWeek: 1,
+ };
+ fp.l10ns.vn = Vietnamese;
+ var vn = fp.l10ns;
-flatpickr.l10ns.vn.months = {
- shorthand: ["Th1", "Th2", "Th3", "Th4", "Th5", "Th6", "Th7", "Th8", "Th9", "Th10", "Th11", "Th12"],
- longhand: ["Tháng một", "Tháng hai", "Tháng ba", "Tháng tư", "Tháng năm", "Tháng sáu", "Tháng bảy", "Tháng tám", "Tháng chín", "Tháng mười", "Tháng 11", "Tháng 12"]
-};
+ exports.Vietnamese = Vietnamese;
+ exports.default = vn;
-flatpickr.l10ns.vn.firstDayOfWeek = 1;
+ Object.defineProperty(exports, '__esModule', { value: true });
-if (typeof module !== "undefined") module.exports = flatpickr.l10ns;
\ No newline at end of file
+})));