1 // moment.js locale configuration
2 // locale : icelandic (is)
3 // author : Hinrik Örn Sigurðsson : https://github.com/hinrik
6 // Comment out broken wrapper, see T145382
7 /*if (typeof define === 'function' && define.amd) {
8 define(['moment'], factory); // AMD
9 } else if (typeof exports === 'object') {
10 module.exports = factory(require('../moment')); // Node
12 factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
19 } else if (n
% 10 === 1) {
25 function translate(number
, withoutSuffix
, key
, isFuture
) {
26 var result
= number
+ ' ';
29 return withoutSuffix
|| isFuture
? 'nokkrar sekúndur' : 'nokkrum sekúndum';
31 return withoutSuffix
? 'mínúta' : 'mínútu';
34 return result
+ (withoutSuffix
|| isFuture
? 'mínútur' : 'mínútum');
35 } else if (withoutSuffix
) {
36 return result
+ 'mínúta';
38 return result
+ 'mínútu';
41 return result
+ (withoutSuffix
|| isFuture
? 'klukkustundir' : 'klukkustundum');
43 return result
+ 'klukkustund';
48 return isFuture
? 'dag' : 'degi';
52 return result
+ 'dagar';
54 return result
+ (isFuture
? 'daga' : 'dögum');
55 } else if (withoutSuffix
) {
56 return result
+ 'dagur';
58 return result
+ (isFuture
? 'dag' : 'degi');
63 return isFuture
? 'mánuð' : 'mánuði';
67 return result
+ 'mánuðir';
69 return result
+ (isFuture
? 'mánuði' : 'mánuðum');
70 } else if (withoutSuffix
) {
71 return result
+ 'mánuður';
73 return result
+ (isFuture
? 'mánuð' : 'mánuði');
75 return withoutSuffix
|| isFuture
? 'ár' : 'ári';
78 return result
+ (withoutSuffix
|| isFuture
? 'ár' : 'árum');
80 return result
+ (withoutSuffix
|| isFuture
? 'ár' : 'ári');
84 return moment
.defineLocale('is', {
85 months
: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split('_'),
86 monthsShort
: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
87 weekdays
: 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split('_'),
88 weekdaysShort
: 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
89 weekdaysMin
: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
95 LLL
: 'D. MMMM YYYY [kl.] LT',
96 LLLL
: 'dddd, D. MMMM YYYY [kl.] LT'
99 sameDay
: '[í dag kl.] LT',
100 nextDay
: '[á morgun kl.] LT',
101 nextWeek
: 'dddd [kl.] LT',
102 lastDay
: '[í gær kl.] LT',
103 lastWeek
: '[síðasta] dddd [kl.] LT',
108 past
: 'fyrir %s síðan',
121 ordinalParse
: /\d{1,2}\./,
124 dow
: 1, // Monday is the first day of the week.
125 doy
: 4 // The week that contains Jan 4th is the first week of the year.