From 2e3b6c9031225b3e3b3cd3dca3ec8fc4ffc0f4b6 Mon Sep 17 00:00:00 2001 From: mahsem <137205921+mahsem@users.noreply.github.com> Date: Tue, 14 Jan 2025 23:02:24 +0100 Subject: [PATCH] feat: datepicker_swedish (#29161) --- .../frappe/form/controls/datepicker_i18n.js | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/frappe/public/js/frappe/form/controls/datepicker_i18n.js b/frappe/public/js/frappe/form/controls/datepicker_i18n.js index ff0c4ffe50..e8c312d4b2 100644 --- a/frappe/public/js/frappe/form/controls/datepicker_i18n.js +++ b/frappe/public/js/frappe/form/controls/datepicker_i18n.js @@ -177,3 +177,44 @@ import "air-datepicker/dist/js/i18n/datepicker.zh.js"; firstDay: 1, }; })(jQuery); + +(function ($) { + $.fn.datepicker.language["sv"] = { + days: ["Söndag", "Måndag", "Tisdag", "Onsdag", "Torsdag", "Fredag", "Lördag"], + daysShort: ["Sön", "Mån", "Tis", "Ons", "Tor", "Fre", "Lör"], + daysMin: ["Sö", "Må", "Ti", "On", "To", "Fr", "Lö"], + months: [ + "Januari", + "Februari", + "Mars", + "April", + "Maj", + "Juni", + "Juli", + "Augusti", + "September", + "Oktober", + "November", + "December", + ], + monthsShort: [ + "Jan", + "Feb", + "Mar", + "Apr", + "Maj", + "Jun", + "Jul", + "Aug", + "Sep", + "Okt", + "Nov", + "Dec", + ], + today: "Idag", + clear: "Återställ", + dateFormat: "yyyy-mm-dd", + timeFormat: "hh:ii", + firstDay: 1, + }; +})(jQuery);