updates moment.js 2.22.1 and vendor moment-timezone 0.5.14

This commit is contained in:
Joffrey JAFFEUX
2018-04-26 09:15:53 +02:00
committed by GitHub
parent 88f5251415
commit 0732c69f73
125 changed files with 14923 additions and 12947 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

3
lib/javascripts/moment_locale/af.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Afrikaans [af]
//! author : Werner Mollentze : https://github.com/wernerm
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -47,6 +45,7 @@ var af = moment.defineLocale('af', {
future : 'oor %s', future : 'oor %s',
past : '%s gelede', past : '%s gelede',
s : '\'n paar sekondes', s : '\'n paar sekondes',
ss : '%d sekondes',
m : '\'n minuut', m : '\'n minuut',
mm : '%d minute', mm : '%d minute',
h : '\'n uur', h : '\'n uur',

3
lib/javascripts/moment_locale/ar-dz.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Arabic (Algeria) [ar-dz]
//! author : Noureddine LOUAHEDJ : https://github.com/noureddineme
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -37,6 +35,7 @@ var arDz = moment.defineLocale('ar-dz', {
future : 'في %s', future : 'في %s',
past : 'منذ %s', past : 'منذ %s',
s : 'ثوان', s : 'ثوان',
ss : '%d ثانية',
m : 'دقيقة', m : 'دقيقة',
mm : '%d دقائق', mm : '%d دقائق',
h : 'ساعة', h : 'ساعة',

3
lib/javascripts/moment_locale/ar-kw.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Arabic (Kuwait) [ar-kw]
//! author : Nusret Parlak: https://github.com/nusretparlak
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -37,6 +35,7 @@ var arKw = moment.defineLocale('ar-kw', {
future : 'في %s', future : 'في %s',
past : 'منذ %s', past : 'منذ %s',
s : 'ثوان', s : 'ثوان',
ss : '%d ثانية',
m : 'دقيقة', m : 'دقيقة',
mm : '%d دقائق', mm : '%d دقائق',
h : 'ساعة', h : 'ساعة',

17
lib/javascripts/moment_locale/ar-ly.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Arabic (Lybia) [ar-ly]
//! author : Ali Hmer: https://github.com/kikoanis
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -21,19 +19,16 @@ var symbolMap = {
'8': '8', '8': '8',
'9': '9', '9': '9',
'0': '0' '0': '0'
}; }, pluralForm = function (n) {
var pluralForm = function (n) {
return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5; return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
}; }, plurals = {
var plurals = {
s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'], s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'], m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'], h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'], d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'], M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام'] y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
}; }, pluralize = function (u) {
var pluralize = function (u) {
return function (number, withoutSuffix, string, isFuture) { return function (number, withoutSuffix, string, isFuture) {
var f = pluralForm(number), var f = pluralForm(number),
str = plurals[u][pluralForm(number)]; str = plurals[u][pluralForm(number)];
@ -42,8 +37,7 @@ var pluralize = function (u) {
} }
return str.replace(/%d/i, number); return str.replace(/%d/i, number);
}; };
}; }, months = [
var months = [
'يناير', 'يناير',
'فبراير', 'فبراير',
'مارس', 'مارس',
@ -96,6 +90,7 @@ var arLy = moment.defineLocale('ar-ly', {
future : 'بعد %s', future : 'بعد %s',
past : 'منذ %s', past : 'منذ %s',
s : pluralize('s'), s : pluralize('s'),
ss : pluralize('s'),
m : pluralize('m'), m : pluralize('m'),
mm : pluralize('m'), mm : pluralize('m'),
h : pluralize('h'), h : pluralize('h'),
@ -108,7 +103,7 @@ var arLy = moment.defineLocale('ar-ly', {
yy : pluralize('y') yy : pluralize('y')
}, },
preparse: function (string) { preparse: function (string) {
return string.replace(/\u200f/g, '').replace(/،/g, ','); return string.replace(/،/g, ',');
}, },
postformat: function (string) { postformat: function (string) {
return string.replace(/\d/g, function (match) { return string.replace(/\d/g, function (match) {

4
lib/javascripts/moment_locale/ar-ma.js Normal file → Executable file
View File

@ -1,7 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Arabic (Morocco) [ar-ma]
//! author : ElFadili Yassine : https://github.com/ElFadiliY
//! author : Abdel Said : https://github.com/abdelsaid
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -38,6 +35,7 @@ var arMa = moment.defineLocale('ar-ma', {
future : 'في %s', future : 'في %s',
past : 'منذ %s', past : 'منذ %s',
s : 'ثوان', s : 'ثوان',
ss : '%d ثانية',
m : 'دقيقة', m : 'دقيقة',
mm : '%d دقائق', mm : '%d دقائق',
h : 'ساعة', h : 'ساعة',

6
lib/javascripts/moment_locale/ar-sa.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Arabic (Saudi Arabia) [ar-sa]
//! author : Suhail Alkowaileet : https://github.com/xsoh
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -21,8 +19,7 @@ var symbolMap = {
'8': '٨', '8': '٨',
'9': '٩', '9': '٩',
'0': '٠' '0': '٠'
}; }, numberMap = {
var numberMap = {
'١': '1', '١': '1',
'٢': '2', '٢': '2',
'٣': '3', '٣': '3',
@ -73,6 +70,7 @@ var arSa = moment.defineLocale('ar-sa', {
future : 'في %s', future : 'في %s',
past : 'منذ %s', past : 'منذ %s',
s : 'ثوان', s : 'ثوان',
ss : '%d ثانية',
m : 'دقيقة', m : 'دقيقة',
mm : '%d دقائق', mm : '%d دقائق',
h : 'ساعة', h : 'ساعة',

3
lib/javascripts/moment_locale/ar-tn.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Arabic (Tunisia) [ar-tn]
//! author : Nader Toukabri : https://github.com/naderio
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -37,6 +35,7 @@ var arTn = moment.defineLocale('ar-tn', {
future: 'في %s', future: 'في %s',
past: 'منذ %s', past: 'منذ %s',
s: 'ثوان', s: 'ثوان',
ss : '%d ثانية',
m: 'دقيقة', m: 'دقيقة',
mm: '%d دقائق', mm: '%d دقائق',
h: 'ساعة', h: 'ساعة',

22
lib/javascripts/moment_locale/ar.js Normal file → Executable file
View File

@ -1,8 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Arabic [ar]
//! author : Abdel Said: https://github.com/abdelsaid
//! author : Ahmed Elkhatib
//! author : forabi https://github.com/forabi
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -23,8 +19,7 @@ var symbolMap = {
'8': '٨', '8': '٨',
'9': '٩', '9': '٩',
'0': '٠' '0': '٠'
}; }, numberMap = {
var numberMap = {
'١': '1', '١': '1',
'٢': '2', '٢': '2',
'٣': '3', '٣': '3',
@ -35,19 +30,16 @@ var numberMap = {
'٨': '8', '٨': '8',
'٩': '9', '٩': '9',
'٠': '0' '٠': '0'
}; }, pluralForm = function (n) {
var pluralForm = function (n) {
return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5; return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
}; }, plurals = {
var plurals = {
s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'], s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'], m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'], h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'], d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'], M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام'] y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
}; }, pluralize = function (u) {
var pluralize = function (u) {
return function (number, withoutSuffix, string, isFuture) { return function (number, withoutSuffix, string, isFuture) {
var f = pluralForm(number), var f = pluralForm(number),
str = plurals[u][pluralForm(number)]; str = plurals[u][pluralForm(number)];
@ -56,8 +48,7 @@ var pluralize = function (u) {
} }
return str.replace(/%d/i, number); return str.replace(/%d/i, number);
}; };
}; }, months = [
var months = [
'يناير', 'يناير',
'فبراير', 'فبراير',
'مارس', 'مارس',
@ -110,6 +101,7 @@ var ar = moment.defineLocale('ar', {
future : 'بعد %s', future : 'بعد %s',
past : 'منذ %s', past : 'منذ %s',
s : pluralize('s'), s : pluralize('s'),
ss : pluralize('s'),
m : pluralize('m'), m : pluralize('m'),
mm : pluralize('m'), mm : pluralize('m'),
h : pluralize('h'), h : pluralize('h'),
@ -122,7 +114,7 @@ var ar = moment.defineLocale('ar', {
yy : pluralize('y') yy : pluralize('y')
}, },
preparse: function (string) { preparse: function (string) {
return string.replace(/\u200f/g, '').replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) { return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
return numberMap[match]; return numberMap[match];
}).replace(/،/g, ','); }).replace(/،/g, ',');
}, },

3
lib/javascripts/moment_locale/az.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Azerbaijani [az]
//! author : topchiyev : https://github.com/topchiyev
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -58,6 +56,7 @@ var az = moment.defineLocale('az', {
future : '%s sonra', future : '%s sonra',
past : '%s əvvəl', past : '%s əvvəl',
s : 'birneçə saniyyə', s : 'birneçə saniyyə',
ss : '%d saniyə',
m : 'bir dəqiqə', m : 'bir dəqiqə',
mm : '%d dəqiqə', mm : '%d dəqiqə',
h : 'bir saat', h : 'bir saat',

5
lib/javascripts/moment_locale/be.js Normal file → Executable file
View File

@ -1,8 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Belarusian [be]
//! author : Dmitry Demidov : https://github.com/demidov91
//! author: Praleska: http://praleska.pro/
//! Author : Menelion Elensúle : https://github.com/Oire
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -18,6 +14,7 @@ function plural(word, num) {
} }
function relativeTimeWithPlural(number, withoutSuffix, key) { function relativeTimeWithPlural(number, withoutSuffix, key) {
var format = { var format = {
'ss': withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
'mm': withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін', 'mm': withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
'hh': withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін', 'hh': withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
'dd': 'дзень_дні_дзён', 'dd': 'дзень_дні_дзён',

3
lib/javascripts/moment_locale/bg.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Bulgarian [bg]
//! author : Krasen Borisov : https://github.com/kraz
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -48,6 +46,7 @@ var bg = moment.defineLocale('bg', {
future : 'след %s', future : 'след %s',
past : 'преди %s', past : 'преди %s',
s : 'няколко секунди', s : 'няколко секунди',
ss : '%d секунди',
m : 'минута', m : 'минута',
mm : '%d минути', mm : '%d минути',
h : 'час', h : 'час',

View File

@ -0,0 +1,57 @@
//! moment.js locale configuration
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
var bm = moment.defineLocale('bm', {
months : 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split('_'),
monthsShort : 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),
weekdays : 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),
weekdaysShort : 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),
weekdaysMin : 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),
longDateFormat : {
LT : 'HH:mm',
LTS : 'HH:mm:ss',
L : 'DD/MM/YYYY',
LL : 'MMMM [tile] D [san] YYYY',
LLL : 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
LLLL : 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm'
},
calendar : {
sameDay : '[Bi lɛrɛ] LT',
nextDay : '[Sini lɛrɛ] LT',
nextWeek : 'dddd [don lɛrɛ] LT',
lastDay : '[Kunu lɛrɛ] LT',
lastWeek : 'dddd [tɛmɛnen lɛrɛ] LT',
sameElse : 'L'
},
relativeTime : {
future : '%s kɔnɔ',
past : 'a bɛ %s bɔ',
s : 'sanga dama dama',
ss : 'sekondi %d',
m : 'miniti kelen',
mm : 'miniti %d',
h : 'lɛrɛ kelen',
hh : 'lɛrɛ %d',
d : 'tile kelen',
dd : 'tile %d',
M : 'kalo kelen',
MM : 'kalo %d',
y : 'san kelen',
yy : 'san %d'
},
week : {
dow : 1, // Monday is the first day of the week.
doy : 4 // The week that contains Jan 4th is the first week of the year.
}
});
return bm;
})));

7
lib/javascripts/moment_locale/bn.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Bengali [bn]
//! author : Kaushik Gandhi : https://github.com/kaushikgandhi
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -21,8 +19,8 @@ var symbolMap = {
'8': '৮', '8': '৮',
'9': '৯', '9': '৯',
'0': '০' '0': '০'
}; },
var numberMap = { numberMap = {
'১': '1', '১': '1',
'২': '2', '২': '2',
'৩': '3', '৩': '3',
@ -61,6 +59,7 @@ var bn = moment.defineLocale('bn', {
future : '%s পরে', future : '%s পরে',
past : '%s আগে', past : '%s আগে',
s : 'কয়েক সেকেন্ড', s : 'কয়েক সেকেন্ড',
ss : '%d সেকেন্ড',
m : 'এক মিনিট', m : 'এক মিনিট',
mm : '%d মিনিট', mm : '%d মিনিট',
h : 'এক ঘন্টা', h : 'এক ঘন্টা',

7
lib/javascripts/moment_locale/bo.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Tibetan [bo]
//! author : Thupten N. Chakrishar : https://github.com/vajradog
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -21,8 +19,8 @@ var symbolMap = {
'8': '༨', '8': '༨',
'9': '༩', '9': '༩',
'0': '༠' '0': '༠'
}; },
var numberMap = { numberMap = {
'༡': '1', '༡': '1',
'༢': '2', '༢': '2',
'༣': '3', '༣': '3',
@ -61,6 +59,7 @@ var bo = moment.defineLocale('bo', {
future : '%s ལ་', future : '%s ལ་',
past : '%s སྔན་ལ', past : '%s སྔན་ལ',
s : 'ལམ་སང', s : 'ལམ་སང',
ss : '%d སྐར་ཆ།',
m : 'སྐར་མ་གཅིག', m : 'སྐར་མ་གཅིག',
mm : '%d སྐར་མ', mm : '%d སྐར་མ',
h : 'ཆུ་ཚོད་གཅིག', h : 'ཆུ་ཚོད་གཅིག',

3
lib/javascripts/moment_locale/br.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Breton [br]
//! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -81,6 +79,7 @@ var br = moment.defineLocale('br', {
future : 'a-benn %s', future : 'a-benn %s',
past : '%s \'zo', past : '%s \'zo',
s : 'un nebeud segondennoù', s : 'un nebeud segondennoù',
ss : '%d eilenn',
m : 'ur vunutenn', m : 'ur vunutenn',
mm : relativeTimeWithMutation, mm : relativeTimeWithMutation,
h : 'un eur', h : 'un eur',

13
lib/javascripts/moment_locale/bs.js Normal file → Executable file
View File

@ -1,7 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Bosnian [bs]
//! author : Nedim Cholich : https://github.com/frontyard
//! based on (hr) translation by Bojan Marković
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -14,6 +11,15 @@
function translate(number, withoutSuffix, key) { function translate(number, withoutSuffix, key) {
var result = number + ' '; var result = number + ' ';
switch (key) { switch (key) {
case 'ss':
if (number === 1) {
result += 'sekunda';
} else if (number === 2 || number === 3 || number === 4) {
result += 'sekunde';
} else {
result += 'sekundi';
}
return result;
case 'm': case 'm':
return withoutSuffix ? 'jedna minuta' : 'jedne minute'; return withoutSuffix ? 'jedna minuta' : 'jedne minute';
case 'mm': case 'mm':
@ -119,6 +125,7 @@ var bs = moment.defineLocale('bs', {
future : 'za %s', future : 'za %s',
past : 'prije %s', past : 'prije %s',
s : 'par sekundi', s : 'par sekundi',
ss : translate,
m : translate, m : translate,
mm : translate, mm : translate,
h : translate, h : translate,

11
lib/javascripts/moment_locale/ca.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Catalan [ca]
//! author : Juan G. Hurtado : https://github.com/juanghurtado
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -20,17 +18,17 @@ var ca = moment.defineLocale('ca', {
monthsParseExact : true, monthsParseExact : true,
weekdays : 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'), weekdays : 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'),
weekdaysShort : 'dg._dl._dt._dc._dj._dv._ds.'.split('_'), weekdaysShort : 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
weekdaysMin : 'Dg_Dl_Dt_Dc_Dj_Dv_Ds'.split('_'), weekdaysMin : 'dg_dl_dt_dc_dj_dv_ds'.split('_'),
weekdaysParseExact : true, weekdaysParseExact : true,
longDateFormat : { longDateFormat : {
LT : 'H:mm', LT : 'H:mm',
LTS : 'H:mm:ss', LTS : 'H:mm:ss',
L : 'DD/MM/YYYY', L : 'DD/MM/YYYY',
LL : '[el] D MMMM [de] YYYY', LL : 'D MMMM [de] YYYY',
ll : 'D MMM YYYY', ll : 'D MMM YYYY',
LLL : '[el] D MMMM [de] YYYY [a les] H:mm', LLL : 'D MMMM [de] YYYY [a les] H:mm',
lll : 'D MMM YYYY, H:mm', lll : 'D MMM YYYY, H:mm',
LLLL : '[el] dddd D MMMM [de] YYYY [a les] H:mm', LLLL : 'dddd D MMMM [de] YYYY [a les] H:mm',
llll : 'ddd D MMM YYYY, H:mm' llll : 'ddd D MMM YYYY, H:mm'
}, },
calendar : { calendar : {
@ -55,6 +53,7 @@ var ca = moment.defineLocale('ca', {
future : 'd\'aquí %s', future : 'd\'aquí %s',
past : 'fa %s', past : 'fa %s',
s : 'uns segons', s : 'uns segons',
ss : '%d segons',
m : 'un minut', m : 'un minut',
mm : '%d minuts', mm : '%d minuts',
h : 'una hora', h : 'una hora',

14
lib/javascripts/moment_locale/cs.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Czech [cs]
//! author : petrbela : https://github.com/petrbela
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -10,8 +8,8 @@
}(this, (function (moment) { 'use strict'; }(this, (function (moment) { 'use strict';
var months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_'); var months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_'),
var monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'); monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_');
function plural(n) { function plural(n) {
return (n > 1) && (n < 5) && (~~(n / 10) !== 1); return (n > 1) && (n < 5) && (~~(n / 10) !== 1);
} }
@ -20,6 +18,13 @@ function translate(number, withoutSuffix, key, isFuture) {
switch (key) { switch (key) {
case 's': // a few seconds / in a few seconds / a few seconds ago case 's': // a few seconds / in a few seconds / a few seconds ago
return (withoutSuffix || isFuture) ? 'pár sekund' : 'pár sekundami'; return (withoutSuffix || isFuture) ? 'pár sekund' : 'pár sekundami';
case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
if (withoutSuffix || isFuture) {
return result + (plural(number) ? 'sekundy' : 'sekund');
} else {
return result + 'sekundami';
}
break;
case 'm': // a minute / in a minute / a minute ago case 'm': // a minute / in a minute / a minute ago
return withoutSuffix ? 'minuta' : (isFuture ? 'minutu' : 'minutou'); return withoutSuffix ? 'minuta' : (isFuture ? 'minutu' : 'minutou');
case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
@ -148,6 +153,7 @@ var cs = moment.defineLocale('cs', {
future : 'za %s', future : 'za %s',
past : 'před %s', past : 'před %s',
s : translate, s : translate,
ss : translate,
m : translate, m : translate,
mm : translate, mm : translate,
h : translate, h : translate,

3
lib/javascripts/moment_locale/cv.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Chuvash [cv]
//! author : Anatoly Mironov : https://github.com/mirontoli
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -39,6 +37,7 @@ var cv = moment.defineLocale('cv', {
}, },
past : '%s каялла', past : '%s каялла',
s : 'пӗр-ик ҫеккунт', s : 'пӗр-ик ҫеккунт',
ss : '%d ҫеккунт',
m : 'пӗр минут', m : 'пӗр минут',
mm : '%d минут', mm : '%d минут',
h : 'пӗр сехет', h : 'пӗр сехет',

4
lib/javascripts/moment_locale/cy.js Normal file → Executable file
View File

@ -1,7 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Welsh [cy]
//! author : Robert Allen : https://github.com/robgallen
//! author : https://github.com/ryangreaves
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -39,6 +36,7 @@ var cy = moment.defineLocale('cy', {
future: 'mewn %s', future: 'mewn %s',
past: '%s yn ôl', past: '%s yn ôl',
s: 'ychydig eiliadau', s: 'ychydig eiliadau',
ss: '%d eiliad',
m: 'munud', m: 'munud',
mm: '%d munud', mm: '%d munud',
h: 'awr', h: 'awr',

5
lib/javascripts/moment_locale/da.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Danish [da]
//! author : Ulrik Nielsen : https://github.com/mrbase
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -19,7 +17,7 @@ var da = moment.defineLocale('da', {
longDateFormat : { longDateFormat : {
LT : 'HH:mm', LT : 'HH:mm',
LTS : 'HH:mm:ss', LTS : 'HH:mm:ss',
L : 'DD/MM/YYYY', L : 'DD.MM.YYYY',
LL : 'D. MMMM YYYY', LL : 'D. MMMM YYYY',
LLL : 'D. MMMM YYYY HH:mm', LLL : 'D. MMMM YYYY HH:mm',
LLLL : 'dddd [d.] D. MMMM YYYY [kl.] HH:mm' LLLL : 'dddd [d.] D. MMMM YYYY [kl.] HH:mm'
@ -36,6 +34,7 @@ var da = moment.defineLocale('da', {
future : 'om %s', future : 'om %s',
past : '%s siden', past : '%s siden',
s : 'få sekunder', s : 'få sekunder',
ss : '%d sekunder',
m : 'et minut', m : 'et minut',
mm : '%d minutter', mm : '%d minutter',
h : 'en time', h : 'en time',

8
lib/javascripts/moment_locale/de-at.js Normal file → Executable file
View File

@ -1,9 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : German (Austria) [de-at]
//! author : lluchs : https://github.com/lluchs
//! author: Menelion Elensúle: https://github.com/Oire
//! author : Martin Groller : https://github.com/MadMG
//! author : Mikolaj Dadela : https://github.com/mik01aj
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -29,7 +24,7 @@ function processRelativeTime(number, withoutSuffix, key, isFuture) {
var deAt = moment.defineLocale('de-at', { var deAt = moment.defineLocale('de-at', {
months : 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'), months : 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
monthsShort : 'Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'), monthsShort : 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
monthsParseExact : true, monthsParseExact : true,
weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'), weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'), weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
@ -55,6 +50,7 @@ var deAt = moment.defineLocale('de-at', {
future : 'in %s', future : 'in %s',
past : 'vor %s', past : 'vor %s',
s : 'ein paar Sekunden', s : 'ein paar Sekunden',
ss : '%d Sekunden',
m : processRelativeTime, m : processRelativeTime,
mm : '%d Minuten', mm : '%d Minuten',
h : processRelativeTime, h : processRelativeTime,

15
lib/javascripts/moment_locale/de-ch.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : German (Switzerland) [de-ch]
//! author : sschueller : https://github.com/sschueller
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -10,8 +8,6 @@
}(this, (function (moment) { 'use strict'; }(this, (function (moment) { 'use strict';
// based on: https://www.bk.admin.ch/dokumentation/sprachen/04915/05016/index.html?lang=de#
function processRelativeTime(number, withoutSuffix, key, isFuture) { function processRelativeTime(number, withoutSuffix, key, isFuture) {
var format = { var format = {
'm': ['eine Minute', 'einer Minute'], 'm': ['eine Minute', 'einer Minute'],
@ -28,19 +24,19 @@ function processRelativeTime(number, withoutSuffix, key, isFuture) {
var deCh = moment.defineLocale('de-ch', { var deCh = moment.defineLocale('de-ch', {
months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'), months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
monthsShort : 'Jan._Febr._März_April_Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.'.split('_'), monthsShort : 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
monthsParseExact : true, monthsParseExact : true,
weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'), weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
weekdaysShort : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), weekdaysShort : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
weekdaysParseExact : true, weekdaysParseExact : true,
longDateFormat : { longDateFormat : {
LT: 'HH.mm', LT: 'HH:mm',
LTS: 'HH.mm.ss', LTS: 'HH:mm:ss',
L : 'DD.MM.YYYY', L : 'DD.MM.YYYY',
LL : 'D. MMMM YYYY', LL : 'D. MMMM YYYY',
LLL : 'D. MMMM YYYY HH.mm', LLL : 'D. MMMM YYYY HH:mm',
LLLL : 'dddd, D. MMMM YYYY HH.mm' LLLL : 'dddd, D. MMMM YYYY HH:mm'
}, },
calendar : { calendar : {
sameDay: '[heute um] LT [Uhr]', sameDay: '[heute um] LT [Uhr]',
@ -54,6 +50,7 @@ var deCh = moment.defineLocale('de-ch', {
future : 'in %s', future : 'in %s',
past : 'vor %s', past : 'vor %s',
s : 'ein paar Sekunden', s : 'ein paar Sekunden',
ss : '%d Sekunden',
m : processRelativeTime, m : processRelativeTime,
mm : '%d Minuten', mm : '%d Minuten',
h : processRelativeTime, h : processRelativeTime,

7
lib/javascripts/moment_locale/de.js Normal file → Executable file
View File

@ -1,8 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : German [de]
//! author : lluchs : https://github.com/lluchs
//! author: Menelion Elensúle: https://github.com/Oire
//! author : Mikolaj Dadela : https://github.com/mik01aj
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -28,7 +24,7 @@ function processRelativeTime(number, withoutSuffix, key, isFuture) {
var de = moment.defineLocale('de', { var de = moment.defineLocale('de', {
months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'), months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
monthsShort : 'Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'), monthsShort : 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
monthsParseExact : true, monthsParseExact : true,
weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'), weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'), weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
@ -54,6 +50,7 @@ var de = moment.defineLocale('de', {
future : 'in %s', future : 'in %s',
past : 'vor %s', past : 'vor %s',
s : 'ein paar Sekunden', s : 'ein paar Sekunden',
ss : '%d Sekunden',
m : processRelativeTime, m : processRelativeTime,
mm : '%d Minuten', mm : '%d Minuten',
h : processRelativeTime, h : processRelativeTime,

6
lib/javascripts/moment_locale/dv.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Maldivian [dv]
//! author : Jawish Hameed : https://github.com/jawish
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -23,8 +21,7 @@ var months = [
'އޮކްޓޯބަރު', 'އޮކްޓޯބަރު',
'ނޮވެމްބަރު', 'ނޮވެމްބަރު',
'ޑިސެމްބަރު' 'ޑިސެމްބަރު'
]; ], weekdays = [
var weekdays = [
'އާދިއްތަ', 'އާދިއްތަ',
'ހޯމަ', 'ހޯމަ',
'އަންގާރަ', 'އަންގާރަ',
@ -72,6 +69,7 @@ var dv = moment.defineLocale('dv', {
future : 'ތެރޭގައި %s', future : 'ތެރޭގައި %s',
past : 'ކުރިން %s', past : 'ކުރިން %s',
s : 'ސިކުންތުކޮޅެއް', s : 'ސިކުންތުކޮޅެއް',
ss : 'd% ސިކުންތު',
m : 'މިނިޓެއް', m : 'މިނިޓެއް',
mm : 'މިނިޓު %d', mm : 'މިނިޓު %d',
h : 'ގަޑިއިރެއް', h : 'ގަޑިއިރެއް',

5
lib/javascripts/moment_locale/el.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Greek [el]
//! author : Aggelos Karalias : https://github.com/mehiel
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -20,7 +18,7 @@ var el = moment.defineLocale('el', {
months : function (momentToFormat, format) { months : function (momentToFormat, format) {
if (!momentToFormat) { if (!momentToFormat) {
return this._monthsNominativeEl; return this._monthsNominativeEl;
} else if (/D/.test(format.substring(0, format.indexOf('MMMM')))) { // if there is a day number before 'MMMM' } else if (typeof format === 'string' && /D/.test(format.substring(0, format.indexOf('MMMM')))) { // if there is a day number before 'MMMM'
return this._monthsGenitiveEl[momentToFormat.month()]; return this._monthsGenitiveEl[momentToFormat.month()];
} else { } else {
return this._monthsNominativeEl[momentToFormat.month()]; return this._monthsNominativeEl[momentToFormat.month()];
@ -76,6 +74,7 @@ var el = moment.defineLocale('el', {
future : 'σε %s', future : 'σε %s',
past : '%s πριν', past : '%s πριν',
s : 'λίγα δευτερόλεπτα', s : 'λίγα δευτερόλεπτα',
ss : '%d δευτερόλεπτα',
m : 'ένα λεπτό', m : 'ένα λεπτό',
mm : '%d λεπτά', mm : '%d λεπτά',
h : 'μία ώρα', h : 'μία ώρα',

3
lib/javascripts/moment_locale/en-au.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : English (Australia) [en-au]
//! author : Jared Morse : https://github.com/jarcoal
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -36,6 +34,7 @@ var enAu = moment.defineLocale('en-au', {
future : 'in %s', future : 'in %s',
past : '%s ago', past : '%s ago',
s : 'a few seconds', s : 'a few seconds',
ss : '%d seconds',
m : 'a minute', m : 'a minute',
mm : '%d minutes', mm : '%d minutes',
h : 'an hour', h : 'an hour',

3
lib/javascripts/moment_locale/en-ca.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : English (Canada) [en-ca]
//! author : Jonathan Abourbih : https://github.com/jonbca
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -36,6 +34,7 @@ var enCa = moment.defineLocale('en-ca', {
future : 'in %s', future : 'in %s',
past : '%s ago', past : '%s ago',
s : 'a few seconds', s : 'a few seconds',
ss : '%d seconds',
m : 'a minute', m : 'a minute',
mm : '%d minutes', mm : '%d minutes',
h : 'an hour', h : 'an hour',

3
lib/javascripts/moment_locale/en-gb.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : English (United Kingdom) [en-gb]
//! author : Chris Gedrim : https://github.com/chrisgedrim
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -36,6 +34,7 @@ var enGb = moment.defineLocale('en-gb', {
future : 'in %s', future : 'in %s',
past : '%s ago', past : '%s ago',
s : 'a few seconds', s : 'a few seconds',
ss : '%d seconds',
m : 'a minute', m : 'a minute',
mm : '%d minutes', mm : '%d minutes',
h : 'an hour', h : 'an hour',

3
lib/javascripts/moment_locale/en-ie.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : English (Ireland) [en-ie]
//! author : Chris Cartlidge : https://github.com/chriscartlidge
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -36,6 +34,7 @@ var enIe = moment.defineLocale('en-ie', {
future : 'in %s', future : 'in %s',
past : '%s ago', past : '%s ago',
s : 'a few seconds', s : 'a few seconds',
ss : '%d seconds',
m : 'a minute', m : 'a minute',
mm : '%d minutes', mm : '%d minutes',
h : 'an hour', h : 'an hour',

View File

@ -0,0 +1,61 @@
//! moment.js locale configuration
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
var enIl = moment.defineLocale('en-il', {
months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
longDateFormat : {
LT : 'HH:mm',
LTS : 'HH:mm:ss',
L : 'DD/MM/YYYY',
LL : 'D MMMM YYYY',
LLL : 'D MMMM YYYY HH:mm',
LLLL : 'dddd, D MMMM YYYY HH:mm'
},
calendar : {
sameDay : '[Today at] LT',
nextDay : '[Tomorrow at] LT',
nextWeek : 'dddd [at] LT',
lastDay : '[Yesterday at] LT',
lastWeek : '[Last] dddd [at] LT',
sameElse : 'L'
},
relativeTime : {
future : 'in %s',
past : '%s ago',
s : 'a few seconds',
m : 'a minute',
mm : '%d minutes',
h : 'an hour',
hh : '%d hours',
d : 'a day',
dd : '%d days',
M : 'a month',
MM : '%d months',
y : 'a year',
yy : '%d years'
},
dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
ordinal : function (number) {
var b = number % 10,
output = (~~(number % 100 / 10) === 1) ? 'th' :
(b === 1) ? 'st' :
(b === 2) ? 'nd' :
(b === 3) ? 'rd' : 'th';
return number + output;
}
});
return enIl;
})));

3
lib/javascripts/moment_locale/en-nz.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : English (New Zealand) [en-nz]
//! author : Luke McGregor : https://github.com/lukemcgregor
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -36,6 +34,7 @@ var enNz = moment.defineLocale('en-nz', {
future : 'in %s', future : 'in %s',
past : '%s ago', past : '%s ago',
s : 'a few seconds', s : 'a few seconds',
ss : '%d seconds',
m : 'a minute', m : 'a minute',
mm : '%d minutes', mm : '%d minutes',
h : 'an hour', h : 'an hour',

5
lib/javascripts/moment_locale/eo.js Normal file → Executable file
View File

@ -1,8 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Esperanto [eo]
//! author : Colin Dean : https://github.com/colindean
//! author : Mia Nordentoft Imperatori : https://github.com/miestasmia
//! comment : miestasmia corrected the translation by colindean
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -49,6 +45,7 @@ var eo = moment.defineLocale('eo', {
future : 'post %s', future : 'post %s',
past : 'antaŭ %s', past : 'antaŭ %s',
s : 'sekundoj', s : 'sekundoj',
ss : '%d sekundoj',
m : 'minuto', m : 'minuto',
mm : '%d minutoj', mm : '%d minutoj',
h : 'horo', h : 'horo',

17
lib/javascripts/moment_locale/es-do.js Normal file → Executable file
View File

@ -1,5 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Spanish (Dominican Republic) [es-do]
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -9,8 +8,11 @@
}(this, (function (moment) { 'use strict'; }(this, (function (moment) { 'use strict';
var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'); var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
var monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'); monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
var monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i];
var monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
var esDo = moment.defineLocale('es-do', { var esDo = moment.defineLocale('es-do', {
months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'), months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
@ -23,7 +25,13 @@ var esDo = moment.defineLocale('es-do', {
return monthsShortDot[m.month()]; return monthsShortDot[m.month()];
} }
}, },
monthsParseExact : true, monthsRegex: monthsRegex,
monthsShortRegex: monthsRegex,
monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
monthsParse: monthsParse,
longMonthsParse: monthsParse,
shortMonthsParse: monthsParse,
weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'), weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
@ -58,6 +66,7 @@ var esDo = moment.defineLocale('es-do', {
future : 'en %s', future : 'en %s',
past : 'hace %s', past : 'hace %s',
s : 'unos segundos', s : 'unos segundos',
ss : '%d segundos',
m : 'un minuto', m : 'un minuto',
mm : '%d minutos', mm : '%d minutos',
h : 'una hora', h : 'una hora',

View File

@ -0,0 +1,82 @@
//! moment.js locale configuration
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
var esUs = moment.defineLocale('es-us', {
months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
monthsShort : function (m, format) {
if (!m) {
return monthsShortDot;
} else if (/-MMM-/.test(format)) {
return monthsShort[m.month()];
} else {
return monthsShortDot[m.month()];
}
},
monthsParseExact : true,
weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
weekdaysParseExact : true,
longDateFormat : {
LT : 'h:mm A',
LTS : 'h:mm:ss A',
L : 'MM/DD/YYYY',
LL : 'MMMM [de] D [de] YYYY',
LLL : 'MMMM [de] D [de] YYYY h:mm A',
LLLL : 'dddd, MMMM [de] D [de] YYYY h:mm A'
},
calendar : {
sameDay : function () {
return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
},
nextDay : function () {
return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
},
nextWeek : function () {
return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
},
lastDay : function () {
return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
},
lastWeek : function () {
return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
},
sameElse : 'L'
},
relativeTime : {
future : 'en %s',
past : 'hace %s',
s : 'unos segundos',
ss : '%d segundos',
m : 'un minuto',
mm : '%d minutos',
h : 'una hora',
hh : '%d horas',
d : 'un día',
dd : '%d días',
M : 'un mes',
MM : '%d meses',
y : 'un año',
yy : '%d años'
},
dayOfMonthOrdinalParse : /\d{1,2}º/,
ordinal : '%dº',
week : {
dow : 0, // Sunday is the first day of the week.
doy : 6 // The week that contains Jan 1st is the first week of the year.
}
});
return esUs;
})));

18
lib/javascripts/moment_locale/es.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Spanish [es]
//! author : Julio Napurí : https://github.com/julionc
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -10,8 +8,11 @@
}(this, (function (moment) { 'use strict'; }(this, (function (moment) { 'use strict';
var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'); var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
var monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'); monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
var monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i];
var monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
var es = moment.defineLocale('es', { var es = moment.defineLocale('es', {
months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'), months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
@ -24,7 +25,13 @@ var es = moment.defineLocale('es', {
return monthsShortDot[m.month()]; return monthsShortDot[m.month()];
} }
}, },
monthsParseExact : true, monthsRegex : monthsRegex,
monthsShortRegex : monthsRegex,
monthsStrictRegex : /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
monthsShortStrictRegex : /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
monthsParse : monthsParse,
longMonthsParse : monthsParse,
shortMonthsParse : monthsParse,
weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'), weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
@ -59,6 +66,7 @@ var es = moment.defineLocale('es', {
future : 'en %s', future : 'en %s',
past : 'hace %s', past : 'hace %s',
s : 'unos segundos', s : 'unos segundos',
ss : '%d segundos',
m : 'un minuto', m : 'un minuto',
mm : '%d minutos', mm : '%d minutos',
h : 'una hora', h : 'una hora',

5
lib/javascripts/moment_locale/et.js Normal file → Executable file
View File

@ -1,7 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Estonian [et]
//! author : Henry Kehlmann : https://github.com/madhenry
//! improvements : Illimar Tambek : https://github.com/ragulka
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -14,6 +11,7 @@
function processRelativeTime(number, withoutSuffix, key, isFuture) { function processRelativeTime(number, withoutSuffix, key, isFuture) {
var format = { var format = {
's' : ['mõne sekundi', 'mõni sekund', 'paar sekundit'], 's' : ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
'ss': [number + 'sekundi', number + 'sekundit'],
'm' : ['ühe minuti', 'üks minut'], 'm' : ['ühe minuti', 'üks minut'],
'mm': [number + ' minuti', number + ' minutit'], 'mm': [number + ' minuti', number + ' minutit'],
'h' : ['ühe tunni', 'tund aega', 'üks tund'], 'h' : ['ühe tunni', 'tund aega', 'üks tund'],
@ -56,6 +54,7 @@ var et = moment.defineLocale('et', {
future : '%s pärast', future : '%s pärast',
past : '%s tagasi', past : '%s tagasi',
s : processRelativeTime, s : processRelativeTime,
ss : processRelativeTime,
m : processRelativeTime, m : processRelativeTime,
mm : processRelativeTime, mm : processRelativeTime,
h : processRelativeTime, h : processRelativeTime,

3
lib/javascripts/moment_locale/eu.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Basque [eu]
//! author : Eneko Illarramendi : https://github.com/eillarra
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -42,6 +40,7 @@ var eu = moment.defineLocale('eu', {
future : '%s barru', future : '%s barru',
past : 'duela %s', past : 'duela %s',
s : 'segundo batzuk', s : 'segundo batzuk',
ss : '%d segundo',
m : 'minutu bat', m : 'minutu bat',
mm : '%d minutu', mm : '%d minutu',
h : 'ordu bat', h : 'ordu bat',

6
lib/javascripts/moment_locale/fa.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Persian [fa]
//! author : Ebrahim Byagowi : https://github.com/ebraminio
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -21,8 +19,7 @@ var symbolMap = {
'8': '۸', '8': '۸',
'9': '۹', '9': '۹',
'0': '۰' '0': '۰'
}; }, numberMap = {
var numberMap = {
'۱': '1', '۱': '1',
'۲': '2', '۲': '2',
'۳': '3', '۳': '3',
@ -73,6 +70,7 @@ var fa = moment.defineLocale('fa', {
future : 'در %s', future : 'در %s',
past : '%s پیش', past : '%s پیش',
s : 'چند ثانیه', s : 'چند ثانیه',
ss : 'ثانیه d%',
m : 'یک دقیقه', m : 'یک دقیقه',
mm : '%d دقیقه', mm : '%d دقیقه',
h : 'یک ساعت', h : 'یک ساعت',

9
lib/javascripts/moment_locale/fi.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Finnish [fi]
//! author : Tarmo Aidantausta : https://github.com/bleadof
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -10,8 +8,8 @@
}(this, (function (moment) { 'use strict'; }(this, (function (moment) { 'use strict';
var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(' '); var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(' '),
var numbersFuture = [ numbersFuture = [
'nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden', 'kuuden', 'nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden', 'kuuden',
numbersPast[7], numbersPast[8], numbersPast[9] numbersPast[7], numbersPast[8], numbersPast[9]
]; ];
@ -20,6 +18,8 @@ function translate(number, withoutSuffix, key, isFuture) {
switch (key) { switch (key) {
case 's': case 's':
return isFuture ? 'muutaman sekunnin' : 'muutama sekunti'; return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';
case 'ss':
return isFuture ? 'sekunnin' : 'sekuntia';
case 'm': case 'm':
return isFuture ? 'minuutin' : 'minuutti'; return isFuture ? 'minuutin' : 'minuutti';
case 'mm': case 'mm':
@ -83,6 +83,7 @@ var fi = moment.defineLocale('fi', {
future : '%s päästä', future : '%s päästä',
past : '%s sitten', past : '%s sitten',
s : translate, s : translate,
ss : translate,
m : translate, m : translate,
mm : translate, mm : translate,
h : translate, h : translate,

3
lib/javascripts/moment_locale/fo.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Faroese [fo]
//! author : Ragnar Johannesen : https://github.com/ragnar123
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -36,6 +34,7 @@ var fo = moment.defineLocale('fo', {
future : 'um %s', future : 'um %s',
past : '%s síðani', past : '%s síðani',
s : 'fá sekund', s : 'fá sekund',
ss : '%d sekundir',
m : 'ein minutt', m : 'ein minutt',
mm : '%d minuttir', mm : '%d minuttir',
h : 'ein tími', h : 'ein tími',

5
lib/javascripts/moment_locale/fr-ca.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : French (Canada) [fr-ca]
//! author : Jonathan Abourbih : https://github.com/jonbca
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -16,7 +14,7 @@ var frCa = moment.defineLocale('fr-ca', {
monthsParseExact : true, monthsParseExact : true,
weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'), weekdaysMin : 'di_lu_ma_me_je_ve_sa'.split('_'),
weekdaysParseExact : true, weekdaysParseExact : true,
longDateFormat : { longDateFormat : {
LT : 'HH:mm', LT : 'HH:mm',
@ -38,6 +36,7 @@ var frCa = moment.defineLocale('fr-ca', {
future : 'dans %s', future : 'dans %s',
past : 'il y a %s', past : 'il y a %s',
s : 'quelques secondes', s : 'quelques secondes',
ss : '%d secondes',
m : 'une minute', m : 'une minute',
mm : '%d minutes', mm : '%d minutes',
h : 'une heure', h : 'une heure',

5
lib/javascripts/moment_locale/fr-ch.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : French (Switzerland) [fr-ch]
//! author : Gaspard Bucher : https://github.com/gaspard
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -16,7 +14,7 @@ var frCh = moment.defineLocale('fr-ch', {
monthsParseExact : true, monthsParseExact : true,
weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'), weekdaysMin : 'di_lu_ma_me_je_ve_sa'.split('_'),
weekdaysParseExact : true, weekdaysParseExact : true,
longDateFormat : { longDateFormat : {
LT : 'HH:mm', LT : 'HH:mm',
@ -38,6 +36,7 @@ var frCh = moment.defineLocale('fr-ch', {
future : 'dans %s', future : 'dans %s',
past : 'il y a %s', past : 'il y a %s',
s : 'quelques secondes', s : 'quelques secondes',
ss : '%d secondes',
m : 'une minute', m : 'une minute',
mm : '%d minutes', mm : '%d minutes',
h : 'une heure', h : 'une heure',

5
lib/javascripts/moment_locale/fr.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : French [fr]
//! author : John Fischer : https://github.com/jfroffice
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -16,7 +14,7 @@ var fr = moment.defineLocale('fr', {
monthsParseExact : true, monthsParseExact : true,
weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'), weekdaysMin : 'di_lu_ma_me_je_ve_sa'.split('_'),
weekdaysParseExact : true, weekdaysParseExact : true,
longDateFormat : { longDateFormat : {
LT : 'HH:mm', LT : 'HH:mm',
@ -38,6 +36,7 @@ var fr = moment.defineLocale('fr', {
future : 'dans %s', future : 'dans %s',
past : 'il y a %s', past : 'il y a %s',
s : 'quelques secondes', s : 'quelques secondes',
ss : '%d secondes',
m : 'une minute', m : 'une minute',
mm : '%d minutes', mm : '%d minutes',
h : 'une heure', h : 'une heure',

7
lib/javascripts/moment_locale/fy.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Frisian [fy]
//! author : Robin van der Vliet : https://github.com/robin0van0der0v
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -10,8 +8,8 @@
}(this, (function (moment) { 'use strict'; }(this, (function (moment) { 'use strict';
var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'); var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'),
var monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'); monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');
var fy = moment.defineLocale('fy', { var fy = moment.defineLocale('fy', {
months : 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'), months : 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'),
@ -49,6 +47,7 @@ var fy = moment.defineLocale('fy', {
future : 'oer %s', future : 'oer %s',
past : '%s lyn', past : '%s lyn',
s : 'in pear sekonden', s : 'in pear sekonden',
ss : '%d sekonden',
m : 'ien minút', m : 'ien minút',
mm : '%d minuten', mm : '%d minuten',
h : 'ien oere', h : 'ien oere',

3
lib/javascripts/moment_locale/gd.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Scottish Gaelic [gd]
//! author : Jon Ashdown : https://github.com/jonashdown
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -49,6 +47,7 @@ var gd = moment.defineLocale('gd', {
future : 'ann an %s', future : 'ann an %s',
past : 'bho chionn %s', past : 'bho chionn %s',
s : 'beagan diogan', s : 'beagan diogan',
ss : '%d diogan',
m : 'mionaid', m : 'mionaid',
mm : '%d mionaidean', mm : '%d mionaidean',
h : 'uair', h : 'uair',

3
lib/javascripts/moment_locale/gl.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Galician [gl]
//! author : Juan G. Hurtado : https://github.com/juanghurtado
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -53,6 +51,7 @@ var gl = moment.defineLocale('gl', {
}, },
past : 'hai %s', past : 'hai %s',
s : 'uns segundos', s : 'uns segundos',
ss : '%d segundos',
m : 'un minuto', m : 'un minuto',
mm : '%d minutos', mm : '%d minutos',
h : 'unha hora', h : 'unha hora',

6
lib/javascripts/moment_locale/gom-latn.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Konkani Latin script [gom-latn]
//! author : The Discoverer : https://github.com/WikiDiscoverer
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -13,10 +11,11 @@
function processRelativeTime(number, withoutSuffix, key, isFuture) { function processRelativeTime(number, withoutSuffix, key, isFuture) {
var format = { var format = {
's': ['thodde secondanim', 'thodde second'], 's': ['thodde secondanim', 'thodde second'],
'ss': [number + ' secondanim', number + ' second'],
'm': ['eka mintan', 'ek minute'], 'm': ['eka mintan', 'ek minute'],
'mm': [number + ' mintanim', number + ' mintam'], 'mm': [number + ' mintanim', number + ' mintam'],
'h': ['eka horan', 'ek hor'], 'h': ['eka horan', 'ek hor'],
'hh': [number + ' horanim', number + ' hor'], 'hh': [number + ' horanim', number + ' horam'],
'd': ['eka disan', 'ek dis'], 'd': ['eka disan', 'ek dis'],
'dd': [number + ' disanim', number + ' dis'], 'dd': [number + ' disanim', number + ' dis'],
'M': ['eka mhoinean', 'ek mhoino'], 'M': ['eka mhoinean', 'ek mhoino'],
@ -56,6 +55,7 @@ var gomLatn = moment.defineLocale('gom-latn', {
future : '%s', future : '%s',
past : '%s adim', past : '%s adim',
s : processRelativeTime, s : processRelativeTime,
ss : processRelativeTime,
m : processRelativeTime, m : processRelativeTime,
mm : processRelativeTime, mm : processRelativeTime,
h : processRelativeTime, h : processRelativeTime,

View File

@ -0,0 +1,123 @@
//! moment.js locale configuration
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
var symbolMap = {
'1': '૧',
'2': '૨',
'3': '૩',
'4': '૪',
'5': '૫',
'6': '૬',
'7': '૭',
'8': '૮',
'9': '૯',
'0': '૦'
},
numberMap = {
'૧': '1',
'૨': '2',
'૩': '3',
'૪': '4',
'૫': '5',
'૬': '6',
'૭': '7',
'૮': '8',
'૯': '9',
'૦': '0'
};
var gu = moment.defineLocale('gu', {
months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split('_'),
monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split('_'),
monthsParseExact: true,
weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split('_'),
weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'),
weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'),
longDateFormat: {
LT: 'A h:mm વાગ્યે',
LTS: 'A h:mm:ss વાગ્યે',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY, A h:mm વાગ્યે',
LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે'
},
calendar: {
sameDay: '[આજ] LT',
nextDay: '[કાલે] LT',
nextWeek: 'dddd, LT',
lastDay: '[ગઇકાલે] LT',
lastWeek: '[પાછલા] dddd, LT',
sameElse: 'L'
},
relativeTime: {
future: '%s મા',
past: '%s પેહલા',
s: 'અમુક પળો',
ss: '%d સેકંડ',
m: 'એક મિનિટ',
mm: '%d મિનિટ',
h: 'એક કલાક',
hh: '%d કલાક',
d: 'એક દિવસ',
dd: '%d દિવસ',
M: 'એક મહિનો',
MM: '%d મહિનો',
y: 'એક વર્ષ',
yy: '%d વર્ષ'
},
preparse: function (string) {
return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) {
return numberMap[match];
});
},
postformat: function (string) {
return string.replace(/\d/g, function (match) {
return symbolMap[match];
});
},
// Gujarati notation for meridiems are quite fuzzy in practice. While there exists
// a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati.
meridiemParse: /રાત|બપોર|સવાર|સાંજ/,
meridiemHour: function (hour, meridiem) {
if (hour === 12) {
hour = 0;
}
if (meridiem === 'રાત') {
return hour < 4 ? hour : hour + 12;
} else if (meridiem === 'સવાર') {
return hour;
} else if (meridiem === 'બપોર') {
return hour >= 10 ? hour : hour + 12;
} else if (meridiem === 'સાંજ') {
return hour + 12;
}
},
meridiem: function (hour, minute, isLower) {
if (hour < 4) {
return 'રાત';
} else if (hour < 10) {
return 'સવાર';
} else if (hour < 17) {
return 'બપોર';
} else if (hour < 20) {
return 'સાંજ';
} else {
return 'રાત';
}
},
week: {
dow: 0, // Sunday is the first day of the week.
doy: 6 // The week that contains Jan 1st is the first week of the year.
}
});
return gu;
})));

5
lib/javascripts/moment_locale/he.js Normal file → Executable file
View File

@ -1,8 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Hebrew [he]
//! author : Tomer Cohen : https://github.com/tomer
//! author : Moshe Simantov : https://github.com/DevelopmentIL
//! author : Tal Ater : https://github.com/TalAter
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -42,6 +38,7 @@ var he = moment.defineLocale('he', {
future : 'בעוד %s', future : 'בעוד %s',
past : 'לפני %s', past : 'לפני %s',
s : 'מספר שניות', s : 'מספר שניות',
ss : '%d שניות',
m : 'דקה', m : 'דקה',
mm : '%d דקות', mm : '%d דקות',
h : 'שעה', h : 'שעה',

7
lib/javascripts/moment_locale/hi.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Hindi [hi]
//! author : Mayank Singhal : https://github.com/mayanksinghal
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -21,8 +19,8 @@ var symbolMap = {
'8': '८', '8': '८',
'9': '९', '9': '९',
'0': '०' '0': '०'
}; },
var numberMap = { numberMap = {
'१': '1', '१': '1',
'२': '2', '२': '2',
'३': '3', '३': '3',
@ -62,6 +60,7 @@ var hi = moment.defineLocale('hi', {
future : '%s में', future : '%s में',
past : '%s पहले', past : '%s पहले',
s : 'कुछ ही क्षण', s : 'कुछ ही क्षण',
ss : '%d सेकंड',
m : 'एक मिनट', m : 'एक मिनट',
mm : '%d मिनट', mm : '%d मिनट',
h : 'एक घंटा', h : 'एक घंटा',

12
lib/javascripts/moment_locale/hr.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Croatian [hr]
//! author : Bojan Marković : https://github.com/bmarkovic
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -13,6 +11,15 @@
function translate(number, withoutSuffix, key) { function translate(number, withoutSuffix, key) {
var result = number + ' '; var result = number + ' ';
switch (key) { switch (key) {
case 'ss':
if (number === 1) {
result += 'sekunda';
} else if (number === 2 || number === 3 || number === 4) {
result += 'sekunde';
} else {
result += 'sekundi';
}
return result;
case 'm': case 'm':
return withoutSuffix ? 'jedna minuta' : 'jedne minute'; return withoutSuffix ? 'jedna minuta' : 'jedne minute';
case 'mm': case 'mm':
@ -121,6 +128,7 @@ var hr = moment.defineLocale('hr', {
future : 'za %s', future : 'za %s',
past : 'prije %s', past : 'prije %s',
s : 'par sekundi', s : 'par sekundi',
ss : translate,
m : translate, m : translate,
mm : translate, mm : translate,
h : translate, h : translate,

8
lib/javascripts/moment_locale/hu.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Hungarian [hu]
//! author : Adam Brunner : https://github.com/adambrunner
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -12,11 +10,12 @@
var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' '); var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');
function translate(number, withoutSuffix, key, isFuture) { function translate(number, withoutSuffix, key, isFuture) {
var num = number, var num = number;
suffix;
switch (key) { switch (key) {
case 's': case 's':
return (isFuture || withoutSuffix) ? 'néhány másodperc' : 'néhány másodperce'; return (isFuture || withoutSuffix) ? 'néhány másodperc' : 'néhány másodperce';
case 'ss':
return num + (isFuture || withoutSuffix) ? ' másodperc' : ' másodperce';
case 'm': case 'm':
return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce'); return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
case 'mm': case 'mm':
@ -85,6 +84,7 @@ var hu = moment.defineLocale('hu', {
future : '%s múlva', future : '%s múlva',
past : '%s', past : '%s',
s : translate, s : translate,
ss : translate,
m : translate, m : translate,
mm : translate, mm : translate,
h : translate, h : translate,

3
lib/javascripts/moment_locale/hy-am.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Armenian [hy-am]
//! author : Armendarabyan : https://github.com/armendarabyan
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -43,6 +41,7 @@ var hyAm = moment.defineLocale('hy-am', {
future : '%s հետո', future : '%s հետո',
past : '%s առաջ', past : '%s առաջ',
s : 'մի քանի վայրկյան', s : 'մի քանի վայրկյան',
ss : '%d վայրկյան',
m : 'րոպե', m : 'րոպե',
mm : '%d րոպե', mm : '%d րոպե',
h : 'ժամ', h : 'ժամ',

6
lib/javascripts/moment_locale/id.js Normal file → Executable file
View File

@ -1,7 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Indonesian [id]
//! author : Mohammad Satrio Utomo : https://github.com/tyok
//! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -13,7 +10,7 @@
var id = moment.defineLocale('id', { var id = moment.defineLocale('id', {
months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'), months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'),
monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des'.split('_'), monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'),
weekdays : 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'), weekdays : 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
weekdaysShort : 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'), weekdaysShort : 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'), weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
@ -61,6 +58,7 @@ var id = moment.defineLocale('id', {
future : 'dalam %s', future : 'dalam %s',
past : '%s yang lalu', past : '%s yang lalu',
s : 'beberapa detik', s : 'beberapa detik',
ss : '%d detik',
m : 'semenit', m : 'semenit',
mm : '%d menit', mm : '%d menit',
h : 'sejam', h : 'sejam',

8
lib/javascripts/moment_locale/is.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Icelandic [is]
//! author : Hinrik Örn Sigurðsson : https://github.com/hinrik
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -23,6 +21,11 @@ function translate(number, withoutSuffix, key, isFuture) {
switch (key) { switch (key) {
case 's': case 's':
return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum'; return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum';
case 'ss':
if (plural(number)) {
return result + (withoutSuffix || isFuture ? 'sekúndur' : 'sekúndum');
}
return result + 'sekúnda';
case 'm': case 'm':
return withoutSuffix ? 'mínúta' : 'mínútu'; return withoutSuffix ? 'mínúta' : 'mínútu';
case 'mm': case 'mm':
@ -103,6 +106,7 @@ var is = moment.defineLocale('is', {
future : 'eftir %s', future : 'eftir %s',
past : 'fyrir %s síðan', past : 'fyrir %s síðan',
s : translate, s : translate,
ss : translate,
m : translate, m : translate,
mm : translate, mm : translate,
h : 'klukkustund', h : 'klukkustund',

6
lib/javascripts/moment_locale/it.js Normal file → Executable file
View File

@ -1,7 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Italian [it]
//! author : Lorenzo : https://github.com/aliem
//! author: Mattia Larentis: https://github.com/nostalgiaz
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -23,7 +20,7 @@ var it = moment.defineLocale('it', {
L : 'DD/MM/YYYY', L : 'DD/MM/YYYY',
LL : 'D MMMM YYYY', LL : 'D MMMM YYYY',
LLL : 'D MMMM YYYY HH:mm', LLL : 'D MMMM YYYY HH:mm',
LLLL : 'dddd, D MMMM YYYY HH:mm' LLLL : 'dddd D MMMM YYYY HH:mm'
}, },
calendar : { calendar : {
sameDay: '[Oggi alle] LT', sameDay: '[Oggi alle] LT',
@ -46,6 +43,7 @@ var it = moment.defineLocale('it', {
}, },
past : '%s fa', past : '%s fa',
s : 'alcuni secondi', s : 'alcuni secondi',
ss : '%d secondi',
m : 'un minuto', m : 'un minuto',
mm : '%d minuti', mm : '%d minuti',
h : 'un\'ora', h : 'un\'ora',

23
lib/javascripts/moment_locale/ja.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Japanese [ja]
//! author : LI Long : https://github.com/baryon
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -22,11 +20,11 @@ var ja = moment.defineLocale('ja', {
L : 'YYYY/MM/DD', L : 'YYYY/MM/DD',
LL : 'YYYY年M月D日', LL : 'YYYY年M月D日',
LLL : 'YYYY年M月D日 HH:mm', LLL : 'YYYY年M月D日 HH:mm',
LLLL : 'YYYY年M月D日 HH:mm dddd', LLLL : 'YYYY年M月D日 dddd HH:mm',
l : 'YYYY/MM/DD', l : 'YYYY/MM/DD',
ll : 'YYYY年M月D日', ll : 'YYYY年M月D日',
lll : 'YYYY年M月D日 HH:mm', lll : 'YYYY年M月D日 HH:mm',
llll : 'YYYY年M月D日 HH:mm dddd' llll : 'YYYY年M月D日(ddd) HH:mm'
}, },
meridiemParse: /午前|午後/i, meridiemParse: /午前|午後/i,
isPM : function (input) { isPM : function (input) {
@ -42,9 +40,21 @@ var ja = moment.defineLocale('ja', {
calendar : { calendar : {
sameDay : '[今日] LT', sameDay : '[今日] LT',
nextDay : '[明日] LT', nextDay : '[明日] LT',
nextWeek : '[来週]dddd LT', nextWeek : function (now) {
if (now.week() < this.week()) {
return '[来週]dddd LT';
} else {
return 'dddd LT';
}
},
lastDay : '[昨日] LT', lastDay : '[昨日] LT',
lastWeek : '[前週]dddd LT', lastWeek : function (now) {
if (this.week() < now.week()) {
return '[先週]dddd LT';
} else {
return 'dddd LT';
}
},
sameElse : 'L' sameElse : 'L'
}, },
dayOfMonthOrdinalParse : /\d{1,2}日/, dayOfMonthOrdinalParse : /\d{1,2}日/,
@ -62,6 +72,7 @@ var ja = moment.defineLocale('ja', {
future : '%s後', future : '%s後',
past : '%s前', past : '%s前',
s : '数秒', s : '数秒',
ss : '%d秒',
m : '1分', m : '1分',
mm : '%d分', mm : '%d分',
h : '1時間', h : '1時間',

4
lib/javascripts/moment_locale/jv.js Normal file → Executable file
View File

@ -1,7 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Javanese [jv]
//! author : Rony Lantip : https://github.com/lantip
//! reference: http://jv.wikipedia.org/wiki/Basa_Jawa
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -61,6 +58,7 @@ var jv = moment.defineLocale('jv', {
future : 'wonten ing %s', future : 'wonten ing %s',
past : '%s ingkang kepengker', past : '%s ingkang kepengker',
s : 'sawetawis detik', s : 'sawetawis detik',
ss : '%d detik',
m : 'setunggal menit', m : 'setunggal menit',
mm : '%d menit', mm : '%d menit',
h : 'setunggal jam', h : 'setunggal jam',

7
lib/javascripts/moment_locale/ka.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Georgian [ka]
//! author : Irakli Janiashvili : https://github.com/irakli-janiashvili
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -47,13 +45,14 @@ var ka = moment.defineLocale('ka', {
}, },
past : function (s) { past : function (s) {
if ((/(წამი|წუთი|საათი|დღე|თვე)/).test(s)) { if ((/(წამი|წუთი|საათი|დღე|თვე)/).test(s)) {
return s.replace(/(ი|ე)$/, 'ის უკან'); return s.replace(/(ი|ე)$/, 'ის წინ');
} }
if ((/წელი/).test(s)) { if ((/წელი/).test(s)) {
return s.replace(/წელი$/, 'წლის უკან'); return s.replace(/წელი$/, 'წლის წინ');
} }
}, },
s : 'რამდენიმე წამი', s : 'რამდენიმე წამი',
ss : '%d წამი',
m : 'წუთი', m : 'წუთი',
mm : '%d წუთი', mm : '%d წუთი',
h : 'საათი', h : 'საათი',

3
lib/javascripts/moment_locale/kk.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Kazakh [kk]
//! authors : Nurlan Rakhimzhanov : https://github.com/nurlan
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -59,6 +57,7 @@ var kk = moment.defineLocale('kk', {
future : '%s ішінде', future : '%s ішінде',
past : '%s бұрын', past : '%s бұрын',
s : 'бірнеше секунд', s : 'бірнеше секунд',
ss : '%d секунд',
m : 'бір минут', m : 'бір минут',
mm : '%d минут', mm : '%d минут',
h : 'бір сағат', h : 'бір сағат',

63
lib/javascripts/moment_locale/km.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Cambodian [km]
//! author : Kruy Vanna : https://github.com/kruyvanna
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -10,12 +8,41 @@
}(this, (function (moment) { 'use strict'; }(this, (function (moment) { 'use strict';
var symbolMap = {
'1': '១',
'2': '២',
'3': '៣',
'4': '៤',
'5': '៥',
'6': '៦',
'7': '៧',
'8': '៨',
'9': '៩',
'0': '០'
}, numberMap = {
'១': '1',
'២': '2',
'៣': '3',
'៤': '4',
'៥': '5',
'៦': '6',
'៧': '7',
'៨': '8',
'៩': '9',
'០': '0'
};
var km = moment.defineLocale('km', { var km = moment.defineLocale('km', {
months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'), months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'), '_'
),
monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
'_'
),
weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'), weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
weekdaysShort: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'), weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
weekdaysMin: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'), weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
weekdaysParseExact: true,
longDateFormat: { longDateFormat: {
LT: 'HH:mm', LT: 'HH:mm',
LTS: 'HH:mm:ss', LTS: 'HH:mm:ss',
@ -24,6 +51,17 @@ var km = moment.defineLocale('km', {
LLL: 'D MMMM YYYY HH:mm', LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd, D MMMM YYYY HH:mm' LLLL: 'dddd, D MMMM YYYY HH:mm'
}, },
meridiemParse: /ព្រឹក|ល្ងាច/,
isPM: function (input) {
return input === 'ល្ងាច';
},
meridiem: function (hour, minute, isLower) {
if (hour < 12) {
return 'ព្រឹក';
} else {
return 'ល្ងាច';
}
},
calendar: { calendar: {
sameDay: '[ថ្ងៃនេះ ម៉ោង] LT', sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',
nextDay: '[ស្អែក ម៉ោង] LT', nextDay: '[ស្អែក ម៉ោង] LT',
@ -36,6 +74,7 @@ var km = moment.defineLocale('km', {
future: '%sទៀត', future: '%sទៀត',
past: '%sមុន', past: '%sមុន',
s: 'ប៉ុន្មានវិនាទី', s: 'ប៉ុន្មានវិនាទី',
ss: '%d វិនាទី',
m: 'មួយនាទី', m: 'មួយនាទី',
mm: '%d នាទី', mm: '%d នាទី',
h: 'មួយម៉ោង', h: 'មួយម៉ោង',
@ -47,6 +86,18 @@ var km = moment.defineLocale('km', {
y: 'មួយឆ្នាំ', y: 'មួយឆ្នាំ',
yy: '%d ឆ្នាំ' yy: '%d ឆ្នាំ'
}, },
dayOfMonthOrdinalParse : /ទី\d{1,2}/,
ordinal : 'ទី%d',
preparse: function (string) {
return string.replace(/[១២៣៤៥៦៧៨៩០]/g, function (match) {
return numberMap[match];
});
},
postformat: function (string) {
return string.replace(/\d/g, function (match) {
return symbolMap[match];
});
},
week: { week: {
dow: 1, // Monday is the first day of the week. dow: 1, // Monday is the first day of the week.
doy: 4 // The week that contains Jan 4th is the first week of the year. doy: 4 // The week that contains Jan 4th is the first week of the year.

9
lib/javascripts/moment_locale/kn.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Kannada [kn]
//! author : Rajeev Naik : https://github.com/rajeevnaikte
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -21,8 +19,8 @@ var symbolMap = {
'8': '೮', '8': '೮',
'9': '೯', '9': '೯',
'0': '೦' '0': '೦'
}; },
var numberMap = { numberMap = {
'೧': '1', '೧': '1',
'೨': '2', '೨': '2',
'೩': '3', '೩': '3',
@ -37,7 +35,7 @@ var numberMap = {
var kn = moment.defineLocale('kn', { var kn = moment.defineLocale('kn', {
months : 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split('_'), months : 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split('_'),
monthsShort : 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split('_'), monthsShort : 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split('_'),
monthsParseExact: true, monthsParseExact: true,
weekdays : 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split('_'), weekdays : 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split('_'),
weekdaysShort : 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'), weekdaysShort : 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),
@ -62,6 +60,7 @@ var kn = moment.defineLocale('kn', {
future : '%s ನಂತರ', future : '%s ನಂತರ',
past : '%s ಹಿಂದೆ', past : '%s ಹಿಂದೆ',
s : 'ಕೆಲವು ಕ್ಷಣಗಳು', s : 'ಕೆಲವು ಕ್ಷಣಗಳು',
ss : '%d ಸೆಕೆಂಡುಗಳು',
m : 'ಒಂದು ನಿಮಿಷ', m : 'ಒಂದು ನಿಮಿಷ',
mm : '%d ನಿಮಿಷ', mm : '%d ನಿಮಿಷ',
h : 'ಒಂದು ಗಂಟೆ', h : 'ಒಂದು ಗಂಟೆ',

25
lib/javascripts/moment_locale/ko.js Normal file → Executable file
View File

@ -1,7 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Korean [ko]
//! author : Kyungwook, Park : https://github.com/kyungw00k
//! author : Jeeeyul Lee <jeeeyul@gmail.com>
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -20,11 +17,11 @@ var ko = moment.defineLocale('ko', {
longDateFormat : { longDateFormat : {
LT : 'A h:mm', LT : 'A h:mm',
LTS : 'A h:mm:ss', LTS : 'A h:mm:ss',
L : 'YYYY.MM.DD', L : 'YYYY.MM.DD.',
LL : 'YYYY년 MMMM D일', LL : 'YYYY년 MMMM D일',
LLL : 'YYYY년 MMMM D일 A h:mm', LLL : 'YYYY년 MMMM D일 A h:mm',
LLLL : 'YYYY년 MMMM D일 dddd A h:mm', LLLL : 'YYYY년 MMMM D일 dddd A h:mm',
l : 'YYYY.MM.DD', l : 'YYYY.MM.DD.',
ll : 'YYYY년 MMMM D일', ll : 'YYYY년 MMMM D일',
lll : 'YYYY년 MMMM D일 A h:mm', lll : 'YYYY년 MMMM D일 A h:mm',
llll : 'YYYY년 MMMM D일 dddd A h:mm' llll : 'YYYY년 MMMM D일 dddd A h:mm'
@ -53,8 +50,22 @@ var ko = moment.defineLocale('ko', {
y : '일 년', y : '일 년',
yy : '%d년' yy : '%d년'
}, },
dayOfMonthOrdinalParse : /\d{1,2}/, dayOfMonthOrdinalParse : /\d{1,2}(일|월|주)/,
ordinal : '%d일', ordinal : function (number, period) {
switch (period) {
case 'd':
case 'D':
case 'DDD':
return number + '일';
case 'M':
return number + '월';
case 'w':
case 'W':
return number + '주';
default:
return number;
}
},
meridiemParse : /오전|오후/, meridiemParse : /오전|오후/,
isPM : function (token) { isPM : function (token) {
return token === '오후'; return token === '오후';

4
lib/javascripts/moment_locale/ky.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Kyrgyz [ky]
//! author : Chyngyz Arystan uulu : https://github.com/chyngyz
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -10,7 +8,6 @@
}(this, (function (moment) { 'use strict'; }(this, (function (moment) { 'use strict';
var suffixes = { var suffixes = {
0: '-чү', 0: '-чү',
1: '-чи', 1: '-чи',
@ -60,6 +57,7 @@ var ky = moment.defineLocale('ky', {
future : '%s ичинде', future : '%s ичинде',
past : '%s мурун', past : '%s мурун',
s : 'бирнече секунд', s : 'бирнече секунд',
ss : '%d секунд',
m : 'бир мүнөт', m : 'бир мүнөт',
mm : '%d мүнөт', mm : '%d мүнөт',
h : 'бир саат', h : 'бир саат',

4
lib/javascripts/moment_locale/lb.js Normal file → Executable file
View File

@ -1,7 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Luxembourgish [lb]
//! author : mweimerskirch : https://github.com/mweimerskirch
//! author : David Raison : https://github.com/kwisatz
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -113,6 +110,7 @@ var lb = moment.defineLocale('lb', {
future : processFutureTime, future : processFutureTime,
past : processPastTime, past : processPastTime,
s : 'e puer Sekonnen', s : 'e puer Sekonnen',
ss : '%d Sekonnen',
m : processRelativeTime, m : processRelativeTime,
mm : '%d Minutten', mm : '%d Minutten',
h : processRelativeTime, h : processRelativeTime,

3
lib/javascripts/moment_locale/lo.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Lao [lo]
//! author : Ryan Hart : https://github.com/ryanhart2
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -48,6 +46,7 @@ var lo = moment.defineLocale('lo', {
future : 'ອີກ %s', future : 'ອີກ %s',
past : '%sຜ່ານມາ', past : '%sຜ່ານມາ',
s : 'ບໍ່ເທົ່າໃດວິນາທີ', s : 'ບໍ່ເທົ່າໃດວິນາທີ',
ss : '%d ວິນາທີ' ,
m : '1 ນາທີ', m : '1 ນາທີ',
mm : '%d ນາທີ', mm : '%d ນາທີ',
h : '1 ຊົ່ວໂມງ', h : '1 ຊົ່ວໂມງ',

4
lib/javascripts/moment_locale/lt.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Lithuanian [lt]
//! author : Mindaugas Mozūras : https://github.com/mmozuras
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -11,6 +9,7 @@
var units = { var units = {
'ss' : 'sekundė_sekundžių_sekundes',
'm' : 'minutė_minutės_minutę', 'm' : 'minutė_minutės_minutę',
'mm': 'minutės_minučių_minutes', 'mm': 'minutės_minučių_minutes',
'h' : 'valanda_valandos_valandą', 'h' : 'valanda_valandos_valandą',
@ -91,6 +90,7 @@ var lt = moment.defineLocale('lt', {
future : 'po %s', future : 'po %s',
past : 'prieš %s', past : 'prieš %s',
s : translateSeconds, s : translateSeconds,
ss : translate,
m : translateSingular, m : translateSingular,
mm : translate, mm : translate,
h : translateSingular, h : translateSingular,

5
lib/javascripts/moment_locale/lv.js Normal file → Executable file
View File

@ -1,7 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Latvian [lv]
//! author : Kristaps Karlsons : https://github.com/skakri
//! author : Jānis Elmeris : https://github.com/JanisE
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -12,6 +9,7 @@
var units = { var units = {
'ss': 'sekundes_sekundēm_sekunde_sekundes'.split('_'),
'm': 'minūtes_minūtēm_minūte_minūtes'.split('_'), 'm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),
'mm': 'minūtes_minūtēm_minūte_minūtes'.split('_'), 'mm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),
'h': 'stundas_stundām_stunda_stundas'.split('_'), 'h': 'stundas_stundām_stunda_stundas'.split('_'),
@ -73,6 +71,7 @@ var lv = moment.defineLocale('lv', {
future : 'pēc %s', future : 'pēc %s',
past : 'pirms %s', past : 'pirms %s',
s : relativeSeconds, s : relativeSeconds,
ss : relativeTimeWithPlural,
m : relativeTimeWithSingular, m : relativeTimeWithSingular,
mm : relativeTimeWithPlural, mm : relativeTimeWithPlural,
h : relativeTimeWithSingular, h : relativeTimeWithSingular,

4
lib/javascripts/moment_locale/me.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Montenegrin [me]
//! author : Miodrag Nikač <miodrag@restartit.me> : https://github.com/miodragnikac
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -12,6 +10,7 @@
var translator = { var translator = {
words: { //Different grammatical cases words: { //Different grammatical cases
ss: ['sekund', 'sekunda', 'sekundi'],
m: ['jedan minut', 'jednog minuta'], m: ['jedan minut', 'jednog minuta'],
mm: ['minut', 'minuta', 'minuta'], mm: ['minut', 'minuta', 'minuta'],
h: ['jedan sat', 'jednog sata'], h: ['jedan sat', 'jednog sata'],
@ -87,6 +86,7 @@ var me = moment.defineLocale('me', {
future : 'za %s', future : 'za %s',
past : 'prije %s', past : 'prije %s',
s : 'nekoliko sekundi', s : 'nekoliko sekundi',
ss : translator.translate,
m : translator.translate, m : translator.translate,
mm : translator.translate, mm : translator.translate,
h : translator.translate, h : translator.translate,

3
lib/javascripts/moment_locale/mi.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Maori [mi]
//! author : John Corrigan <robbiecloset@gmail.com> : https://github.com/johnideal
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -40,6 +38,7 @@ var mi = moment.defineLocale('mi', {
future: 'i roto i %s', future: 'i roto i %s',
past: '%s i mua', past: '%s i mua',
s: 'te hēkona ruarua', s: 'te hēkona ruarua',
ss: '%d hēkona',
m: 'he meneti', m: 'he meneti',
mm: '%d meneti', mm: '%d meneti',
h: 'te haora', h: 'te haora',

3
lib/javascripts/moment_locale/mk.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Macedonian [mk]
//! author : Borislav Mickov : https://github.com/B0k0
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -48,6 +46,7 @@ var mk = moment.defineLocale('mk', {
future : 'после %s', future : 'после %s',
past : 'пред %s', past : 'пред %s',
s : 'неколку секунди', s : 'неколку секунди',
ss : '%d секунди',
m : 'минута', m : 'минута',
mm : '%d минути', mm : '%d минути',
h : 'час', h : 'час',

3
lib/javascripts/moment_locale/ml.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Malayalam [ml]
//! author : Floyd Pink : https://github.com/floydpink
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -37,6 +35,7 @@ var ml = moment.defineLocale('ml', {
future : '%s കഴിഞ്ഞ്', future : '%s കഴിഞ്ഞ്',
past : '%s മുൻപ്', past : '%s മുൻപ്',
s : 'അൽപ നിമിഷങ്ങൾ', s : 'അൽപ നിമിഷങ്ങൾ',
ss : '%d സെക്കൻഡ്',
m : 'ഒരു മിനിറ്റ്', m : 'ഒരു മിനിറ്റ്',
mm : '%d മിനിറ്റ്', mm : '%d മിനിറ്റ്',
h : 'ഒരു മണിക്കൂർ', h : 'ഒരു മണിക്കൂർ',

View File

@ -0,0 +1,103 @@
//! moment.js locale configuration
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
function translate(number, withoutSuffix, key, isFuture) {
switch (key) {
case 's':
return withoutSuffix ? 'хэдхэн секунд' : 'хэдхэн секундын';
case 'ss':
return number + (withoutSuffix ? ' секунд' : ' секундын');
case 'm':
case 'mm':
return number + (withoutSuffix ? ' минут' : ' минутын');
case 'h':
case 'hh':
return number + (withoutSuffix ? ' цаг' : ' цагийн');
case 'd':
case 'dd':
return number + (withoutSuffix ? ' өдөр' : ' өдрийн');
case 'M':
case 'MM':
return number + (withoutSuffix ? ' сар' : ' сарын');
case 'y':
case 'yy':
return number + (withoutSuffix ? ' жил' : ' жилийн');
default:
return number;
}
}
var mn = moment.defineLocale('mn', {
months : 'Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар'.split('_'),
monthsShort : '1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар'.split('_'),
monthsParseExact : true,
weekdays : 'Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба'.split('_'),
weekdaysShort : 'Ням_Дав_Мяг_Лха_Пүр_Баа_Бям'.split('_'),
weekdaysMin : 'Ня_Да_Мя_Лх_Пү_Ба_Бя'.split('_'),
weekdaysParseExact : true,
longDateFormat : {
LT : 'HH:mm',
LTS : 'HH:mm:ss',
L : 'YYYY-MM-DD',
LL : 'YYYY оны MMMMын D',
LLL : 'YYYY оны MMMMын D HH:mm',
LLLL : 'dddd, YYYY оны MMMMын D HH:mm'
},
meridiemParse: /ҮӨ|ҮХ/i,
isPM : function (input) {
return input === 'ҮХ';
},
meridiem : function (hour, minute, isLower) {
if (hour < 12) {
return 'ҮӨ';
} else {
return 'ҮХ';
}
},
calendar : {
sameDay : '[Өнөөдөр] LT',
nextDay : '[Маргааш] LT',
nextWeek : '[Ирэх] dddd LT',
lastDay : '[Өчигдөр] LT',
lastWeek : '[Өнгөрсөн] dddd LT',
sameElse : 'L'
},
relativeTime : {
future : '%s дараа',
past : '%s өмнө',
s : translate,
ss : translate,
m : translate,
mm : translate,
h : translate,
hh : translate,
d : translate,
dd : translate,
M : translate,
MM : translate,
y : translate,
yy : translate
},
dayOfMonthOrdinalParse: /\d{1,2} өдөр/,
ordinal : function (number, period) {
switch (period) {
case 'd':
case 'D':
case 'DDD':
return number + ' өдөр';
default:
return number;
}
}
});
return mn;
})));

10
lib/javascripts/moment_locale/mr.js Normal file → Executable file
View File

@ -1,7 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Marathi [mr]
//! author : Harshad Kale : https://github.com/kalehv
//! author : Vivek Athalye : https://github.com/vnathalye
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -22,8 +19,8 @@ var symbolMap = {
'8': '८', '8': '८',
'9': '९', '9': '९',
'0': '०' '0': '०'
}; },
var numberMap = { numberMap = {
'१': '1', '१': '1',
'२': '2', '२': '2',
'३': '3', '३': '3',
@ -42,6 +39,7 @@ function relativeTimeMr(number, withoutSuffix, string, isFuture)
if (withoutSuffix) { if (withoutSuffix) {
switch (string) { switch (string) {
case 's': output = 'काही सेकंद'; break; case 's': output = 'काही सेकंद'; break;
case 'ss': output = '%d सेकंद'; break;
case 'm': output = 'एक मिनिट'; break; case 'm': output = 'एक मिनिट'; break;
case 'mm': output = '%d मिनिटे'; break; case 'mm': output = '%d मिनिटे'; break;
case 'h': output = 'एक तास'; break; case 'h': output = 'एक तास'; break;
@ -57,6 +55,7 @@ function relativeTimeMr(number, withoutSuffix, string, isFuture)
else { else {
switch (string) { switch (string) {
case 's': output = 'काही सेकंदां'; break; case 's': output = 'काही सेकंदां'; break;
case 'ss': output = '%d सेकंदां'; break;
case 'm': output = 'एका मिनिटा'; break; case 'm': output = 'एका मिनिटा'; break;
case 'mm': output = '%d मिनिटां'; break; case 'mm': output = '%d मिनिटां'; break;
case 'h': output = 'एका तासा'; break; case 'h': output = 'एका तासा'; break;
@ -99,6 +98,7 @@ var mr = moment.defineLocale('mr', {
future: '%sमध्ये', future: '%sमध्ये',
past: '%sपूर्वी', past: '%sपूर्वी',
s: relativeTimeMr, s: relativeTimeMr,
ss: relativeTimeMr,
m: relativeTimeMr, m: relativeTimeMr,
mm: relativeTimeMr, mm: relativeTimeMr,
h: relativeTimeMr, h: relativeTimeMr,

4
lib/javascripts/moment_locale/ms-my.js Normal file → Executable file
View File

@ -1,7 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Malay [ms-my]
//! note : DEPRECATED, the correct one is [ms]
//! author : Weldan Jamili : https://github.com/weldan
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -61,6 +58,7 @@ var msMy = moment.defineLocale('ms-my', {
future : 'dalam %s', future : 'dalam %s',
past : '%s yang lepas', past : '%s yang lepas',
s : 'beberapa saat', s : 'beberapa saat',
ss : '%d saat',
m : 'seminit', m : 'seminit',
mm : '%d minit', mm : '%d minit',
h : 'sejam', h : 'sejam',

3
lib/javascripts/moment_locale/ms.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Malay [ms]
//! author : Weldan Jamili : https://github.com/weldan
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -60,6 +58,7 @@ var ms = moment.defineLocale('ms', {
future : 'dalam %s', future : 'dalam %s',
past : '%s yang lepas', past : '%s yang lepas',
s : 'beberapa saat', s : 'beberapa saat',
ss : '%d saat',
m : 'seminit', m : 'seminit',
mm : '%d minit', mm : '%d minit',
h : 'sejam', h : 'sejam',

View File

@ -0,0 +1,59 @@
//! moment.js locale configuration
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
var mt = moment.defineLocale('mt', {
months : 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split('_'),
monthsShort : 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'),
weekdays : 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split('_'),
weekdaysShort : 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'),
weekdaysMin : 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'),
longDateFormat : {
LT : 'HH:mm',
LTS : 'HH:mm:ss',
L : 'DD/MM/YYYY',
LL : 'D MMMM YYYY',
LLL : 'D MMMM YYYY HH:mm',
LLLL : 'dddd, D MMMM YYYY HH:mm'
},
calendar : {
sameDay : '[Illum fil-]LT',
nextDay : '[Għada fil-]LT',
nextWeek : 'dddd [fil-]LT',
lastDay : '[Il-bieraħ fil-]LT',
lastWeek : 'dddd [li għadda] [fil-]LT',
sameElse : 'L'
},
relativeTime : {
future : 'f’ %s',
past : '%s ilu',
s : 'ftit sekondi',
ss : '%d sekondi',
m : 'minuta',
mm : '%d minuti',
h : 'siegħa',
hh : '%d siegħat',
d : 'ġurnata',
dd : '%d ġranet',
M : 'xahar',
MM : '%d xhur',
y : 'sena',
yy : '%d sni'
},
dayOfMonthOrdinalParse : /\d{1,2}º/,
ordinal: '%dº',
week : {
dow : 1, // Monday is the first day of the week.
doy : 4 // The week that contains Jan 4th is the first week of the year.
}
});
return mt;
})));

8
lib/javascripts/moment_locale/my.js Normal file → Executable file
View File

@ -1,8 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Burmese [my]
//! author : Squar team, mysquar.com
//! author : David Rossellat : https://github.com/gholadr
//! author : Tin Aung Lin : https://github.com/thanyawzinmin
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -23,8 +19,7 @@ var symbolMap = {
'8': '၈', '8': '၈',
'9': '၉', '9': '၉',
'0': '၀' '0': '၀'
}; }, numberMap = {
var numberMap = {
'၁': '1', '၁': '1',
'၂': '2', '၂': '2',
'၃': '3', '၃': '3',
@ -64,6 +59,7 @@ var my = moment.defineLocale('my', {
future: 'လာမည့် %s မှာ', future: 'လာမည့် %s မှာ',
past: 'လွန်ခဲ့သော %s က', past: 'လွန်ခဲ့သော %s က',
s: 'စက္ကန်.အနည်းငယ်', s: 'စက္ကန်.အနည်းငယ်',
ss : '%d စက္ကန့်',
m: 'တစ်မိနစ်', m: 'တစ်မိနစ်',
mm: '%d မိနစ်', mm: '%d မိနစ်',
h: 'တစ်နာရီ', h: 'တစ်နာရီ',

4
lib/javascripts/moment_locale/nb.js Normal file → Executable file
View File

@ -1,7 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Norwegian Bokmål [nb]
//! authors : Espen Hovlandsdal : https://github.com/rexxars
//! Sigurd Gartmann : https://github.com/sigurdga
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -39,6 +36,7 @@ var nb = moment.defineLocale('nb', {
future : 'om %s', future : 'om %s',
past : '%s siden', past : '%s siden',
s : 'noen sekunder', s : 'noen sekunder',
ss : '%d sekunder',
m : 'ett minutt', m : 'ett minutt',
mm : '%d minutter', mm : '%d minutter',
h : 'en time', h : 'en time',

7
lib/javascripts/moment_locale/ne.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Nepalese [ne]
//! author : suvash : https://github.com/suvash
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -21,8 +19,8 @@ var symbolMap = {
'8': '८', '8': '८',
'9': '९', '9': '९',
'0': '०' '0': '०'
}; },
var numberMap = { numberMap = {
'१': '1', '१': '1',
'२': '2', '२': '2',
'३': '3', '३': '3',
@ -101,6 +99,7 @@ var ne = moment.defineLocale('ne', {
future : '%sमा', future : '%sमा',
past : '%s अगाडि', past : '%s अगाडि',
s : 'केही क्षण', s : 'केही क्षण',
ss : '%d सेकेण्ड',
m : 'एक मिनेट', m : 'एक मिनेट',
mm : '%d मिनेट', mm : '%d मिनेट',
h : 'एक घण्टा', h : 'एक घण्टा',

10
lib/javascripts/moment_locale/nl-be.js Normal file → Executable file
View File

@ -1,7 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Dutch (Belgium) [nl-be]
//! author : Joris Röling : https://github.com/jorisroling
//! author : Jacob Middag : https://github.com/middagj
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -11,8 +8,8 @@
}(this, (function (moment) { 'use strict'; }(this, (function (moment) { 'use strict';
var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'); var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
var monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'); monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_');
var monthsParse = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i]; var monthsParse = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i];
var monthsRegex = /^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i; var monthsRegex = /^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
@ -40,7 +37,7 @@ var nlBe = moment.defineLocale('nl-be', {
weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'), weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'), weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'),
weekdaysMin : 'Zo_Ma_Di_Wo_Do_Vr_Za'.split('_'), weekdaysMin : 'zo_ma_di_wo_do_vr_za'.split('_'),
weekdaysParseExact : true, weekdaysParseExact : true,
longDateFormat : { longDateFormat : {
LT : 'HH:mm', LT : 'HH:mm',
@ -62,6 +59,7 @@ var nlBe = moment.defineLocale('nl-be', {
future : 'over %s', future : 'over %s',
past : '%s geleden', past : '%s geleden',
s : 'een paar seconden', s : 'een paar seconden',
ss : '%d seconden',
m : 'één minuut', m : 'één minuut',
mm : '%d minuten', mm : '%d minuten',
h : 'één uur', h : 'één uur',

10
lib/javascripts/moment_locale/nl.js Normal file → Executable file
View File

@ -1,7 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Dutch [nl]
//! author : Joris Röling : https://github.com/jorisroling
//! author : Jacob Middag : https://github.com/middagj
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -11,8 +8,8 @@
}(this, (function (moment) { 'use strict'; }(this, (function (moment) { 'use strict';
var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'); var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
var monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'); monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_');
var monthsParse = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i]; var monthsParse = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i];
var monthsRegex = /^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i; var monthsRegex = /^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
@ -40,7 +37,7 @@ var nl = moment.defineLocale('nl', {
weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'), weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'), weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'),
weekdaysMin : 'Zo_Ma_Di_Wo_Do_Vr_Za'.split('_'), weekdaysMin : 'zo_ma_di_wo_do_vr_za'.split('_'),
weekdaysParseExact : true, weekdaysParseExact : true,
longDateFormat : { longDateFormat : {
LT : 'HH:mm', LT : 'HH:mm',
@ -62,6 +59,7 @@ var nl = moment.defineLocale('nl', {
future : 'over %s', future : 'over %s',
past : '%s geleden', past : '%s geleden',
s : 'een paar seconden', s : 'een paar seconden',
ss : '%d seconden',
m : 'één minuut', m : 'één minuut',
mm : '%d minuten', mm : '%d minuten',
h : 'één uur', h : 'één uur',

3
lib/javascripts/moment_locale/nn.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Nynorsk [nn]
//! author : https://github.com/mechuwind
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -36,6 +34,7 @@ var nn = moment.defineLocale('nn', {
future : 'om %s', future : 'om %s',
past : '%s sidan', past : '%s sidan',
s : 'nokre sekund', s : 'nokre sekund',
ss : '%d sekund',
m : 'eit minutt', m : 'eit minutt',
mm : '%d minutt', mm : '%d minutt',
h : 'ein time', h : 'ein time',

7
lib/javascripts/moment_locale/pa-in.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Punjabi (India) [pa-in]
//! author : Harpreet Singh : https://github.com/harpreetkhalsagtbit
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -21,8 +19,8 @@ var symbolMap = {
'8': '੮', '8': '੮',
'9': '੯', '9': '੯',
'0': '੦' '0': '੦'
}; },
var numberMap = { numberMap = {
'੧': '1', '੧': '1',
'੨': '2', '੨': '2',
'੩': '3', '੩': '3',
@ -62,6 +60,7 @@ var paIn = moment.defineLocale('pa-in', {
future : '%s ਵਿੱਚ', future : '%s ਵਿੱਚ',
past : '%s ਪਿਛਲੇ', past : '%s ਪਿਛਲੇ',
s : 'ਕੁਝ ਸਕਿੰਟ', s : 'ਕੁਝ ਸਕਿੰਟ',
ss : '%d ਸਕਿੰਟ',
m : 'ਇਕ ਮਿੰਟ', m : 'ਇਕ ਮਿੰਟ',
mm : '%d ਮਿੰਟ', mm : '%d ਮਿੰਟ',
h : 'ਇੱਕ ਘੰਟਾ', h : 'ਇੱਕ ਘੰਟਾ',

28
lib/javascripts/moment_locale/pl.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Polish [pl]
//! author : Rafal Hirsz : https://github.com/evoL
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -10,14 +8,16 @@
}(this, (function (moment) { 'use strict'; }(this, (function (moment) { 'use strict';
var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split('_'); var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split('_'),
var monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split('_'); monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split('_');
function plural(n) { function plural(n) {
return (n % 10 < 5) && (n % 10 > 1) && ((~~(n / 10) % 10) !== 1); return (n % 10 < 5) && (n % 10 > 1) && ((~~(n / 10) % 10) !== 1);
} }
function translate(number, withoutSuffix, key) { function translate(number, withoutSuffix, key) {
var result = number + ' '; var result = number + ' ';
switch (key) { switch (key) {
case 'ss':
return result + (plural(number) ? 'sekundy' : 'sekund');
case 'm': case 'm':
return withoutSuffix ? 'minuta' : 'minutę'; return withoutSuffix ? 'minuta' : 'minutę';
case 'mm': case 'mm':
@ -63,7 +63,24 @@ var pl = moment.defineLocale('pl', {
calendar : { calendar : {
sameDay: '[Dziś o] LT', sameDay: '[Dziś o] LT',
nextDay: '[Jutro o] LT', nextDay: '[Jutro o] LT',
nextWeek: '[W] dddd [o] LT', nextWeek: function () {
switch (this.day()) {
case 0:
return '[W niedzielę o] LT';
case 2:
return '[We wtorek o] LT';
case 3:
return '[W środę o] LT';
case 6:
return '[W sobotę o] LT';
default:
return '[W] dddd [o] LT';
}
},
lastDay: '[Wczoraj o] LT', lastDay: '[Wczoraj o] LT',
lastWeek: function () { lastWeek: function () {
switch (this.day()) { switch (this.day()) {
@ -83,6 +100,7 @@ var pl = moment.defineLocale('pl', {
future : 'za %s', future : 'za %s',
past : '%s temu', past : '%s temu',
s : 'kilka sekund', s : 'kilka sekund',
ss : translate,
m : translate, m : translate,
mm : translate, mm : translate,
h : translate, h : translate,

9
lib/javascripts/moment_locale/pt-br.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Portuguese (Brazil) [pt-br]
//! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -11,8 +9,8 @@
var ptBr = moment.defineLocale('pt-br', { var ptBr = moment.defineLocale('pt-br', {
months : 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'), months : 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),
monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'), monthsShort : 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
weekdays : 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'), weekdays : 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'),
weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'), weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
weekdaysMin : 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'), weekdaysMin : 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
@ -39,8 +37,9 @@ var ptBr = moment.defineLocale('pt-br', {
}, },
relativeTime : { relativeTime : {
future : 'em %s', future : 'em %s',
past : '%s atrás', past : 'há %s',
s : 'poucos segundos', s : 'poucos segundos',
ss : '%d segundos',
m : 'um minuto', m : 'um minuto',
mm : '%d minutos', mm : '%d minutos',
h : 'uma hora', h : 'uma hora',

9
lib/javascripts/moment_locale/pt.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Portuguese [pt]
//! author : Jefferson : https://github.com/jalex79
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -11,9 +9,9 @@
var pt = moment.defineLocale('pt', { var pt = moment.defineLocale('pt', {
months : 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'), months : 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),
monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'), monthsShort : 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
weekdays : 'Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado'.split('_'), weekdays : 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'),
weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'), weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
weekdaysMin : 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'), weekdaysMin : 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
weekdaysParseExact : true, weekdaysParseExact : true,
@ -41,6 +39,7 @@ var pt = moment.defineLocale('pt', {
future : 'em %s', future : 'em %s',
past : 'há %s', past : 'há %s',
s : 'segundos', s : 'segundos',
ss : '%d segundos',
m : 'um minuto', m : 'um minuto',
mm : '%d minutos', mm : '%d minutos',
h : 'uma hora', h : 'uma hora',

5
lib/javascripts/moment_locale/ro.js Normal file → Executable file
View File

@ -1,7 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Romanian [ro]
//! author : Vlad Gurdiga : https://github.com/gurdiga
//! author : Valentin Agachi : https://github.com/avaly
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -13,6 +10,7 @@
function relativeTimeWithPlural(number, withoutSuffix, key) { function relativeTimeWithPlural(number, withoutSuffix, key) {
var format = { var format = {
'ss': 'secunde',
'mm': 'minute', 'mm': 'minute',
'hh': 'ore', 'hh': 'ore',
'dd': 'zile', 'dd': 'zile',
@ -53,6 +51,7 @@ var ro = moment.defineLocale('ro', {
future : 'peste %s', future : 'peste %s',
past : '%s în urmă', past : '%s în urmă',
s : 'câteva secunde', s : 'câteva secunde',
ss : relativeTimeWithPlural,
m : 'un minut', m : 'un minut',
mm : relativeTimeWithPlural, mm : relativeTimeWithPlural,
h : 'o oră', h : 'o oră',

42
lib/javascripts/moment_locale/ru.js Normal file → Executable file
View File

@ -1,8 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Russian [ru]
//! author : Viktorminator : https://github.com/Viktorminator
//! Author : Menelion Elensúle : https://github.com/Oire
//! author : Коренберг Марк : https://github.com/socketpair
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -18,6 +14,7 @@ function plural(word, num) {
} }
function relativeTimeWithPlural(number, withoutSuffix, key) { function relativeTimeWithPlural(number, withoutSuffix, key) {
var format = { var format = {
'ss': withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
'mm': withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут', 'mm': withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
'hh': 'час_часа_часов', 'hh': 'час_часа_часов',
'dd': 'день_дня_дней', 'dd': 'день_дня_дней',
@ -69,36 +66,36 @@ var ru = moment.defineLocale('ru', {
// Выражение, которое соотвествует только сокращённым формам // Выражение, которое соотвествует только сокращённым формам
monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i, monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,
longDateFormat : { longDateFormat : {
LT : 'HH:mm', LT : 'H:mm',
LTS : 'HH:mm:ss', LTS : 'H:mm:ss',
L : 'DD.MM.YYYY', L : 'DD.MM.YYYY',
LL : 'D MMMM YYYY г.', LL : 'D MMMM YYYY г.',
LLL : 'D MMMM YYYY г., HH:mm', LLL : 'D MMMM YYYY г., H:mm',
LLLL : 'dddd, D MMMM YYYY г., HH:mm' LLLL : 'dddd, D MMMM YYYY г., H:mm'
}, },
calendar : { calendar : {
sameDay: '[Сегодня в] LT', sameDay: '[Сегодня, в] LT',
nextDay: '[Завтра в] LT', nextDay: '[Завтра, в] LT',
lastDay: '[Вчера в] LT', lastDay: '[Вчера, в] LT',
nextWeek: function (now) { nextWeek: function (now) {
if (now.week() !== this.week()) { if (now.week() !== this.week()) {
switch (this.day()) { switch (this.day()) {
case 0: case 0:
return '[В следующее] dddd [в] LT'; return '[В следующее] dddd, [в] LT';
case 1: case 1:
case 2: case 2:
case 4: case 4:
return '[В следующий] dddd [в] LT'; return '[В следующий] dddd, [в] LT';
case 3: case 3:
case 5: case 5:
case 6: case 6:
return '[В следующую] dddd [в] LT'; return '[В следующую] dddd, [в] LT';
} }
} else { } else {
if (this.day() === 2) { if (this.day() === 2) {
return '[Во] dddd [в] LT'; return '[Во] dddd, [в] LT';
} else { } else {
return '[В] dddd [в] LT'; return '[В] dddd, [в] LT';
} }
} }
}, },
@ -106,21 +103,21 @@ var ru = moment.defineLocale('ru', {
if (now.week() !== this.week()) { if (now.week() !== this.week()) {
switch (this.day()) { switch (this.day()) {
case 0: case 0:
return '[В прошлое] dddd [в] LT'; return '[В прошлое] dddd, [в] LT';
case 1: case 1:
case 2: case 2:
case 4: case 4:
return '[В прошлый] dddd [в] LT'; return '[В прошлый] dddd, [в] LT';
case 3: case 3:
case 5: case 5:
case 6: case 6:
return '[В прошлую] dddd [в] LT'; return '[В прошлую] dddd, [в] LT';
} }
} else { } else {
if (this.day() === 2) { if (this.day() === 2) {
return '[Во] dddd [в] LT'; return '[Во] dddd, [в] LT';
} else { } else {
return '[В] dddd [в] LT'; return '[В] dddd, [в] LT';
} }
} }
}, },
@ -130,6 +127,7 @@ var ru = moment.defineLocale('ru', {
future : 'через %s', future : 'через %s',
past : '%s назад', past : '%s назад',
s : 'несколько секунд', s : 'несколько секунд',
ss : relativeTimeWithPlural,
m : relativeTimeWithPlural, m : relativeTimeWithPlural,
mm : relativeTimeWithPlural, mm : relativeTimeWithPlural,
h : 'час', h : 'час',
@ -174,7 +172,7 @@ var ru = moment.defineLocale('ru', {
}, },
week : { week : {
dow : 1, // Monday is the first day of the week. dow : 1, // Monday is the first day of the week.
doy : 7 // The week that contains Jan 1st is the first week of the year. doy : 4 // The week that contains Jan 4th is the first week of the year.
} }
}); });

3
lib/javascripts/moment_locale/sd.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Sindhi [sd]
//! author : Narain Sagar : https://github.com/narainsagar
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -70,6 +68,7 @@ var sd = moment.defineLocale('sd', {
future : '%s پوء', future : '%s پوء',
past : '%s اڳ', past : '%s اڳ',
s : 'چند سيڪنڊ', s : 'چند سيڪنڊ',
ss : '%d سيڪنڊ',
m : 'هڪ منٽ', m : 'هڪ منٽ',
mm : '%d منٽ', mm : '%d منٽ',
h : 'هڪ ڪلاڪ', h : 'هڪ ڪلاڪ',

4
lib/javascripts/moment_locale/se.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Northern Sami [se]
//! authors : Bård Rolstad Henriksen : https://github.com/karamell
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -10,7 +8,6 @@
}(this, (function (moment) { 'use strict'; }(this, (function (moment) { 'use strict';
var se = moment.defineLocale('se', { var se = moment.defineLocale('se', {
months : 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split('_'), months : 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split('_'),
monthsShort : 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'), monthsShort : 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'),
@ -37,6 +34,7 @@ var se = moment.defineLocale('se', {
future : '%s geažes', future : '%s geažes',
past : 'maŋit %s', past : 'maŋit %s',
s : 'moadde sekunddat', s : 'moadde sekunddat',
ss: '%d sekunddat',
m : 'okta minuhta', m : 'okta minuhta',
mm : '%d minuhtat', mm : '%d minuhtat',
h : 'okta diimmu', h : 'okta diimmu',

3
lib/javascripts/moment_locale/si.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Sinhalese [si]
//! author : Sampath Sitinamaluwa : https://github.com/sampathsris
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -38,6 +36,7 @@ var si = moment.defineLocale('si', {
future : '%sකින්', future : '%sකින්',
past : '%sකට පෙර', past : '%sකට පෙර',
s : 'තත්පර කිහිපය', s : 'තත්පර කිහිපය',
ss : 'තත්පර %d',
m : 'මිනිත්තුව', m : 'මිනිත්තුව',
mm : 'මිනිත්තු %d', mm : 'මිනිත්තු %d',
h : 'පැය', h : 'පැය',

15
lib/javascripts/moment_locale/sk.js Normal file → Executable file
View File

@ -1,7 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Slovak [sk]
//! author : Martin Minka : https://github.com/k2s
//! based on work of petrbela : https://github.com/petrbela
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -11,8 +8,8 @@
}(this, (function (moment) { 'use strict'; }(this, (function (moment) { 'use strict';
var months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_'); var months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_'),
var monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_'); monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
function plural(n) { function plural(n) {
return (n > 1) && (n < 5); return (n > 1) && (n < 5);
} }
@ -21,6 +18,13 @@ function translate(number, withoutSuffix, key, isFuture) {
switch (key) { switch (key) {
case 's': // a few seconds / in a few seconds / a few seconds ago case 's': // a few seconds / in a few seconds / a few seconds ago
return (withoutSuffix || isFuture) ? 'pár sekúnd' : 'pár sekundami'; return (withoutSuffix || isFuture) ? 'pár sekúnd' : 'pár sekundami';
case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
if (withoutSuffix || isFuture) {
return result + (plural(number) ? 'sekundy' : 'sekúnd');
} else {
return result + 'sekundami';
}
break;
case 'm': // a minute / in a minute / a minute ago case 'm': // a minute / in a minute / a minute ago
return withoutSuffix ? 'minúta' : (isFuture ? 'minútu' : 'minútou'); return withoutSuffix ? 'minúta' : (isFuture ? 'minútu' : 'minútou');
case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
@ -126,6 +130,7 @@ var sk = moment.defineLocale('sk', {
future : 'za %s', future : 'za %s',
past : 'pred %s', past : 'pred %s',
s : translate, s : translate,
ss : translate,
m : translate, m : translate,
mm : translate, mm : translate,
h : translate, h : translate,

14
lib/javascripts/moment_locale/sl.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Slovenian [sl]
//! author : Robert Sedovšek : https://github.com/sedovsek
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -15,6 +13,17 @@ function processRelativeTime(number, withoutSuffix, key, isFuture) {
switch (key) { switch (key) {
case 's': case 's':
return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami'; return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami';
case 'ss':
if (number === 1) {
result += withoutSuffix ? 'sekundo' : 'sekundi';
} else if (number === 2) {
result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah';
} else if (number < 5) {
result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah';
} else {
result += withoutSuffix || isFuture ? 'sekund' : 'sekund';
}
return result;
case 'm': case 'm':
return withoutSuffix ? 'ena minuta' : 'eno minuto'; return withoutSuffix ? 'ena minuta' : 'eno minuto';
case 'mm': case 'mm':
@ -138,6 +147,7 @@ var sl = moment.defineLocale('sl', {
future : 'čez %s', future : 'čez %s',
past : 'pred %s', past : 'pred %s',
s : processRelativeTime, s : processRelativeTime,
ss : processRelativeTime,
m : processRelativeTime, m : processRelativeTime,
mm : processRelativeTime, mm : processRelativeTime,
h : processRelativeTime, h : processRelativeTime,

5
lib/javascripts/moment_locale/sq.js Normal file → Executable file
View File

@ -1,8 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Albanian [sq]
//! author : Flakërim Ismani : https://github.com/flakerimi
//! author : Menelion Elensúle : https://github.com/Oire
//! author : Oerd Cukalla : https://github.com/oerd
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -46,6 +42,7 @@ var sq = moment.defineLocale('sq', {
future : 'në %s', future : 'në %s',
past : '%s më parë', past : '%s më parë',
s : 'disa sekonda', s : 'disa sekonda',
ss : '%d sekonda',
m : 'një minutë', m : 'një minutë',
mm : '%d minuta', mm : '%d minuta',
h : 'një orë', h : 'një orë',

4
lib/javascripts/moment_locale/sr-cyrl.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Serbian Cyrillic [sr-cyrl]
//! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -12,6 +10,7 @@
var translator = { var translator = {
words: { //Different grammatical cases words: { //Different grammatical cases
ss: ['секунда', 'секунде', 'секунди'],
m: ['један минут', 'једне минуте'], m: ['један минут', 'једне минуте'],
mm: ['минут', 'минуте', 'минута'], mm: ['минут', 'минуте', 'минута'],
h: ['један сат', 'једног сата'], h: ['један сат', 'једног сата'],
@ -86,6 +85,7 @@ var srCyrl = moment.defineLocale('sr-cyrl', {
future : 'за %s', future : 'за %s',
past : 'пре %s', past : 'пре %s',
s : 'неколико секунди', s : 'неколико секунди',
ss : translator.translate,
m : translator.translate, m : translator.translate,
mm : translator.translate, mm : translator.translate,
h : translator.translate, h : translator.translate,

4
lib/javascripts/moment_locale/sr.js Normal file → Executable file
View File

@ -1,6 +1,4 @@
//! moment.js locale configuration //! moment.js locale configuration
//! locale : Serbian [sr]
//! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' typeof exports === 'object' && typeof module !== 'undefined'
@ -12,6 +10,7 @@
var translator = { var translator = {
words: { //Different grammatical cases words: { //Different grammatical cases
ss: ['sekunda', 'sekunde', 'sekundi'],
m: ['jedan minut', 'jedne minute'], m: ['jedan minut', 'jedne minute'],
mm: ['minut', 'minute', 'minuta'], mm: ['minut', 'minute', 'minuta'],
h: ['jedan sat', 'jednog sata'], h: ['jedan sat', 'jednog sata'],
@ -86,6 +85,7 @@ var sr = moment.defineLocale('sr', {
future : 'za %s', future : 'za %s',
past : 'pre %s', past : 'pre %s',
s : 'nekoliko sekundi', s : 'nekoliko sekundi',
ss : translator.translate,
m : translator.translate, m : translator.translate,
mm : translator.translate, mm : translator.translate,
h : translator.translate, h : translator.translate,

Some files were not shown because too many files have changed in this diff Show More