Skip to content

Instantly share code, notes, and snippets.

@TangChr
Last active February 27, 2021 15:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TangChr/ebc984ee5a55ed15b281 to your computer and use it in GitHub Desktop.
Save TangChr/ebc984ee5a55ed15b281 to your computer and use it in GitHub Desktop.
jQuery: Danish localization of the jQuery UI Datepicker
(function($){
$.ui.datepicker.regional['da'] = {
closeText: 'Luk',
prevText: '<Forrige',
nextText: 'Næste>',
currentText: 'I dag',
monthNames: ['januar','februar','marts','april','maj','juni',
'juli','august','september','oktober','november','december'],
monthNamesShort: ['jan','feb','mar','apr','maj','jun',
'Jul','Aug','sep','okt','nov','dec'],
dayNames: ['søndag','mandag','tirsdag','onsdag','torsdag','fredag','lørdag'],
dayNamesShort: ['søn','man','tir','ons','tor','fre','lør'],
dayNamesMin: ['Sø','ma','ti','on','to','fr','lø'],
weekHeader: 'Uge',
dateFormat: 'd-m-yy',
firstDay: 1,
isRTL: false,
showMonthAfterYear: false,
yearSuffix: ''
};
$.extend($.ui.datepicker.defaults, $.ui.datepicker.regional['da']);
})(jquery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment