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

- old
+ new

@@ -1,24 +1,73 @@ -/* Norwegian locals for flatpickr */ -var flatpickr = flatpickr || { l10ns: {} }; -flatpickr.l10ns.no = {}; +/* 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.no = {}))); +}(this, (function (exports) { 'use strict'; -flatpickr.l10ns.no.weekdays = { - shorthand: ["Søn", "Man", "Tir", "Ons", "Tor", "Fre", "Lør"], - longhand: ["Søndag", "Mandag", "Tirsdag", "Onsdag", "Torsdag", "Fredag", "Lørdag"] -}; + const fp = typeof window !== "undefined" && window.flatpickr !== undefined + ? window.flatpickr + : { + l10ns: {}, + }; + const Norwegian = { + weekdays: { + shorthand: ["Søn", "Man", "Tir", "Ons", "Tor", "Fre", "Lør"], + longhand: [ + "Søndag", + "Mandag", + "Tirsdag", + "Onsdag", + "Torsdag", + "Fredag", + "Lørdag", + ], + }, + months: { + shorthand: [ + "Jan", + "Feb", + "Mar", + "Apr", + "Mai", + "Jun", + "Jul", + "Aug", + "Sep", + "Okt", + "Nov", + "Des", + ], + longhand: [ + "Januar", + "Februar", + "Mars", + "April", + "Mai", + "Juni", + "Juli", + "August", + "September", + "Oktober", + "November", + "Desember", + ], + }, + firstDayOfWeek: 1, + rangeSeparator: " til ", + weekAbbreviation: "Uke", + scrollTitle: "Scroll for å endre", + toggleTitle: "Klikk for å veksle", + ordinal: () => { + return "."; + }, + }; + fp.l10ns.no = Norwegian; + var no = fp.l10ns; -flatpickr.l10ns.no.months = { - shorthand: ["Jan", "Feb", "Mar", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Des"], - longhand: ["Januar", "Februar", "Mars", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Desember"] -}; + exports.Norwegian = Norwegian; + exports.default = no; -flatpickr.l10ns.no.firstDayOfWeek = 1; -flatpickr.l10ns.no.rangeSeparator = " til "; -flatpickr.l10ns.no.weekAbbreviation = "Uke"; -flatpickr.l10ns.no.scrollTitle = "Scroll for å endre"; -flatpickr.l10ns.no.toggleTitle = "Klikk for å veksle"; + Object.defineProperty(exports, '__esModule', { value: true }); -flatpickr.l10ns.no.ordinal = function () { - return "."; -}; -if (typeof module !== "undefined") module.exports = flatpickr.l10ns; \ No newline at end of file +})));