mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Add missing languages, fixes #2550
This commit is contained in:
parent
b0b2bfb361
commit
8dccfc796a
171
public/v1/js/ff/moment/cs_CZ.js
vendored
Normal file
171
public/v1/js/ff/moment/cs_CZ.js
vendored
Normal file
@ -0,0 +1,171 @@
|
||||
//! 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 months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_'),
|
||||
monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_');
|
||||
|
||||
var monthsParse = [/^led/i, /^úno/i, /^bře/i, /^dub/i, /^kvě/i, /^(čvn|červen$|června)/i, /^(čvc|červenec|července)/i, /^srp/i, /^zář/i, /^říj/i, /^lis/i, /^pro/i];
|
||||
// NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
|
||||
// Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
|
||||
var monthsRegex = /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;
|
||||
|
||||
function plural(n) {
|
||||
return (n > 1) && (n < 5) && (~~(n / 10) !== 1);
|
||||
}
|
||||
function translate(number, withoutSuffix, key, isFuture) {
|
||||
var result = number + ' ';
|
||||
switch (key) {
|
||||
case 's': // a few seconds / in a few seconds / a few seconds ago
|
||||
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
|
||||
return withoutSuffix ? 'minuta' : (isFuture ? 'minutu' : 'minutou');
|
||||
case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
|
||||
if (withoutSuffix || isFuture) {
|
||||
return result + (plural(number) ? 'minuty' : 'minut');
|
||||
} else {
|
||||
return result + 'minutami';
|
||||
}
|
||||
break;
|
||||
case 'h': // an hour / in an hour / an hour ago
|
||||
return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
|
||||
case 'hh': // 9 hours / in 9 hours / 9 hours ago
|
||||
if (withoutSuffix || isFuture) {
|
||||
return result + (plural(number) ? 'hodiny' : 'hodin');
|
||||
} else {
|
||||
return result + 'hodinami';
|
||||
}
|
||||
break;
|
||||
case 'd': // a day / in a day / a day ago
|
||||
return (withoutSuffix || isFuture) ? 'den' : 'dnem';
|
||||
case 'dd': // 9 days / in 9 days / 9 days ago
|
||||
if (withoutSuffix || isFuture) {
|
||||
return result + (plural(number) ? 'dny' : 'dní');
|
||||
} else {
|
||||
return result + 'dny';
|
||||
}
|
||||
break;
|
||||
case 'M': // a month / in a month / a month ago
|
||||
return (withoutSuffix || isFuture) ? 'měsíc' : 'měsícem';
|
||||
case 'MM': // 9 months / in 9 months / 9 months ago
|
||||
if (withoutSuffix || isFuture) {
|
||||
return result + (plural(number) ? 'měsíce' : 'měsíců');
|
||||
} else {
|
||||
return result + 'měsíci';
|
||||
}
|
||||
break;
|
||||
case 'y': // a year / in a year / a year ago
|
||||
return (withoutSuffix || isFuture) ? 'rok' : 'rokem';
|
||||
case 'yy': // 9 years / in 9 years / 9 years ago
|
||||
if (withoutSuffix || isFuture) {
|
||||
return result + (plural(number) ? 'roky' : 'let');
|
||||
} else {
|
||||
return result + 'lety';
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
var cs = moment.defineLocale('cs', {
|
||||
months : months,
|
||||
monthsShort : monthsShort,
|
||||
monthsRegex : monthsRegex,
|
||||
monthsShortRegex : monthsRegex,
|
||||
// NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
|
||||
// Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
|
||||
monthsStrictRegex : /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,
|
||||
monthsShortStrictRegex : /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,
|
||||
monthsParse : monthsParse,
|
||||
longMonthsParse : monthsParse,
|
||||
shortMonthsParse : monthsParse,
|
||||
weekdays : 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
|
||||
weekdaysShort : 'ne_po_út_st_čt_pá_so'.split('_'),
|
||||
weekdaysMin : 'ne_po_út_st_čt_pá_so'.split('_'),
|
||||
longDateFormat : {
|
||||
LT: 'H:mm',
|
||||
LTS : 'H:mm:ss',
|
||||
L : 'DD.MM.YYYY',
|
||||
LL : 'D. MMMM YYYY',
|
||||
LLL : 'D. MMMM YYYY H:mm',
|
||||
LLLL : 'dddd D. MMMM YYYY H:mm',
|
||||
l : 'D. M. YYYY'
|
||||
},
|
||||
calendar : {
|
||||
sameDay: '[dnes v] LT',
|
||||
nextDay: '[zítra v] LT',
|
||||
nextWeek: function () {
|
||||
switch (this.day()) {
|
||||
case 0:
|
||||
return '[v neděli v] LT';
|
||||
case 1:
|
||||
case 2:
|
||||
return '[v] dddd [v] LT';
|
||||
case 3:
|
||||
return '[ve středu v] LT';
|
||||
case 4:
|
||||
return '[ve čtvrtek v] LT';
|
||||
case 5:
|
||||
return '[v pátek v] LT';
|
||||
case 6:
|
||||
return '[v sobotu v] LT';
|
||||
}
|
||||
},
|
||||
lastDay: '[včera v] LT',
|
||||
lastWeek: function () {
|
||||
switch (this.day()) {
|
||||
case 0:
|
||||
return '[minulou neděli v] LT';
|
||||
case 1:
|
||||
case 2:
|
||||
return '[minulé] dddd [v] LT';
|
||||
case 3:
|
||||
return '[minulou středu v] LT';
|
||||
case 4:
|
||||
case 5:
|
||||
return '[minulý] dddd [v] LT';
|
||||
case 6:
|
||||
return '[minulou sobotu v] LT';
|
||||
}
|
||||
},
|
||||
sameElse: 'L'
|
||||
},
|
||||
relativeTime : {
|
||||
future : 'za %s',
|
||||
past : 'před %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 : '%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 cs;
|
||||
|
||||
})));
|
99
public/v1/js/ff/moment/el_GR.js
vendored
Normal file
99
public/v1/js/ff/moment/el_GR.js
vendored
Normal file
@ -0,0 +1,99 @@
|
||||
//! 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 isFunction(input) {
|
||||
return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';
|
||||
}
|
||||
|
||||
|
||||
var el = moment.defineLocale('el', {
|
||||
monthsNominativeEl : 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split('_'),
|
||||
monthsGenitiveEl : 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split('_'),
|
||||
months : function (momentToFormat, format) {
|
||||
if (!momentToFormat) {
|
||||
return this._monthsNominativeEl;
|
||||
} 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()];
|
||||
} else {
|
||||
return this._monthsNominativeEl[momentToFormat.month()];
|
||||
}
|
||||
},
|
||||
monthsShort : 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
|
||||
weekdays : 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'),
|
||||
weekdaysShort : 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
|
||||
weekdaysMin : 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
|
||||
meridiem : function (hours, minutes, isLower) {
|
||||
if (hours > 11) {
|
||||
return isLower ? 'μμ' : 'ΜΜ';
|
||||
} else {
|
||||
return isLower ? 'πμ' : 'ΠΜ';
|
||||
}
|
||||
},
|
||||
isPM : function (input) {
|
||||
return ((input + '').toLowerCase()[0] === 'μ');
|
||||
},
|
||||
meridiemParse : /[ΠΜ]\.?Μ?\.?/i,
|
||||
longDateFormat : {
|
||||
LT : 'h:mm A',
|
||||
LTS : 'h:mm:ss A',
|
||||
L : 'DD/MM/YYYY',
|
||||
LL : 'D MMMM YYYY',
|
||||
LLL : 'D MMMM YYYY h:mm A',
|
||||
LLLL : 'dddd, D MMMM YYYY h:mm A'
|
||||
},
|
||||
calendarEl : {
|
||||
sameDay : '[Σήμερα {}] LT',
|
||||
nextDay : '[Αύριο {}] LT',
|
||||
nextWeek : 'dddd [{}] LT',
|
||||
lastDay : '[Χθες {}] LT',
|
||||
lastWeek : function () {
|
||||
switch (this.day()) {
|
||||
case 6:
|
||||
return '[το προηγούμενο] dddd [{}] LT';
|
||||
default:
|
||||
return '[την προηγούμενη] dddd [{}] LT';
|
||||
}
|
||||
},
|
||||
sameElse : 'L'
|
||||
},
|
||||
calendar : function (key, mom) {
|
||||
var output = this._calendarEl[key],
|
||||
hours = mom && mom.hours();
|
||||
if (isFunction(output)) {
|
||||
output = output.apply(mom);
|
||||
}
|
||||
return output.replace('{}', (hours % 12 === 1 ? 'στη' : 'στις'));
|
||||
},
|
||||
relativeTime : {
|
||||
future : 'σε %s',
|
||||
past : '%s πριν',
|
||||
s : 'λίγα δευτερόλεπτα',
|
||||
ss : '%d δευτερόλεπτα',
|
||||
m : 'ένα λεπτό',
|
||||
mm : '%d λεπτά',
|
||||
h : 'μία ώρα',
|
||||
hh : '%d ώρες',
|
||||
d : 'μία μέρα',
|
||||
dd : '%d μέρες',
|
||||
M : 'ένας μήνας',
|
||||
MM : '%d μήνες',
|
||||
y : 'ένας χρόνος',
|
||||
yy : '%d χρόνια'
|
||||
},
|
||||
dayOfMonthOrdinalParse: /\d{1,2}η/,
|
||||
ordinal: '%dη',
|
||||
week : {
|
||||
dow : 1, // Monday is the first day of the week.
|
||||
doy : 4 // The week that contains Jan 4st is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
return el;
|
||||
|
||||
})));
|
109
public/v1/js/ff/moment/hu_HU.js
vendored
Normal file
109
public/v1/js/ff/moment/hu_HU.js
vendored
Normal file
@ -0,0 +1,109 @@
|
||||
//! 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 weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');
|
||||
function translate(number, withoutSuffix, key, isFuture) {
|
||||
var num = number;
|
||||
switch (key) {
|
||||
case 's':
|
||||
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':
|
||||
return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
|
||||
case 'mm':
|
||||
return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
|
||||
case 'h':
|
||||
return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');
|
||||
case 'hh':
|
||||
return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
|
||||
case 'd':
|
||||
return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');
|
||||
case 'dd':
|
||||
return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
|
||||
case 'M':
|
||||
return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
|
||||
case 'MM':
|
||||
return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
|
||||
case 'y':
|
||||
return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');
|
||||
case 'yy':
|
||||
return num + (isFuture || withoutSuffix ? ' év' : ' éve');
|
||||
}
|
||||
return '';
|
||||
}
|
||||
function week(isFuture) {
|
||||
return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]';
|
||||
}
|
||||
|
||||
var hu = moment.defineLocale('hu', {
|
||||
months : 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split('_'),
|
||||
monthsShort : 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split('_'),
|
||||
weekdays : 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
|
||||
weekdaysShort : 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
|
||||
weekdaysMin : 'v_h_k_sze_cs_p_szo'.split('_'),
|
||||
longDateFormat : {
|
||||
LT : 'H:mm',
|
||||
LTS : 'H:mm:ss',
|
||||
L : 'YYYY.MM.DD.',
|
||||
LL : 'YYYY. MMMM D.',
|
||||
LLL : 'YYYY. MMMM D. H:mm',
|
||||
LLLL : 'YYYY. MMMM D., dddd H:mm'
|
||||
},
|
||||
meridiemParse: /de|du/i,
|
||||
isPM: function (input) {
|
||||
return input.charAt(1).toLowerCase() === 'u';
|
||||
},
|
||||
meridiem : function (hours, minutes, isLower) {
|
||||
if (hours < 12) {
|
||||
return isLower === true ? 'de' : 'DE';
|
||||
} else {
|
||||
return isLower === true ? 'du' : 'DU';
|
||||
}
|
||||
},
|
||||
calendar : {
|
||||
sameDay : '[ma] LT[-kor]',
|
||||
nextDay : '[holnap] LT[-kor]',
|
||||
nextWeek : function () {
|
||||
return week.call(this, true);
|
||||
},
|
||||
lastDay : '[tegnap] LT[-kor]',
|
||||
lastWeek : function () {
|
||||
return week.call(this, false);
|
||||
},
|
||||
sameElse : 'L'
|
||||
},
|
||||
relativeTime : {
|
||||
future : '%s múlva',
|
||||
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 : '%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 hu;
|
||||
|
||||
})));
|
61
public/v1/js/ff/moment/nb_NO.js
vendored
Normal file
61
public/v1/js/ff/moment/nb_NO.js
vendored
Normal 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 nb = moment.defineLocale('nb', {
|
||||
months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
|
||||
monthsShort : 'jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
|
||||
monthsParseExact : true,
|
||||
weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
|
||||
weekdaysShort : 'sø._ma._ti._on._to._fr._lø.'.split('_'),
|
||||
weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),
|
||||
weekdaysParseExact : true,
|
||||
longDateFormat : {
|
||||
LT : 'HH:mm',
|
||||
LTS : 'HH:mm:ss',
|
||||
L : 'DD.MM.YYYY',
|
||||
LL : 'D. MMMM YYYY',
|
||||
LLL : 'D. MMMM YYYY [kl.] HH:mm',
|
||||
LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm'
|
||||
},
|
||||
calendar : {
|
||||
sameDay: '[i dag kl.] LT',
|
||||
nextDay: '[i morgen kl.] LT',
|
||||
nextWeek: 'dddd [kl.] LT',
|
||||
lastDay: '[i går kl.] LT',
|
||||
lastWeek: '[forrige] dddd [kl.] LT',
|
||||
sameElse: 'L'
|
||||
},
|
||||
relativeTime : {
|
||||
future : 'om %s',
|
||||
past : '%s siden',
|
||||
s : 'noen sekunder',
|
||||
ss : '%d sekunder',
|
||||
m : 'ett minutt',
|
||||
mm : '%d minutter',
|
||||
h : 'en time',
|
||||
hh : '%d timer',
|
||||
d : 'en dag',
|
||||
dd : '%d dager',
|
||||
M : 'en måned',
|
||||
MM : '%d måneder',
|
||||
y : 'ett år',
|
||||
yy : '%d år'
|
||||
},
|
||||
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 nb;
|
||||
|
||||
})));
|
74
public/v1/js/ff/moment/ro_RO.js
vendored
Normal file
74
public/v1/js/ff/moment/ro_RO.js
vendored
Normal file
@ -0,0 +1,74 @@
|
||||
//! 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 relativeTimeWithPlural(number, withoutSuffix, key) {
|
||||
var format = {
|
||||
'ss': 'secunde',
|
||||
'mm': 'minute',
|
||||
'hh': 'ore',
|
||||
'dd': 'zile',
|
||||
'MM': 'luni',
|
||||
'yy': 'ani'
|
||||
},
|
||||
separator = ' ';
|
||||
if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {
|
||||
separator = ' de ';
|
||||
}
|
||||
return number + separator + format[key];
|
||||
}
|
||||
|
||||
var ro = moment.defineLocale('ro', {
|
||||
months : 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'),
|
||||
monthsShort : 'ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'),
|
||||
monthsParseExact: true,
|
||||
weekdays : 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
|
||||
weekdaysShort : 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
|
||||
weekdaysMin : 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
|
||||
longDateFormat : {
|
||||
LT : 'H:mm',
|
||||
LTS : 'H:mm:ss',
|
||||
L : 'DD.MM.YYYY',
|
||||
LL : 'D MMMM YYYY',
|
||||
LLL : 'D MMMM YYYY H:mm',
|
||||
LLLL : 'dddd, D MMMM YYYY H:mm'
|
||||
},
|
||||
calendar : {
|
||||
sameDay: '[azi la] LT',
|
||||
nextDay: '[mâine la] LT',
|
||||
nextWeek: 'dddd [la] LT',
|
||||
lastDay: '[ieri la] LT',
|
||||
lastWeek: '[fosta] dddd [la] LT',
|
||||
sameElse: 'L'
|
||||
},
|
||||
relativeTime : {
|
||||
future : 'peste %s',
|
||||
past : '%s în urmă',
|
||||
s : 'câteva secunde',
|
||||
ss : relativeTimeWithPlural,
|
||||
m : 'un minut',
|
||||
mm : relativeTimeWithPlural,
|
||||
h : 'o oră',
|
||||
hh : relativeTimeWithPlural,
|
||||
d : 'o zi',
|
||||
dd : relativeTimeWithPlural,
|
||||
M : 'o lună',
|
||||
MM : relativeTimeWithPlural,
|
||||
y : 'un an',
|
||||
yy : relativeTimeWithPlural
|
||||
},
|
||||
week : {
|
||||
dow : 1, // Monday is the first day of the week.
|
||||
doy : 7 // The week that contains Jan 7th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
return ro;
|
||||
|
||||
})));
|
109
public/v1/js/ff/moment/zh_CN.js
vendored
Normal file
109
public/v1/js/ff/moment/zh_CN.js
vendored
Normal file
@ -0,0 +1,109 @@
|
||||
//! 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 zhCn = moment.defineLocale('zh-cn', {
|
||||
months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
|
||||
monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
|
||||
weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
|
||||
weekdaysShort : '周日_周一_周二_周三_周四_周五_周六'.split('_'),
|
||||
weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
|
||||
longDateFormat : {
|
||||
LT : 'HH:mm',
|
||||
LTS : 'HH:mm:ss',
|
||||
L : 'YYYY/MM/DD',
|
||||
LL : 'YYYY年M月D日',
|
||||
LLL : 'YYYY年M月D日Ah点mm分',
|
||||
LLLL : 'YYYY年M月D日ddddAh点mm分',
|
||||
l : 'YYYY/M/D',
|
||||
ll : 'YYYY年M月D日',
|
||||
lll : 'YYYY年M月D日 HH:mm',
|
||||
llll : 'YYYY年M月D日dddd HH:mm'
|
||||
},
|
||||
meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
|
||||
meridiemHour: function (hour, meridiem) {
|
||||
if (hour === 12) {
|
||||
hour = 0;
|
||||
}
|
||||
if (meridiem === '凌晨' || meridiem === '早上' ||
|
||||
meridiem === '上午') {
|
||||
return hour;
|
||||
} else if (meridiem === '下午' || meridiem === '晚上') {
|
||||
return hour + 12;
|
||||
} else {
|
||||
// '中午'
|
||||
return hour >= 11 ? hour : hour + 12;
|
||||
}
|
||||
},
|
||||
meridiem : function (hour, minute, isLower) {
|
||||
var hm = hour * 100 + minute;
|
||||
if (hm < 600) {
|
||||
return '凌晨';
|
||||
} else if (hm < 900) {
|
||||
return '早上';
|
||||
} else if (hm < 1130) {
|
||||
return '上午';
|
||||
} else if (hm < 1230) {
|
||||
return '中午';
|
||||
} else if (hm < 1800) {
|
||||
return '下午';
|
||||
} else {
|
||||
return '晚上';
|
||||
}
|
||||
},
|
||||
calendar : {
|
||||
sameDay : '[今天]LT',
|
||||
nextDay : '[明天]LT',
|
||||
nextWeek : '[下]ddddLT',
|
||||
lastDay : '[昨天]LT',
|
||||
lastWeek : '[上]ddddLT',
|
||||
sameElse : 'L'
|
||||
},
|
||||
dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/,
|
||||
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;
|
||||
}
|
||||
},
|
||||
relativeTime : {
|
||||
future : '%s内',
|
||||
past : '%s前',
|
||||
s : '几秒',
|
||||
ss : '%d 秒',
|
||||
m : '1 分钟',
|
||||
mm : '%d 分钟',
|
||||
h : '1 小时',
|
||||
hh : '%d 小时',
|
||||
d : '1 天',
|
||||
dd : '%d 天',
|
||||
M : '1 个月',
|
||||
MM : '%d 个月',
|
||||
y : '1 年',
|
||||
yy : '%d 年'
|
||||
},
|
||||
week : {
|
||||
// GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
|
||||
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 zhCn;
|
||||
|
||||
})));
|
102
public/v1/js/ff/moment/zh_TW.js
vendored
Normal file
102
public/v1/js/ff/moment/zh_TW.js
vendored
Normal file
@ -0,0 +1,102 @@
|
||||
//! 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 zhTw = moment.defineLocale('zh-tw', {
|
||||
months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
|
||||
monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
|
||||
weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
|
||||
weekdaysShort : '週日_週一_週二_週三_週四_週五_週六'.split('_'),
|
||||
weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
|
||||
longDateFormat : {
|
||||
LT : 'HH:mm',
|
||||
LTS : 'HH:mm:ss',
|
||||
L : 'YYYY/MM/DD',
|
||||
LL : 'YYYY年M月D日',
|
||||
LLL : 'YYYY年M月D日 HH:mm',
|
||||
LLLL : 'YYYY年M月D日dddd HH:mm',
|
||||
l : 'YYYY/M/D',
|
||||
ll : 'YYYY年M月D日',
|
||||
lll : 'YYYY年M月D日 HH:mm',
|
||||
llll : 'YYYY年M月D日dddd HH:mm'
|
||||
},
|
||||
meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
|
||||
meridiemHour : function (hour, meridiem) {
|
||||
if (hour === 12) {
|
||||
hour = 0;
|
||||
}
|
||||
if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
|
||||
return hour;
|
||||
} else if (meridiem === '中午') {
|
||||
return hour >= 11 ? hour : hour + 12;
|
||||
} else if (meridiem === '下午' || meridiem === '晚上') {
|
||||
return hour + 12;
|
||||
}
|
||||
},
|
||||
meridiem : function (hour, minute, isLower) {
|
||||
var hm = hour * 100 + minute;
|
||||
if (hm < 600) {
|
||||
return '凌晨';
|
||||
} else if (hm < 900) {
|
||||
return '早上';
|
||||
} else if (hm < 1130) {
|
||||
return '上午';
|
||||
} else if (hm < 1230) {
|
||||
return '中午';
|
||||
} else if (hm < 1800) {
|
||||
return '下午';
|
||||
} else {
|
||||
return '晚上';
|
||||
}
|
||||
},
|
||||
calendar : {
|
||||
sameDay : '[今天] LT',
|
||||
nextDay : '[明天] LT',
|
||||
nextWeek : '[下]dddd LT',
|
||||
lastDay : '[昨天] LT',
|
||||
lastWeek : '[上]dddd LT',
|
||||
sameElse : 'L'
|
||||
},
|
||||
dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
|
||||
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;
|
||||
}
|
||||
},
|
||||
relativeTime : {
|
||||
future : '%s內',
|
||||
past : '%s前',
|
||||
s : '幾秒',
|
||||
ss : '%d 秒',
|
||||
m : '1 分鐘',
|
||||
mm : '%d 分鐘',
|
||||
h : '1 小時',
|
||||
hh : '%d 小時',
|
||||
d : '1 天',
|
||||
dd : '%d 天',
|
||||
M : '1 個月',
|
||||
MM : '%d 個月',
|
||||
y : '1 年',
|
||||
yy : '%d 年'
|
||||
}
|
||||
});
|
||||
|
||||
return zhTw;
|
||||
|
||||
})));
|
Loading…
Reference in New Issue
Block a user