vendor/assets/javascripts/flatpickr/l10n/nl.js in flatpickr-3.0.7.0 vs vendor/assets/javascripts/flatpickr/l10n/nl.js in flatpickr-4.5.2.0

- old
+ new

@@ -1,27 +1,75 @@ -/* Dutch locals for flatpickr */ -var flatpickr = flatpickr || { l10ns: {} }; -flatpickr.l10ns.nl = {}; +/* 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.nl = {}))); +}(this, (function (exports) { 'use strict'; -flatpickr.l10ns.nl.weekdays = { - shorthand: ["zo", "ma", "di", "wo", "do", "vr", "za"], - longhand: ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"] -}; + const fp = typeof window !== "undefined" && window.flatpickr !== undefined + ? window.flatpickr + : { + l10ns: {}, + }; + const Dutch = { + weekdays: { + shorthand: ["zo", "ma", "di", "wo", "do", "vr", "za"], + longhand: [ + "zondag", + "maandag", + "dinsdag", + "woensdag", + "donderdag", + "vrijdag", + "zaterdag", + ], + }, + months: { + shorthand: [ + "jan", + "feb", + "mrt", + "apr", + "mei", + "jun", + "jul", + "aug", + "sept", + "okt", + "nov", + "dec", + ], + longhand: [ + "januari", + "februari", + "maart", + "april", + "mei", + "juni", + "juli", + "augustus", + "september", + "oktober", + "november", + "december", + ], + }, + firstDayOfWeek: 1, + weekAbbreviation: "wk", + rangeSeparator: " tot ", + scrollTitle: "Scroll voor volgende / vorige", + toggleTitle: "Klik om te wisselen", + ordinal: nth => { + if (nth === 1 || nth === 8 || nth >= 20) + return "ste"; + return "de"; + }, + }; + fp.l10ns.nl = Dutch; + var nl = fp.l10ns; -flatpickr.l10ns.nl.months = { - shorthand: ["jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sept", "okt", "nov", "dec"], - longhand: ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december"] -}; + exports.Dutch = Dutch; + exports.default = nl; -flatpickr.l10ns.nl.firstDayOfWeek = 1; -flatpickr.l10ns.nl.weekAbbreviation = "wk"; -flatpickr.l10ns.nl.rangeSeparator = " tot "; -flatpickr.l10ns.nl.scrollTitle = "Scroll voor volgende / vorige"; -flatpickr.l10ns.nl.toggleTitle = "Klik om te wisselen"; + Object.defineProperty(exports, '__esModule', { value: true }); -flatpickr.l10ns.nl.ordinal = function (nth) { - if (nth === 1 || nth === 8 || nth >= 20) return "ste"; - - return "de"; -}; - -if (typeof module !== "undefined") module.exports = flatpickr.l10ns; \ No newline at end of file +})));