1 //! moment.js locale configuration
2 //! locale : Montenegrin (me)
3 //! author : Miodrag Nikač <miodrag@restartit.me> : https://github.com/miodragnikac
5 ;(function (global, factory) {
6 typeof exports === 'object' && typeof module !== 'undefined'
7 && typeof require === 'function' ? factory(require('../moment')) :
8 typeof define === 'function' && define.amd ? define(['moment'], factory) :
10 }(this, function (moment) { 'use strict';
14 words: { //Different grammatical cases
15 m: ['jedan minut', 'jednog minuta'],
16 mm: ['minut', 'minuta', 'minuta'],
17 h: ['jedan sat', 'jednog sata'],
18 hh: ['sat', 'sata', 'sati'],
19 dd: ['dan', 'dana', 'dana'],
20 MM: ['mjesec', 'mjeseca', 'mjeseci'],
21 yy: ['godina', 'godine', 'godina']
23 correctGrammaticalCase: function (number, wordKey) {
24 return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
26 translate: function (number, withoutSuffix, key) {
27 var wordKey = translator.words[key];
28 if (key.length === 1) {
29 return withoutSuffix ? wordKey[0] : wordKey[1];
31 return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
36 var me = moment.defineLocale('me', {
37 months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
38 monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
39 monthsParseExact : true,
40 weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
41 weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
42 weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
43 weekdaysParseExact : true,
49 LLL: 'D. MMMM YYYY H:mm',
50 LLLL: 'dddd, D. MMMM YYYY H:mm'
53 sameDay: '[danas u] LT',
54 nextDay: '[sjutra u] LT',
56 nextWeek: function () {
59 return '[u] [nedjelju] [u] LT';
61 return '[u] [srijedu] [u] LT';
63 return '[u] [subotu] [u] LT';
68 return '[u] dddd [u] LT';
71 lastDay : '[juče u] LT',
72 lastWeek : function () {
74 '[prošle] [nedjelje] [u] LT',
75 '[prošlog] [ponedjeljka] [u] LT',
76 '[prošlog] [utorka] [u] LT',
77 '[prošle] [srijede] [u] LT',
78 '[prošlog] [četvrtka] [u] LT',
79 '[prošlog] [petka] [u] LT',
80 '[prošle] [subote] [u] LT'
82 return lastWeekDays[this.day()];
89 s : 'nekoliko sekundi',
90 m : translator.translate,
91 mm : translator.translate,
92 h : translator.translate,
93 hh : translator.translate,
95 dd : translator.translate,
97 MM : translator.translate,
99 yy : translator.translate
101 ordinalParse: /\d{1,2}\./,
104 dow : 1, // Monday is the first day of the week.
105 doy : 7 // The week that contains Jan 1st is the first week of the year.