Completed
Push — master ( b895c6...fa6d7b )
by Rain
03:32
created

rainloop/v/0.0.0/app/localization/moment/tzm.js   B

Complexity

Conditions 6
Paths 24

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 6
c 2
b 0
f 0
nc 24
dl 0
loc 6
rs 8.8571
nop 2
1
//! moment.js locale configuration
2
//! locale : Central Atlas Tamazight [tzm]
3
//! author : Abdel Said : https://github.com/abdelsaid
4
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) :
9
   factory(global.moment)
10
}(this, function (moment) { 'use strict';
11
12
13
    var tzm = moment.defineLocale('tzm', {
14
        months : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
15
        monthsShort : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
16
        weekdays : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
17
        weekdaysShort : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
18
        weekdaysMin : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
19
        longDateFormat : {
20
            LT : 'HH:mm',
21
            LTS: 'HH:mm:ss',
22
            L : 'DD/MM/YYYY',
23
            LL : 'D MMMM YYYY',
24
            LLL : 'D MMMM YYYY HH:mm',
25
            LLLL : 'dddd D MMMM YYYY HH:mm'
26
        },
27
        calendar : {
28
            sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
29
            nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
30
            nextWeek: 'dddd [ⴴ] LT',
31
            lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
32
            lastWeek: 'dddd [ⴴ] LT',
33
            sameElse: 'L'
34
        },
35
        relativeTime : {
36
            future : 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
37
            past : 'ⵢⴰⵏ %s',
38
            s : 'ⵉⵎⵉⴽ',
39
            m : 'ⵎⵉⵏⵓⴺ',
40
            mm : '%d ⵎⵉⵏⵓⴺ',
41
            h : 'ⵙⴰⵄⴰ',
42
            hh : '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
43
            d : 'ⴰⵙⵙ',
44
            dd : '%d oⵙⵙⴰⵏ',
45
            M : 'ⴰⵢoⵓⵔ',
46
            MM : '%d ⵉⵢⵢⵉⵔⵏ',
47
            y : 'ⴰⵙⴳⴰⵙ',
48
            yy : '%d ⵉⵙⴳⴰⵙⵏ'
49
        },
50
        week : {
51
            dow : 6, // Saturday is the first day of the week.
52
            doy : 12  // The week that contains Jan 1st is the first week of the year.
53
        }
54
    });
55
56
    return tzm;
57
58
}));