mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-23 22:33:17 +00:00
31 lines
1.1 KiB
JavaScript
31 lines
1.1 KiB
JavaScript
|
/**
|
||
|
* @preserve date-and-time.js locale configuration
|
||
|
* @preserve Serbian (sr)
|
||
|
* @preserve It is using moment.js locale configuration as a reference.
|
||
|
*/
|
||
|
(function (global) {
|
||
|
'use strict';
|
||
|
|
||
|
var exec = function (date) {
|
||
|
date.locale('sr', {
|
||
|
res: {
|
||
|
MMMM: ['januar', 'februar', 'mart', 'april', 'maj', 'jun', 'jul', 'avgust', 'septembar', 'oktobar', 'novembar', 'decembar'],
|
||
|
MMM: ['jan.', 'feb.', 'mar.', 'apr.', 'maj', 'jun', 'jul', 'avg.', 'sep.', 'okt.', 'nov.', 'dec.'],
|
||
|
dddd: ['nedelja', 'ponedeljak', 'utorak', 'sreda', 'četvrtak', 'petak', 'subota'],
|
||
|
ddd: ['ned.', 'pon.', 'uto.', 'sre.', 'čet.', 'pet.', 'sub.'],
|
||
|
dd: ['ne', 'po', 'ut', 'sr', 'če', 'pe', 'su']
|
||
|
}
|
||
|
});
|
||
|
};
|
||
|
|
||
|
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));
|