mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-24 01:43:18 +00:00
31 lines
1.1 KiB
JavaScript
31 lines
1.1 KiB
JavaScript
|
/**
|
||
|
* @preserve date-and-time.js locale configuration
|
||
|
* @preserve Danish (DK)
|
||
|
* @preserve It is using moment.js locale configuration as a reference.
|
||
|
*/
|
||
|
(function (global) {
|
||
|
'use strict';
|
||
|
|
||
|
var exec = function (date) {
|
||
|
date.locale('dk', {
|
||
|
res: {
|
||
|
MMMM: ['januar', 'februar', 'marts', 'april', 'maj', 'juni', 'juli', 'august', 'september', 'oktober', 'november', 'december'],
|
||
|
MMM: ['jan', 'feb', 'mar', 'apr', 'maj', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'dec'],
|
||
|
dddd: ['søndag', 'mandag', 'tirsdag', 'onsdag', 'torsdag', 'fredag', 'lørdag'],
|
||
|
ddd: ['søn', 'man', 'tir', 'ons', 'tors', 'fre', 'lør'],
|
||
|
dd: ['sø', 'ma', 'ti', 'on', 'to', 'fr', 'lø']
|
||
|
}
|
||
|
});
|
||
|
};
|
||
|
|
||
|
if (typeof module === 'object' && typeof module.exports === 'object') {
|
||
|
(module.paths || []).push('./');
|
||
|
exec(require('date-and-time'));
|
||
|
} else if (typeof define === 'function' && define.amd) {
|
||
|
define(['date-and-time'], exec);
|
||
|
} else {
|
||
|
exec(global.date);
|
||
|
}
|
||
|
|
||
|
}(this));
|