Showing
563 changed files
with
4811 additions
and
3 deletions
... | @@ -6,6 +6,7 @@ var logger = require('morgan'); | ... | @@ -6,6 +6,7 @@ var logger = require('morgan'); |
6 | 6 | ||
7 | var indexRouter = require('./routes/index'); | 7 | var indexRouter = require('./routes/index'); |
8 | var usersRouter = require('./routes/users'); | 8 | var usersRouter = require('./routes/users'); |
9 | +var adminRouter = require('./routes/admin'); | ||
9 | var attendanceRouter = require('./routes/attendance'); | 10 | var attendanceRouter = require('./routes/attendance'); |
10 | var lectureRouter = require('./routes/lecture'); | 11 | var lectureRouter = require('./routes/lecture'); |
11 | var lsRouter = require('./routes/lecture_student'); | 12 | var lsRouter = require('./routes/lecture_student'); |
... | @@ -26,6 +27,7 @@ app.use('/users', usersRouter); | ... | @@ -26,6 +27,7 @@ app.use('/users', usersRouter); |
26 | app.use('/attendance', attendanceRouter); | 27 | app.use('/attendance', attendanceRouter); |
27 | app.use('/lecture', lectureRouter); | 28 | app.use('/lecture', lectureRouter); |
28 | app.use('/lecture_student', lsRouter); | 29 | app.use('/lecture_student', lsRouter); |
30 | +app.use('/admin', adminRouter); | ||
29 | 31 | ||
30 | // catch 404 and forward to error handler | 32 | // catch 404 and forward to error handler |
31 | app.use(function(req, res, next) { | 33 | app.use(function(req, res, next) { | ... | ... |
1 | module.exports = (function (){ | 1 | module.exports = (function (){ |
2 | return { | 2 | return { |
3 | local: { | 3 | local: { |
4 | - host: 'localhost', | 4 | + host: 'yapp.cmarogp1dz0t.ap-northeast-2.rds.amazonaws.com', |
5 | - user: 'root', | 5 | + user: 'admin', |
6 | - password: '1234', | 6 | + password: 'findmyzone!', |
7 | database: 'attendance' | 7 | database: 'attendance' |
8 | } | 8 | } |
9 | } | 9 | } | ... | ... |
1 | +temp | ||
2 | +tests | ||
3 | +typing-tests | ||
4 | +scripts | ||
5 | +.idea | ||
6 | + | ||
7 | +Gruntfile.js | ||
8 | +tasks | ||
9 | + | ||
10 | +contributing.md | ||
11 | + | ||
12 | +.travis.yml | ||
13 | +.jshintrc | ||
14 | + | ||
15 | +bower.json | ||
16 | + | ||
17 | +data/unpacked/*.json | ||
18 | +data/unpacked/latest.json | ||
19 | +data/packed/*.json | ||
20 | +!data/packed/latest.json | ||
21 | +data/meta/*.json | ||
22 | +!data/meta/latest.json |
1 | +The MIT License (MIT) | ||
2 | + | ||
3 | +Copyright (c) JS Foundation and other contributors | ||
4 | + | ||
5 | +Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
6 | +this software and associated documentation files (the "Software"), to deal in | ||
7 | +the Software without restriction, including without limitation the rights to | ||
8 | +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | ||
9 | +the Software, and to permit persons to whom the Software is furnished to do so, | ||
10 | +subject to the following conditions: | ||
11 | + | ||
12 | +The above copyright notice and this permission notice shall be included in all | ||
13 | +copies or substantial portions of the Software. | ||
14 | + | ||
15 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
16 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS | ||
17 | +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||
18 | +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | ||
19 | +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
20 | +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | +# [Moment Timezone](http://momentjs.com/timezone) | ||
2 | + | ||
3 | +[![Join the chat at https://gitter.im/moment/moment-timezone](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/moment/moment-timezone?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) | ||
4 | + | ||
5 | +[![NPM version][npm-version-image]][npm-url] [![NPM downloads][npm-downloads-image]][npm-url] [![MIT License][license-image]][license-url] [![Build Status][travis-image]][travis-url] | ||
6 | + | ||
7 | +IANA Time Zone Database + [Moment.js](http://momentjs.com). | ||
8 | + | ||
9 | +```js | ||
10 | +var june = moment("2014-06-01T12:00:00Z"); | ||
11 | +june.tz('America/Los_Angeles').format('ha z'); // 5am PDT | ||
12 | +june.tz('America/New_York').format('ha z'); // 8am EDT | ||
13 | +june.tz('Asia/Tokyo').format('ha z'); // 9pm JST | ||
14 | +june.tz('Australia/Sydney').format('ha z'); // 10pm EST | ||
15 | + | ||
16 | +var dec = moment("2014-12-01T12:00:00Z"); | ||
17 | +dec.tz('America/Los_Angeles').format('ha z'); // 4am PST | ||
18 | +dec.tz('America/New_York').format('ha z'); // 7am EST | ||
19 | +dec.tz('Asia/Tokyo').format('ha z'); // 9pm JST | ||
20 | +dec.tz('Australia/Sydney').format('ha z'); // 11pm EST | ||
21 | +``` | ||
22 | + | ||
23 | +#### [Contribute code or compile time zone data](contributing.md) | ||
24 | + | ||
25 | +#### [Read the changelog](changelog.md) | ||
26 | + | ||
27 | + | ||
28 | +[license-image]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat | ||
29 | +[license-url]: LICENSE | ||
30 | + | ||
31 | +[npm-url]: https://npmjs.org/package/moment-timezone | ||
32 | +[npm-version-image]: http://img.shields.io/npm/v/moment-timezone.svg?style=flat | ||
33 | +[npm-downloads-image]: http://img.shields.io/npm/dm/moment-timezone.svg?style=flat | ||
34 | + | ||
35 | +[travis-url]: http://travis-ci.org/moment/moment-timezone | ||
36 | +[travis-image]: http://img.shields.io/travis/moment/moment-timezone/develop.svg?style=flat |
webserver/myapp/node_modules/moment-timezone/builds/moment-timezone-with-data-10-year-range.js
0 → 100644
This diff is collapsed. Click to expand it.
webserver/myapp/node_modules/moment-timezone/builds/moment-timezone-with-data-10-year-range.min.js
0 → 100644
This diff is collapsed. Click to expand it.
webserver/myapp/node_modules/moment-timezone/builds/moment-timezone-with-data-1970-2030.js
0 → 100644
This diff could not be displayed because it is too large.
webserver/myapp/node_modules/moment-timezone/builds/moment-timezone-with-data-1970-2030.min.js
0 → 100644
This diff could not be displayed because it is too large.
webserver/myapp/node_modules/moment-timezone/builds/moment-timezone-with-data-2012-2022.js
0 → 100644
This diff is collapsed. Click to expand it.
webserver/myapp/node_modules/moment-timezone/builds/moment-timezone-with-data-2012-2022.min.js
0 → 100644
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
1 | +!function(t,e){"use strict";"object"==typeof module&&module.exports?module.exports=e(require("moment")):"function"==typeof define&&define.amd?define(["moment"],e):e(t.moment)}(this,function(i){"use strict";void 0===i.version&&i.default&&(i=i.default);var e,s={},f={},u={},a={},c={};i&&"string"==typeof i.version||D("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var t=i.version.split("."),n=+t[0],o=+t[1];function l(t){return 96<t?t-87:64<t?t-29:t-48}function r(t){var e=0,n=t.split("."),o=n[0],r=n[1]||"",i=1,s=0,f=1;for(45===t.charCodeAt(0)&&(f=-(e=1));e<o.length;e++)s=60*s+l(o.charCodeAt(e));for(e=0;e<r.length;e++)i/=60,s+=l(r.charCodeAt(e))*i;return s*f}function h(t){for(var e=0;e<t.length;e++)t[e]=r(t[e])}function p(t,e){var n,o=[];for(n=0;n<e.length;n++)o[n]=t[e[n]];return o}function m(t){var e=t.split("|"),n=e[2].split(" "),o=e[3].split(""),r=e[4].split(" ");return h(n),h(o),h(r),function(t,e){for(var n=0;n<e;n++)t[n]=Math.round((t[n-1]||0)+6e4*t[n]);t[e-1]=1/0}(r,o.length),{name:e[0],abbrs:p(e[1].split(" "),o),offsets:p(n,o),untils:r,population:0|e[5]}}function d(t){t&&this._set(m(t))}function z(t,e){this.name=t,this.zones=e}function v(t){var e=t.toTimeString(),n=e.match(/\([a-z ]+\)/i);"GMT"===(n=n&&n[0]?(n=n[0].match(/[A-Z]/g))?n.join(""):void 0:(n=e.match(/[A-Z]{3,5}/g))?n[0]:void 0)&&(n=void 0),this.at=+t,this.abbr=n,this.offset=t.getTimezoneOffset()}function b(t){this.zone=t,this.offsetScore=0,this.abbrScore=0}function g(t,e){for(var n,o;o=6e4*((e.at-t.at)/12e4|0);)(n=new v(new Date(t.at+o))).offset===t.offset?t=n:e=n;return t}function _(t,e){return t.offsetScore!==e.offsetScore?t.offsetScore-e.offsetScore:t.abbrScore!==e.abbrScore?t.abbrScore-e.abbrScore:t.zone.population!==e.zone.population?e.zone.population-t.zone.population:e.zone.name.localeCompare(t.zone.name)}function w(t,e){var n,o;for(h(e),n=0;n<e.length;n++)o=e[n],c[o]=c[o]||{},c[o][t]=!0}function y(){try{var t=Intl.DateTimeFormat().resolvedOptions().timeZone;if(t&&3<t.length){var e=a[O(t)];if(e)return e;D("Moment Timezone found "+t+" from the Intl api, but did not have that data loaded.")}}catch(t){}var n,o,r,i=function(){var t,e,n,o=(new Date).getFullYear()-2,r=new v(new Date(o,0,1)),i=[r];for(n=1;n<48;n++)(e=new v(new Date(o,n,1))).offset!==r.offset&&(t=g(r,e),i.push(t),i.push(new v(new Date(t.at+6e4)))),r=e;for(n=0;n<4;n++)i.push(new v(new Date(o+n,0,1))),i.push(new v(new Date(o+n,6,1)));return i}(),s=i.length,f=function(t){var e,n,o,r=t.length,i={},s=[];for(e=0;e<r;e++)for(n in o=c[t[e].offset]||{})o.hasOwnProperty(n)&&(i[n]=!0);for(e in i)i.hasOwnProperty(e)&&s.push(a[e]);return s}(i),u=[];for(o=0;o<f.length;o++){for(n=new b(M(f[o]),s),r=0;r<s;r++)n.scoreOffsetAt(i[r]);u.push(n)}return u.sort(_),0<u.length?u[0].zone.name:void 0}function O(t){return(t||"").toLowerCase().replace(/\//g,"_")}function S(t){var e,n,o,r;for("string"==typeof t&&(t=[t]),e=0;e<t.length;e++)r=O(n=(o=t[e].split("|"))[0]),s[r]=t[e],a[r]=n,w(r,o[2].split(" "))}function M(t,e){t=O(t);var n,o=s[t];return o instanceof d?o:"string"==typeof o?(o=new d(o),s[t]=o):f[t]&&e!==M&&(n=M(f[t],M))?((o=s[t]=new d)._set(n),o.name=a[t],o):null}function j(t){var e,n,o,r;for("string"==typeof t&&(t=[t]),e=0;e<t.length;e++)o=O((n=t[e].split("|"))[0]),r=O(n[1]),f[o]=r,a[o]=n[0],f[r]=o,a[r]=n[1]}function A(t){var e="X"===t._f||"x"===t._f;return!(!t._a||void 0!==t._tzm||e)}function D(t){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(t)}function T(t){var e=Array.prototype.slice.call(arguments,0,-1),n=arguments[arguments.length-1],o=M(n),r=i.utc.apply(null,e);return o&&!i.isMoment(t)&&A(r)&&r.add(o.parse(r),"minutes"),r.tz(n),r}(n<2||2==n&&o<6)&&D("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+i.version+". See momentjs.com"),d.prototype={_set:function(t){this.name=t.name,this.abbrs=t.abbrs,this.untils=t.untils,this.offsets=t.offsets,this.population=t.population},_index:function(t){var e,n=+t,o=this.untils;for(e=0;e<o.length;e++)if(n<o[e])return e},countries:function(){var e=this.name;return Object.keys(u).filter(function(t){return-1!==u[t].zones.indexOf(e)})},parse:function(t){var e,n,o,r,i=+t,s=this.offsets,f=this.untils,u=f.length-1;for(r=0;r<u;r++)if(e=s[r],n=s[r+1],o=s[r?r-1:r],e<n&&T.moveAmbiguousForward?e=n:o<e&&T.moveInvalidForward&&(e=o),i<f[r]-6e4*e)return s[r];return s[u]},abbr:function(t){return this.abbrs[this._index(t)]},offset:function(t){return D("zone.offset has been deprecated in favor of zone.utcOffset"),this.offsets[this._index(t)]},utcOffset:function(t){return this.offsets[this._index(t)]}},b.prototype.scoreOffsetAt=function(t){this.offsetScore+=Math.abs(this.zone.utcOffset(t.at)-t.offset),this.zone.abbr(t.at).replace(/[^A-Z]/g,"")!==t.abbr&&this.abbrScore++},T.version="0.5.31",T.dataVersion="",T._zones=s,T._links=f,T._names=a,T._countries=u,T.add=S,T.link=j,T.load=function(t){S(t.zones),j(t.links),function(t){var e,n,o,r;if(t&&t.length)for(e=0;e<t.length;e++)n=(r=t[e].split("|"))[0].toUpperCase(),o=r[1].split(" "),u[n]=new z(n,o)}(t.countries),T.dataVersion=t.version},T.zone=M,T.zoneExists=function t(e){return t.didShowError||(t.didShowError=!0,D("moment.tz.zoneExists('"+e+"') has been deprecated in favor of !moment.tz.zone('"+e+"')")),!!M(e)},T.guess=function(t){return e&&!t||(e=y()),e},T.names=function(){var t,e=[];for(t in a)a.hasOwnProperty(t)&&(s[t]||s[f[t]])&&a[t]&&e.push(a[t]);return e.sort()},T.Zone=d,T.unpack=m,T.unpackBase60=r,T.needsOffset=A,T.moveInvalidForward=!0,T.moveAmbiguousForward=!1,T.countries=function(){return Object.keys(u)},T.zonesForCountry=function(t,e){if(!(t=function(t){return t=t.toUpperCase(),u[t]||null}(t)))return null;var n=t.zones.sort();return e?n.map(function(t){return{name:t,offset:M(t).utcOffset(new Date)}}):n};var x,C=i.fn;function Z(t){return function(){return this._z?this._z.abbr(this):t.call(this)}}function k(t){return function(){return this._z=null,t.apply(this,arguments)}}i.tz=T,i.defaultZone=null,i.updateOffset=function(t,e){var n,o=i.defaultZone;if(void 0===t._z&&(o&&A(t)&&!t._isUTC&&(t._d=i.utc(t._a)._d,t.utc().add(o.parse(t),"minutes")),t._z=o),t._z)if(n=t._z.utcOffset(t),Math.abs(n)<16&&(n/=60),void 0!==t.utcOffset){var r=t._z;t.utcOffset(-n,e),t._z=r}else t.zone(n,e)},C.tz=function(t,e){if(t){if("string"!=typeof t)throw new Error("Time zone name must be a string, got "+t+" ["+typeof t+"]");return this._z=M(t),this._z?i.updateOffset(this,e):D("Moment Timezone has no data for "+t+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},C.zoneName=Z(C.zoneName),C.zoneAbbr=Z(C.zoneAbbr),C.utc=k(C.utc),C.local=k(C.local),C.utcOffset=(x=C.utcOffset,function(){return 0<arguments.length&&(this._z=null),x.apply(this,arguments)}),i.tz.setDefault=function(t){return(n<2||2==n&&o<9)&&D("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+i.version+"."),i.defaultZone=t?M(t):null,i};var F=i.momentProperties;return"[object Array]"===Object.prototype.toString.call(F)?(F.push("_z"),F.push("_a")):F&&(F._z=null),i}); |
This diff is collapsed. Click to expand it.
1 | +{ | ||
2 | + "name": "moment/moment-timezone", | ||
3 | + "description": "Parse and display dates in any timezone", | ||
4 | + "version": "0.5.31", | ||
5 | + "keywords": [ | ||
6 | + "moment", | ||
7 | + "date", | ||
8 | + "time", | ||
9 | + "timezone", | ||
10 | + "olson", | ||
11 | + "iana", | ||
12 | + "zone", | ||
13 | + "tz" | ||
14 | + ], | ||
15 | + "homepage": "http://momentjs.com/timezone/", | ||
16 | + "license": "MIT", | ||
17 | + "support": { | ||
18 | + "issues": "https://github.com/moment/moment-timezone/issues", | ||
19 | + "source": "https://github.com/moment/moment-timezone" | ||
20 | + }, | ||
21 | + "authors": [ | ||
22 | + { | ||
23 | + "name": "Tim Wood", | ||
24 | + "email": "washwithcare@gmail.com", | ||
25 | + "homepage": "http://timwoodcreates.com/" | ||
26 | + } | ||
27 | + ], | ||
28 | + "type": "component", | ||
29 | + "require": { | ||
30 | + "robloach/component-installer": "*", | ||
31 | + "moment/moment": ">=2.9.0" | ||
32 | + }, | ||
33 | + "extra": { | ||
34 | + "component": { | ||
35 | + "scripts": [ | ||
36 | + "moment-timezone.js" | ||
37 | + ], | ||
38 | + "files": [ | ||
39 | + "builds/*.js" | ||
40 | + ] | ||
41 | + } | ||
42 | + } | ||
43 | +} |
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
1 | +import moment = require('moment'); | ||
2 | + | ||
3 | +declare module 'moment' { | ||
4 | + interface MomentZone { | ||
5 | + name: string; | ||
6 | + abbrs: string[]; | ||
7 | + untils: number[]; | ||
8 | + offsets: number[]; | ||
9 | + population: number; | ||
10 | + | ||
11 | + abbr(timestamp: number): string; | ||
12 | + offset(timestamp: number): number; | ||
13 | + utcOffset(timestamp: number): number; | ||
14 | + parse(timestamp: number): number; | ||
15 | + } | ||
16 | + | ||
17 | + interface MomentZoneOffset { | ||
18 | + name: string; | ||
19 | + offset: number; | ||
20 | + } | ||
21 | + | ||
22 | + interface MomentTimezone { | ||
23 | + (): moment.Moment; | ||
24 | + (timezone: string): moment.Moment; | ||
25 | + (date: number, timezone: string): moment.Moment; | ||
26 | + (date: number[], timezone: string): moment.Moment; | ||
27 | + (date: string, timezone: string): moment.Moment; | ||
28 | + (date: string, format: moment.MomentFormatSpecification, timezone: string): moment.Moment; | ||
29 | + (date: string, format: moment.MomentFormatSpecification, strict: boolean, timezone: string): moment.Moment; | ||
30 | + (date: string, format: moment.MomentFormatSpecification, language: string, timezone: string): moment.Moment; | ||
31 | + (date: string, format: moment.MomentFormatSpecification, language: string, strict: boolean, timezone: string): moment.Moment; | ||
32 | + (date: Date, timezone: string): moment.Moment; | ||
33 | + (date: moment.Moment, timezone: string): moment.Moment; | ||
34 | + (date: any, timezone: string): moment.Moment; | ||
35 | + | ||
36 | + zone(timezone: string): MomentZone | null; | ||
37 | + | ||
38 | + add(packedZoneString: string): void; | ||
39 | + add(packedZoneString: string[]): void; | ||
40 | + | ||
41 | + link(packedLinkString: string): void; | ||
42 | + link(packedLinkString: string[]): void; | ||
43 | + | ||
44 | + load(data: { version: string; links: string[]; zones: string[] }): void; | ||
45 | + | ||
46 | + names(): string[]; | ||
47 | + zonesForCountry<T extends true>(country: string, with_offset: T): T extends true ? MomentZoneOffset[] : never; | ||
48 | + zonesForCountry<T extends false>(country: string, with_offset?: T): T extends false ? string[] : never; | ||
49 | + zonesForCountry(country: string, with_offset?: boolean): MomentZoneOffset[] | string[]; | ||
50 | + countries(): string[]; | ||
51 | + guess(ignoreCache?: boolean): string; | ||
52 | + | ||
53 | + setDefault(timezone?: string): Moment; | ||
54 | + } | ||
55 | + | ||
56 | + interface Moment { | ||
57 | + tz(): string | undefined; | ||
58 | + tz(timezone: string, keepLocalTime?: boolean): moment.Moment; | ||
59 | + zoneAbbr(): string; | ||
60 | + zoneName(): string; | ||
61 | + } | ||
62 | + | ||
63 | + const tz: MomentTimezone; | ||
64 | +} | ||
65 | + | ||
66 | +// require("moment-timezone") === require("moment") | ||
67 | +export = moment; |
1 | +import moment = require('moment'); | ||
2 | +import { MomentTimezone } from "./index"; | ||
3 | + | ||
4 | +declare module 'moment' { | ||
5 | + | ||
6 | + /** Parsed / unpacked zone data. */ | ||
7 | + interface UnpackedZone { | ||
8 | + /** The uniquely identifying name of the time zone. */ | ||
9 | + name: string; | ||
10 | + /** zone abbreviations */ | ||
11 | + abbrs: Array<string>; | ||
12 | + /** (measured in milliseconds) */ | ||
13 | + untils: Array<number | null>; | ||
14 | + /** (measured in minutes) */ | ||
15 | + offsets: Array<number>; | ||
16 | + } | ||
17 | + | ||
18 | + /** Bundle of zone data and links for multiple timezones */ | ||
19 | + interface PackedZoneBundle { | ||
20 | + version: string; | ||
21 | + zones: Array<string>; | ||
22 | + links: Array<string>; | ||
23 | + } | ||
24 | + | ||
25 | + /** Bundle of zone data and links for multiple timezones */ | ||
26 | + interface UnpackedZoneBundle { | ||
27 | + version: string; | ||
28 | + zones: Array<UnpackedZone>; | ||
29 | + links: Array<string>; | ||
30 | + } | ||
31 | + | ||
32 | + /** extends MomentTimezone declared in index */ | ||
33 | + interface MomentTimezone { | ||
34 | + /** Converts zone data in the unpacked format to the packed format. */ | ||
35 | + pack(unpackedObject: UnpackedZone): string; | ||
36 | + | ||
37 | + /** Convert a base 10 number to a base 60 string. */ | ||
38 | + packBase60(input: number, precision?: number): string; | ||
39 | + | ||
40 | + /** Create links out of two zones that share data. | ||
41 | + * @returns A new ZoneBundle with duplicate zone data replaced by links | ||
42 | + */ | ||
43 | + createLinks(unlinked: UnpackedZoneBundle): PackedZoneBundle; | ||
44 | + | ||
45 | + /** | ||
46 | + * Filter out data for years outside a certain range. | ||
47 | + * @return a new, filtered UnPackedZone object | ||
48 | + */ | ||
49 | + filterYears(unpackedZone: UnpackedZone, startYear: number, endYear: number): UnpackedZone; | ||
50 | + /** | ||
51 | + * Filter out data for years outside a certain range. | ||
52 | + * @return a new, filtered UnPackedZone object | ||
53 | + */ | ||
54 | + filterYears(unpackedZone: UnpackedZone, startAndEndYear: number): UnpackedZone; | ||
55 | + | ||
56 | + /** | ||
57 | + * Combines packing, link creation, and subsetting of years into one simple interface. | ||
58 | + * Pass in an unpacked bundle, start year, and end year and get a filtered, linked, packed bundle back. | ||
59 | + */ | ||
60 | + filterLinkPack(unpackedBundle: UnpackedZoneBundle, startYear: number, endYear: number): PackedZoneBundle; | ||
61 | + /** | ||
62 | + * Combines packing, link creation, and subsetting of years into one simple interface. | ||
63 | + * Pass in an unpacked bundle, start year, and end year and get a filtered, linked, packed bundle back. | ||
64 | + */ | ||
65 | + filterLinkPack(unpackedBundle: UnpackedZoneBundle, startAndEndYear: number): PackedZoneBundle; | ||
66 | + } | ||
67 | +} | ||
68 | + | ||
69 | +// require("moment-timezone") === require("moment") | ||
70 | +export = moment; |
1 | +//! moment-timezone-utils.js | ||
2 | +//! version : 0.5.31 | ||
3 | +//! Copyright (c) JS Foundation and other contributors | ||
4 | +//! license : MIT | ||
5 | +//! github.com/moment/moment-timezone | ||
6 | + | ||
7 | +(function (root, factory) { | ||
8 | + "use strict"; | ||
9 | + | ||
10 | + /*global define*/ | ||
11 | + if (typeof module === 'object' && module.exports) { | ||
12 | + module.exports = factory(require('./')); // Node | ||
13 | + } else if (typeof define === 'function' && define.amd) { | ||
14 | + define(['moment'], factory); // AMD | ||
15 | + } else { | ||
16 | + factory(root.moment); // Browser | ||
17 | + } | ||
18 | +}(this, function (moment) { | ||
19 | + "use strict"; | ||
20 | + | ||
21 | + if (!moment.tz) { | ||
22 | + throw new Error("moment-timezone-utils.js must be loaded after moment-timezone.js"); | ||
23 | + } | ||
24 | + | ||
25 | + /************************************ | ||
26 | + Pack Base 60 | ||
27 | + ************************************/ | ||
28 | + | ||
29 | + var BASE60 = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX', | ||
30 | + EPSILON = 0.000001; // Used to fix floating point rounding errors | ||
31 | + | ||
32 | + function packBase60Fraction(fraction, precision) { | ||
33 | + var buffer = '.', | ||
34 | + output = '', | ||
35 | + current; | ||
36 | + | ||
37 | + while (precision > 0) { | ||
38 | + precision -= 1; | ||
39 | + fraction *= 60; | ||
40 | + current = Math.floor(fraction + EPSILON); | ||
41 | + buffer += BASE60[current]; | ||
42 | + fraction -= current; | ||
43 | + | ||
44 | + // Only add buffer to output once we have a non-zero value. | ||
45 | + // This makes '.000' output '', and '.100' output '.1' | ||
46 | + if (current) { | ||
47 | + output += buffer; | ||
48 | + buffer = ''; | ||
49 | + } | ||
50 | + } | ||
51 | + | ||
52 | + return output; | ||
53 | + } | ||
54 | + | ||
55 | + function packBase60(number, precision) { | ||
56 | + var output = '', | ||
57 | + absolute = Math.abs(number), | ||
58 | + whole = Math.floor(absolute), | ||
59 | + fraction = packBase60Fraction(absolute - whole, Math.min(~~precision, 10)); | ||
60 | + | ||
61 | + while (whole > 0) { | ||
62 | + output = BASE60[whole % 60] + output; | ||
63 | + whole = Math.floor(whole / 60); | ||
64 | + } | ||
65 | + | ||
66 | + if (number < 0) { | ||
67 | + output = '-' + output; | ||
68 | + } | ||
69 | + | ||
70 | + if (output && fraction) { | ||
71 | + return output + fraction; | ||
72 | + } | ||
73 | + | ||
74 | + if (!fraction && output === '-') { | ||
75 | + return '0'; | ||
76 | + } | ||
77 | + | ||
78 | + return output || fraction || '0'; | ||
79 | + } | ||
80 | + | ||
81 | + /************************************ | ||
82 | + Pack | ||
83 | + ************************************/ | ||
84 | + | ||
85 | + function packUntils(untils) { | ||
86 | + var out = [], | ||
87 | + last = 0, | ||
88 | + i; | ||
89 | + | ||
90 | + for (i = 0; i < untils.length - 1; i++) { | ||
91 | + out[i] = packBase60(Math.round((untils[i] - last) / 1000) / 60, 1); | ||
92 | + last = untils[i]; | ||
93 | + } | ||
94 | + | ||
95 | + return out.join(' '); | ||
96 | + } | ||
97 | + | ||
98 | + function packAbbrsAndOffsets(source) { | ||
99 | + var index = 0, | ||
100 | + abbrs = [], | ||
101 | + offsets = [], | ||
102 | + indices = [], | ||
103 | + map = {}, | ||
104 | + i, key; | ||
105 | + | ||
106 | + for (i = 0; i < source.abbrs.length; i++) { | ||
107 | + key = source.abbrs[i] + '|' + source.offsets[i]; | ||
108 | + if (map[key] === undefined) { | ||
109 | + map[key] = index; | ||
110 | + abbrs[index] = source.abbrs[i]; | ||
111 | + offsets[index] = packBase60(Math.round(source.offsets[i] * 60) / 60, 1); | ||
112 | + index++; | ||
113 | + } | ||
114 | + indices[i] = packBase60(map[key], 0); | ||
115 | + } | ||
116 | + | ||
117 | + return abbrs.join(' ') + '|' + offsets.join(' ') + '|' + indices.join(''); | ||
118 | + } | ||
119 | + | ||
120 | + function packPopulation (number) { | ||
121 | + if (!number) { | ||
122 | + return ''; | ||
123 | + } | ||
124 | + if (number < 1000) { | ||
125 | + return number; | ||
126 | + } | ||
127 | + var exponent = String(number | 0).length - 2; | ||
128 | + var precision = Math.round(number / Math.pow(10, exponent)); | ||
129 | + return precision + 'e' + exponent; | ||
130 | + } | ||
131 | + | ||
132 | + function packCountries (countries) { | ||
133 | + if (!countries) { | ||
134 | + return ''; | ||
135 | + } | ||
136 | + return countries.join(' '); | ||
137 | + } | ||
138 | + | ||
139 | + function validatePackData (source) { | ||
140 | + if (!source.name) { throw new Error("Missing name"); } | ||
141 | + if (!source.abbrs) { throw new Error("Missing abbrs"); } | ||
142 | + if (!source.untils) { throw new Error("Missing untils"); } | ||
143 | + if (!source.offsets) { throw new Error("Missing offsets"); } | ||
144 | + if ( | ||
145 | + source.offsets.length !== source.untils.length || | ||
146 | + source.offsets.length !== source.abbrs.length | ||
147 | + ) { | ||
148 | + throw new Error("Mismatched array lengths"); | ||
149 | + } | ||
150 | + } | ||
151 | + | ||
152 | + function pack (source) { | ||
153 | + validatePackData(source); | ||
154 | + return [ | ||
155 | + source.name, // 0 - timezone name | ||
156 | + packAbbrsAndOffsets(source), // 1 - abbrs, 2 - offsets, 3 - indices | ||
157 | + packUntils(source.untils), // 4 - untils | ||
158 | + packPopulation(source.population) // 5 - population | ||
159 | + ].join('|'); | ||
160 | + } | ||
161 | + | ||
162 | + function packCountry (source) { | ||
163 | + return [ | ||
164 | + source.name, | ||
165 | + source.zones.join(' '), | ||
166 | + ].join('|'); | ||
167 | + } | ||
168 | + | ||
169 | + /************************************ | ||
170 | + Create Links | ||
171 | + ************************************/ | ||
172 | + | ||
173 | + function arraysAreEqual(a, b) { | ||
174 | + var i; | ||
175 | + | ||
176 | + if (a.length !== b.length) { return false; } | ||
177 | + | ||
178 | + for (i = 0; i < a.length; i++) { | ||
179 | + if (a[i] !== b[i]) { | ||
180 | + return false; | ||
181 | + } | ||
182 | + } | ||
183 | + return true; | ||
184 | + } | ||
185 | + | ||
186 | + function zonesAreEqual(a, b) { | ||
187 | + return arraysAreEqual(a.offsets, b.offsets) && arraysAreEqual(a.abbrs, b.abbrs) && arraysAreEqual(a.untils, b.untils); | ||
188 | + } | ||
189 | + | ||
190 | + function findAndCreateLinks (input, output, links, groupLeaders) { | ||
191 | + var i, j, a, b, group, foundGroup, groups = []; | ||
192 | + | ||
193 | + for (i = 0; i < input.length; i++) { | ||
194 | + foundGroup = false; | ||
195 | + a = input[i]; | ||
196 | + | ||
197 | + for (j = 0; j < groups.length; j++) { | ||
198 | + group = groups[j]; | ||
199 | + b = group[0]; | ||
200 | + if (zonesAreEqual(a, b)) { | ||
201 | + if (a.population > b.population) { | ||
202 | + group.unshift(a); | ||
203 | + } else if (a.population === b.population && groupLeaders && groupLeaders[a.name]) { | ||
204 | + group.unshift(a); | ||
205 | + } else { | ||
206 | + group.push(a); | ||
207 | + } | ||
208 | + foundGroup = true; | ||
209 | + } | ||
210 | + } | ||
211 | + | ||
212 | + if (!foundGroup) { | ||
213 | + groups.push([a]); | ||
214 | + } | ||
215 | + } | ||
216 | + | ||
217 | + for (i = 0; i < groups.length; i++) { | ||
218 | + group = groups[i]; | ||
219 | + output.push(group[0]); | ||
220 | + for (j = 1; j < group.length; j++) { | ||
221 | + links.push(group[0].name + '|' + group[j].name); | ||
222 | + } | ||
223 | + } | ||
224 | + } | ||
225 | + | ||
226 | + function createLinks (source, groupLeaders) { | ||
227 | + var zones = [], | ||
228 | + links = []; | ||
229 | + | ||
230 | + if (source.links) { | ||
231 | + links = source.links.slice(); | ||
232 | + } | ||
233 | + | ||
234 | + findAndCreateLinks(source.zones, zones, links, groupLeaders); | ||
235 | + | ||
236 | + return { | ||
237 | + version : source.version, | ||
238 | + zones : zones, | ||
239 | + links : links.sort() | ||
240 | + }; | ||
241 | + } | ||
242 | + | ||
243 | + /************************************ | ||
244 | + Filter Years | ||
245 | + ************************************/ | ||
246 | + | ||
247 | + function findStartAndEndIndex (untils, start, end) { | ||
248 | + var startI = 0, | ||
249 | + endI = untils.length + 1, | ||
250 | + untilYear, | ||
251 | + i; | ||
252 | + | ||
253 | + if (!end) { | ||
254 | + end = start; | ||
255 | + } | ||
256 | + | ||
257 | + if (start > end) { | ||
258 | + i = start; | ||
259 | + start = end; | ||
260 | + end = i; | ||
261 | + } | ||
262 | + | ||
263 | + for (i = 0; i < untils.length; i++) { | ||
264 | + if (untils[i] == null) { | ||
265 | + continue; | ||
266 | + } | ||
267 | + untilYear = new Date(untils[i]).getUTCFullYear(); | ||
268 | + if (untilYear < start) { | ||
269 | + startI = i + 1; | ||
270 | + } | ||
271 | + if (untilYear > end) { | ||
272 | + endI = Math.min(endI, i + 1); | ||
273 | + } | ||
274 | + } | ||
275 | + | ||
276 | + return [startI, endI]; | ||
277 | + } | ||
278 | + | ||
279 | + function filterYears (source, start, end) { | ||
280 | + var slice = Array.prototype.slice, | ||
281 | + indices = findStartAndEndIndex(source.untils, start, end), | ||
282 | + untils = slice.apply(source.untils, indices); | ||
283 | + | ||
284 | + untils[untils.length - 1] = null; | ||
285 | + | ||
286 | + return { | ||
287 | + name : source.name, | ||
288 | + abbrs : slice.apply(source.abbrs, indices), | ||
289 | + untils : untils, | ||
290 | + offsets : slice.apply(source.offsets, indices), | ||
291 | + population : source.population, | ||
292 | + countries : source.countries | ||
293 | + }; | ||
294 | + } | ||
295 | + | ||
296 | + /************************************ | ||
297 | + Filter, Link, and Pack | ||
298 | + ************************************/ | ||
299 | + | ||
300 | + function filterLinkPack (input, start, end, groupLeaders) { | ||
301 | + var i, | ||
302 | + inputZones = input.zones, | ||
303 | + outputZones = [], | ||
304 | + output; | ||
305 | + | ||
306 | + for (i = 0; i < inputZones.length; i++) { | ||
307 | + outputZones[i] = filterYears(inputZones[i], start, end); | ||
308 | + } | ||
309 | + | ||
310 | + output = createLinks({ | ||
311 | + zones : outputZones, | ||
312 | + links : input.links.slice(), | ||
313 | + version : input.version | ||
314 | + }, groupLeaders); | ||
315 | + | ||
316 | + for (i = 0; i < output.zones.length; i++) { | ||
317 | + output.zones[i] = pack(output.zones[i]); | ||
318 | + } | ||
319 | + | ||
320 | + output.countries = input.countries ? input.countries.map(function (unpacked) { | ||
321 | + return packCountry(unpacked); | ||
322 | + }) : []; | ||
323 | + | ||
324 | + return output; | ||
325 | + } | ||
326 | + | ||
327 | + /************************************ | ||
328 | + Exports | ||
329 | + ************************************/ | ||
330 | + | ||
331 | + moment.tz.pack = pack; | ||
332 | + moment.tz.packBase60 = packBase60; | ||
333 | + moment.tz.createLinks = createLinks; | ||
334 | + moment.tz.filterYears = filterYears; | ||
335 | + moment.tz.filterLinkPack = filterLinkPack; | ||
336 | + moment.tz.packCountry = packCountry; | ||
337 | + | ||
338 | + return moment; | ||
339 | +})); |
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
1 | +{ | ||
2 | + "_from": "moment-timezone", | ||
3 | + "_id": "moment-timezone@0.5.31", | ||
4 | + "_inBundle": false, | ||
5 | + "_integrity": "sha512-+GgHNg8xRhMXfEbv81iDtrVeTcWt0kWmTEY1XQK14dICTXnWJnT0dxdlPspwqF3keKMVPXwayEsk1DI0AA/jdA==", | ||
6 | + "_location": "/moment-timezone", | ||
7 | + "_phantomChildren": {}, | ||
8 | + "_requested": { | ||
9 | + "type": "tag", | ||
10 | + "registry": true, | ||
11 | + "raw": "moment-timezone", | ||
12 | + "name": "moment-timezone", | ||
13 | + "escapedName": "moment-timezone", | ||
14 | + "rawSpec": "", | ||
15 | + "saveSpec": null, | ||
16 | + "fetchSpec": "latest" | ||
17 | + }, | ||
18 | + "_requiredBy": [ | ||
19 | + "#USER", | ||
20 | + "/" | ||
21 | + ], | ||
22 | + "_resolved": "https://registry.npmjs.org/moment-timezone/-/moment-timezone-0.5.31.tgz", | ||
23 | + "_shasum": "9c40d8c5026f0c7ab46eda3d63e49c155148de05", | ||
24 | + "_spec": "moment-timezone", | ||
25 | + "_where": "/Users/huhjin-ho/Desktop/KHY_Project1/webserver/myapp", | ||
26 | + "author": { | ||
27 | + "name": "Tim Wood", | ||
28 | + "email": "washwithcare@gmail.com", | ||
29 | + "url": "http://timwoodcreates.com/" | ||
30 | + }, | ||
31 | + "bugs": { | ||
32 | + "url": "https://github.com/moment/moment-timezone/issues" | ||
33 | + }, | ||
34 | + "bundleDependencies": false, | ||
35 | + "dependencies": { | ||
36 | + "moment": ">= 2.9.0" | ||
37 | + }, | ||
38 | + "deprecated": false, | ||
39 | + "description": "Parse and display moments in any timezone.", | ||
40 | + "devDependencies": { | ||
41 | + "grunt": "1.0.4", | ||
42 | + "grunt-contrib-clean": "^2.0.0", | ||
43 | + "grunt-contrib-jshint": "^2.1.0", | ||
44 | + "grunt-contrib-nodeunit": "^2.0.0", | ||
45 | + "grunt-contrib-uglify": "^4.0.1", | ||
46 | + "grunt-exec": "^3.0.0", | ||
47 | + "typescript": "^3.5.1" | ||
48 | + }, | ||
49 | + "engines": { | ||
50 | + "node": "*" | ||
51 | + }, | ||
52 | + "homepage": "http://momentjs.com/timezone/", | ||
53 | + "jspm": { | ||
54 | + "main": "builds/moment-timezone-with-data", | ||
55 | + "shim": { | ||
56 | + "moment-timezone": { | ||
57 | + "deps": [ | ||
58 | + "moment" | ||
59 | + ] | ||
60 | + } | ||
61 | + } | ||
62 | + }, | ||
63 | + "keywords": [ | ||
64 | + "moment", | ||
65 | + "date", | ||
66 | + "time", | ||
67 | + "timezone", | ||
68 | + "olson", | ||
69 | + "iana", | ||
70 | + "zone", | ||
71 | + "tz" | ||
72 | + ], | ||
73 | + "license": "MIT", | ||
74 | + "main": "./index.js", | ||
75 | + "name": "moment-timezone", | ||
76 | + "repository": { | ||
77 | + "type": "git", | ||
78 | + "url": "git+https://github.com/moment/moment-timezone.git" | ||
79 | + }, | ||
80 | + "scripts": { | ||
81 | + "test": "grunt" | ||
82 | + }, | ||
83 | + "typings": "./index.d.ts", | ||
84 | + "version": "0.5.31" | ||
85 | +} |
This diff is collapsed. Click to expand it.
webserver/myapp/node_modules/moment/LICENSE
0 → 100644
1 | +Copyright (c) JS Foundation and other contributors | ||
2 | + | ||
3 | +Permission is hereby granted, free of charge, to any person | ||
4 | +obtaining a copy of this software and associated documentation | ||
5 | +files (the "Software"), to deal in the Software without | ||
6 | +restriction, including without limitation the rights to use, | ||
7 | +copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
8 | +copies of the Software, and to permit persons to whom the | ||
9 | +Software is furnished to do so, subject to the following | ||
10 | +conditions: | ||
11 | + | ||
12 | +The above copyright notice and this permission notice shall be | ||
13 | +included in all copies or substantial portions of the Software. | ||
14 | + | ||
15 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
16 | +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | ||
17 | +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
18 | +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | ||
19 | +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | ||
20 | +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
21 | +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
22 | +OTHER DEALINGS IN THE SOFTWARE. |
1 | +[![Join the chat at https://gitter.im/moment/moment](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/moment/moment?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) | ||
2 | + | ||
3 | +[![NPM version][npm-version-image]][npm-url] [![NPM downloads][npm-downloads-image]][downloads-url] [![MIT License][license-image]][license-url] [![Build Status][travis-image]][travis-url] | ||
4 | +[![Coverage Status](https://coveralls.io/repos/moment/moment/badge.svg?branch=develop)](https://coveralls.io/r/moment/moment?branch=develop) | ||
5 | +[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fmoment%2Fmoment.svg?type=shield)](https://app.fossa.io/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fmoment%2Fmoment?ref=badge_shield) | ||
6 | +[![SemVer compatibility](https://api.dependabot.com/badges/compatibility_score?dependency-name=moment&package-manager=npm_and_yarn&version-scheme=semver)](https://dependabot.com/compatibility-score.html?dependency-name=moment&package-manager=npm_and_yarn&version-scheme=semver) | ||
7 | + | ||
8 | +A lightweight JavaScript date library for parsing, validating, manipulating, and formatting dates. | ||
9 | + | ||
10 | +**[Documentation](http://momentjs.com/docs/)** | ||
11 | + | ||
12 | +## Port to ECMAScript 6 (version 2.10.0) | ||
13 | + | ||
14 | +Moment 2.10.0 does not bring any new features, but the code is now written in | ||
15 | +ECMAScript 6 modules and placed inside `src/`. Previously `moment.js`, `locale/*.js` and | ||
16 | +`test/moment/*.js`, `test/locale/*.js` contained the source of the project. Now | ||
17 | +the source is in `src/`, temporary build (ECMAScript 5) files are placed under | ||
18 | +`build/umd/` (for running tests during development), and the `moment.js` and | ||
19 | +`locale/*.js` files are updated only on release. | ||
20 | + | ||
21 | +If you want to use a particular revision of the code, make sure to run | ||
22 | +`grunt transpile update-index`, so `moment.js` and `locales/*.js` are synced | ||
23 | +with `src/*`. We might place that in a commit hook in the future. | ||
24 | + | ||
25 | +## Upgrading to 2.0.0 | ||
26 | + | ||
27 | +There are a number of small backwards incompatible changes with version 2.0.0. [See the full descriptions here](https://gist.github.com/timrwood/e72f2eef320ed9e37c51#backwards-incompatible-changes) | ||
28 | + | ||
29 | + * Changed language ordinal method to return the number + ordinal instead of just the ordinal. | ||
30 | + | ||
31 | + * Changed two digit year parsing cutoff to match strptime. | ||
32 | + | ||
33 | + * Removed `moment#sod` and `moment#eod` in favor of `moment#startOf` and `moment#endOf`. | ||
34 | + | ||
35 | + * Removed `moment.humanizeDuration()` in favor of `moment.duration().humanize()`. | ||
36 | + | ||
37 | + * Removed the lang data objects from the top level namespace. | ||
38 | + | ||
39 | + * Duplicate `Date` passed to `moment()` instead of referencing it. | ||
40 | + | ||
41 | +## [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md) | ||
42 | + | ||
43 | +## [Contributing](https://github.com/moment/moment/blob/develop/CONTRIBUTING.md) [![Open Source Helpers](https://www.codetriage.com/moment/moment/badges/users.svg)](https://www.codetriage.com/moment/moment) | ||
44 | + | ||
45 | +We're looking for co-maintainers! If you want to become a master of time please | ||
46 | +write to [ichernev](https://github.com/ichernev). | ||
47 | + | ||
48 | +In addition to contributing code, you can help to triage issues. This can include reproducing bug reports, or asking for vital information such as version numbers or reproduction instructions. If you would like to start triaging issues, one easy way to get started is to [subscribe to moment/moment on CodeTriage](https://www.codetriage.com/moment/moment). | ||
49 | + | ||
50 | +### Frequently asked questions | ||
51 | + | ||
52 | +See [FAQ.md](FAQ.md). | ||
53 | + | ||
54 | +## License | ||
55 | + | ||
56 | +Moment.js is freely distributable under the terms of the [MIT license](https://github.com/moment/moment/blob/develop/LICENSE). | ||
57 | + | ||
58 | +[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fmoment%2Fmoment.svg?type=large)](https://app.fossa.io/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fmoment%2Fmoment?ref=badge_large) | ||
59 | + | ||
60 | +[license-image]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat | ||
61 | +[license-url]: LICENSE | ||
62 | + | ||
63 | +[npm-url]: https://npmjs.org/package/moment | ||
64 | +[npm-version-image]: http://img.shields.io/npm/v/moment.svg?style=flat | ||
65 | +[npm-downloads-image]: http://img.shields.io/npm/dm/moment.svg?style=flat | ||
66 | +[downloads-url]: https://npmcharts.com/compare/moment?minimal=true | ||
67 | + | ||
68 | +[travis-url]: http://travis-ci.org/moment/moment | ||
69 | +[travis-image]: http://img.shields.io/travis/moment/moment/develop.svg?style=flat |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : Afrikaans [af] | ||
3 | +//! author : Werner Mollentze : https://github.com/wernerm | ||
4 | + | ||
5 | +import moment from '../moment'; | ||
6 | + | ||
7 | +export default moment.defineLocale('af', { | ||
8 | + months: 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split( | ||
9 | + '_' | ||
10 | + ), | ||
11 | + monthsShort: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'), | ||
12 | + weekdays: 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split( | ||
13 | + '_' | ||
14 | + ), | ||
15 | + weekdaysShort: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'), | ||
16 | + weekdaysMin: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'), | ||
17 | + meridiemParse: /vm|nm/i, | ||
18 | + isPM: function (input) { | ||
19 | + return /^nm$/i.test(input); | ||
20 | + }, | ||
21 | + meridiem: function (hours, minutes, isLower) { | ||
22 | + if (hours < 12) { | ||
23 | + return isLower ? 'vm' : 'VM'; | ||
24 | + } else { | ||
25 | + return isLower ? 'nm' : 'NM'; | ||
26 | + } | ||
27 | + }, | ||
28 | + longDateFormat: { | ||
29 | + LT: 'HH:mm', | ||
30 | + LTS: 'HH:mm:ss', | ||
31 | + L: 'DD/MM/YYYY', | ||
32 | + LL: 'D MMMM YYYY', | ||
33 | + LLL: 'D MMMM YYYY HH:mm', | ||
34 | + LLLL: 'dddd, D MMMM YYYY HH:mm', | ||
35 | + }, | ||
36 | + calendar: { | ||
37 | + sameDay: '[Vandag om] LT', | ||
38 | + nextDay: '[Môre om] LT', | ||
39 | + nextWeek: 'dddd [om] LT', | ||
40 | + lastDay: '[Gister om] LT', | ||
41 | + lastWeek: '[Laas] dddd [om] LT', | ||
42 | + sameElse: 'L', | ||
43 | + }, | ||
44 | + relativeTime: { | ||
45 | + future: 'oor %s', | ||
46 | + past: '%s gelede', | ||
47 | + s: "'n paar sekondes", | ||
48 | + ss: '%d sekondes', | ||
49 | + m: "'n minuut", | ||
50 | + mm: '%d minute', | ||
51 | + h: "'n uur", | ||
52 | + hh: '%d ure', | ||
53 | + d: "'n dag", | ||
54 | + dd: '%d dae', | ||
55 | + M: "'n maand", | ||
56 | + MM: '%d maande', | ||
57 | + y: "'n jaar", | ||
58 | + yy: '%d jaar', | ||
59 | + }, | ||
60 | + dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, | ||
61 | + ordinal: function (number) { | ||
62 | + return ( | ||
63 | + number + | ||
64 | + (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de') | ||
65 | + ); // Thanks to Joris Röling : https://github.com/jjupiter | ||
66 | + }, | ||
67 | + week: { | ||
68 | + dow: 1, // Maandag is die eerste dag van die week. | ||
69 | + doy: 4, // Die week wat die 4de Januarie bevat is die eerste week van die jaar. | ||
70 | + }, | ||
71 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : Arabic (Algeria) [ar-dz] | ||
3 | +//! author : Amine Roukh: https://github.com/Amine27 | ||
4 | +//! author : Abdel Said: https://github.com/abdelsaid | ||
5 | +//! author : Ahmed Elkhatib | ||
6 | +//! author : forabi https://github.com/forabi | ||
7 | +//! author : Noureddine LOUAHEDJ : https://github.com/noureddinem | ||
8 | + | ||
9 | +import moment from '../moment'; | ||
10 | + | ||
11 | +var pluralForm = function (n) { | ||
12 | + return n === 0 | ||
13 | + ? 0 | ||
14 | + : n === 1 | ||
15 | + ? 1 | ||
16 | + : n === 2 | ||
17 | + ? 2 | ||
18 | + : n % 100 >= 3 && n % 100 <= 10 | ||
19 | + ? 3 | ||
20 | + : n % 100 >= 11 | ||
21 | + ? 4 | ||
22 | + : 5; | ||
23 | + }, | ||
24 | + plurals = { | ||
25 | + s: [ | ||
26 | + 'أقل من ثانية', | ||
27 | + 'ثانية واحدة', | ||
28 | + ['ثانيتان', 'ثانيتين'], | ||
29 | + '%d ثوان', | ||
30 | + '%d ثانية', | ||
31 | + '%d ثانية', | ||
32 | + ], | ||
33 | + m: [ | ||
34 | + 'أقل من دقيقة', | ||
35 | + 'دقيقة واحدة', | ||
36 | + ['دقيقتان', 'دقيقتين'], | ||
37 | + '%d دقائق', | ||
38 | + '%d دقيقة', | ||
39 | + '%d دقيقة', | ||
40 | + ], | ||
41 | + h: [ | ||
42 | + 'أقل من ساعة', | ||
43 | + 'ساعة واحدة', | ||
44 | + ['ساعتان', 'ساعتين'], | ||
45 | + '%d ساعات', | ||
46 | + '%d ساعة', | ||
47 | + '%d ساعة', | ||
48 | + ], | ||
49 | + d: [ | ||
50 | + 'أقل من يوم', | ||
51 | + 'يوم واحد', | ||
52 | + ['يومان', 'يومين'], | ||
53 | + '%d أيام', | ||
54 | + '%d يومًا', | ||
55 | + '%d يوم', | ||
56 | + ], | ||
57 | + M: [ | ||
58 | + 'أقل من شهر', | ||
59 | + 'شهر واحد', | ||
60 | + ['شهران', 'شهرين'], | ||
61 | + '%d أشهر', | ||
62 | + '%d شهرا', | ||
63 | + '%d شهر', | ||
64 | + ], | ||
65 | + y: [ | ||
66 | + 'أقل من عام', | ||
67 | + 'عام واحد', | ||
68 | + ['عامان', 'عامين'], | ||
69 | + '%d أعوام', | ||
70 | + '%d عامًا', | ||
71 | + '%d عام', | ||
72 | + ], | ||
73 | + }, | ||
74 | + pluralize = function (u) { | ||
75 | + return function (number, withoutSuffix, string, isFuture) { | ||
76 | + var f = pluralForm(number), | ||
77 | + str = plurals[u][pluralForm(number)]; | ||
78 | + if (f === 2) { | ||
79 | + str = str[withoutSuffix ? 0 : 1]; | ||
80 | + } | ||
81 | + return str.replace(/%d/i, number); | ||
82 | + }; | ||
83 | + }, | ||
84 | + months = [ | ||
85 | + 'جانفي', | ||
86 | + 'فيفري', | ||
87 | + 'مارس', | ||
88 | + 'أفريل', | ||
89 | + 'ماي', | ||
90 | + 'جوان', | ||
91 | + 'جويلية', | ||
92 | + 'أوت', | ||
93 | + 'سبتمبر', | ||
94 | + 'أكتوبر', | ||
95 | + 'نوفمبر', | ||
96 | + 'ديسمبر', | ||
97 | + ]; | ||
98 | + | ||
99 | +export default moment.defineLocale('ar-dz', { | ||
100 | + months: months, | ||
101 | + monthsShort: months, | ||
102 | + weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), | ||
103 | + weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), | ||
104 | + weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), | ||
105 | + weekdaysParseExact: true, | ||
106 | + longDateFormat: { | ||
107 | + LT: 'HH:mm', | ||
108 | + LTS: 'HH:mm:ss', | ||
109 | + L: 'D/\u200FM/\u200FYYYY', | ||
110 | + LL: 'D MMMM YYYY', | ||
111 | + LLL: 'D MMMM YYYY HH:mm', | ||
112 | + LLLL: 'dddd D MMMM YYYY HH:mm', | ||
113 | + }, | ||
114 | + meridiemParse: /ص|م/, | ||
115 | + isPM: function (input) { | ||
116 | + return 'م' === input; | ||
117 | + }, | ||
118 | + meridiem: function (hour, minute, isLower) { | ||
119 | + if (hour < 12) { | ||
120 | + return 'ص'; | ||
121 | + } else { | ||
122 | + return 'م'; | ||
123 | + } | ||
124 | + }, | ||
125 | + calendar: { | ||
126 | + sameDay: '[اليوم عند الساعة] LT', | ||
127 | + nextDay: '[غدًا عند الساعة] LT', | ||
128 | + nextWeek: 'dddd [عند الساعة] LT', | ||
129 | + lastDay: '[أمس عند الساعة] LT', | ||
130 | + lastWeek: 'dddd [عند الساعة] LT', | ||
131 | + sameElse: 'L', | ||
132 | + }, | ||
133 | + relativeTime: { | ||
134 | + future: 'بعد %s', | ||
135 | + past: 'منذ %s', | ||
136 | + s: pluralize('s'), | ||
137 | + ss: pluralize('s'), | ||
138 | + m: pluralize('m'), | ||
139 | + mm: pluralize('m'), | ||
140 | + h: pluralize('h'), | ||
141 | + hh: pluralize('h'), | ||
142 | + d: pluralize('d'), | ||
143 | + dd: pluralize('d'), | ||
144 | + M: pluralize('M'), | ||
145 | + MM: pluralize('M'), | ||
146 | + y: pluralize('y'), | ||
147 | + yy: pluralize('y'), | ||
148 | + }, | ||
149 | + postformat: function (string) { | ||
150 | + return string.replace(/,/g, '،'); | ||
151 | + }, | ||
152 | + week: { | ||
153 | + dow: 0, // Sunday is the first day of the week. | ||
154 | + doy: 4, // The week that contains Jan 4th is the first week of the year. | ||
155 | + }, | ||
156 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : Arabic (Kuwait) [ar-kw] | ||
3 | +//! author : Nusret Parlak: https://github.com/nusretparlak | ||
4 | + | ||
5 | +import moment from '../moment'; | ||
6 | + | ||
7 | +export default moment.defineLocale('ar-kw', { | ||
8 | + months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( | ||
9 | + '_' | ||
10 | + ), | ||
11 | + monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( | ||
12 | + '_' | ||
13 | + ), | ||
14 | + weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), | ||
15 | + weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), | ||
16 | + weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), | ||
17 | + weekdaysParseExact: true, | ||
18 | + longDateFormat: { | ||
19 | + LT: 'HH:mm', | ||
20 | + LTS: 'HH:mm:ss', | ||
21 | + L: 'DD/MM/YYYY', | ||
22 | + LL: 'D MMMM YYYY', | ||
23 | + LLL: 'D MMMM YYYY HH:mm', | ||
24 | + LLLL: 'dddd D MMMM YYYY HH:mm', | ||
25 | + }, | ||
26 | + calendar: { | ||
27 | + sameDay: '[اليوم على الساعة] LT', | ||
28 | + nextDay: '[غدا على الساعة] LT', | ||
29 | + nextWeek: 'dddd [على الساعة] LT', | ||
30 | + lastDay: '[أمس على الساعة] LT', | ||
31 | + lastWeek: 'dddd [على الساعة] LT', | ||
32 | + sameElse: 'L', | ||
33 | + }, | ||
34 | + relativeTime: { | ||
35 | + future: 'في %s', | ||
36 | + past: 'منذ %s', | ||
37 | + s: 'ثوان', | ||
38 | + ss: '%d ثانية', | ||
39 | + m: 'دقيقة', | ||
40 | + mm: '%d دقائق', | ||
41 | + h: 'ساعة', | ||
42 | + hh: '%d ساعات', | ||
43 | + d: 'يوم', | ||
44 | + dd: '%d أيام', | ||
45 | + M: 'شهر', | ||
46 | + MM: '%d أشهر', | ||
47 | + y: 'سنة', | ||
48 | + yy: '%d سنوات', | ||
49 | + }, | ||
50 | + week: { | ||
51 | + dow: 0, // Sunday is the first day of the week. | ||
52 | + doy: 12, // The week that contains Jan 12th is the first week of the year. | ||
53 | + }, | ||
54 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : Arabic (Lybia) [ar-ly] | ||
3 | +//! author : Ali Hmer: https://github.com/kikoanis | ||
4 | + | ||
5 | +import moment from '../moment'; | ||
6 | + | ||
7 | +var symbolMap = { | ||
8 | + '1': '1', | ||
9 | + '2': '2', | ||
10 | + '3': '3', | ||
11 | + '4': '4', | ||
12 | + '5': '5', | ||
13 | + '6': '6', | ||
14 | + '7': '7', | ||
15 | + '8': '8', | ||
16 | + '9': '9', | ||
17 | + '0': '0', | ||
18 | + }, | ||
19 | + pluralForm = function (n) { | ||
20 | + return n === 0 | ||
21 | + ? 0 | ||
22 | + : n === 1 | ||
23 | + ? 1 | ||
24 | + : n === 2 | ||
25 | + ? 2 | ||
26 | + : n % 100 >= 3 && n % 100 <= 10 | ||
27 | + ? 3 | ||
28 | + : n % 100 >= 11 | ||
29 | + ? 4 | ||
30 | + : 5; | ||
31 | + }, | ||
32 | + plurals = { | ||
33 | + s: [ | ||
34 | + 'أقل من ثانية', | ||
35 | + 'ثانية واحدة', | ||
36 | + ['ثانيتان', 'ثانيتين'], | ||
37 | + '%d ثوان', | ||
38 | + '%d ثانية', | ||
39 | + '%d ثانية', | ||
40 | + ], | ||
41 | + m: [ | ||
42 | + 'أقل من دقيقة', | ||
43 | + 'دقيقة واحدة', | ||
44 | + ['دقيقتان', 'دقيقتين'], | ||
45 | + '%d دقائق', | ||
46 | + '%d دقيقة', | ||
47 | + '%d دقيقة', | ||
48 | + ], | ||
49 | + h: [ | ||
50 | + 'أقل من ساعة', | ||
51 | + 'ساعة واحدة', | ||
52 | + ['ساعتان', 'ساعتين'], | ||
53 | + '%d ساعات', | ||
54 | + '%d ساعة', | ||
55 | + '%d ساعة', | ||
56 | + ], | ||
57 | + d: [ | ||
58 | + 'أقل من يوم', | ||
59 | + 'يوم واحد', | ||
60 | + ['يومان', 'يومين'], | ||
61 | + '%d أيام', | ||
62 | + '%d يومًا', | ||
63 | + '%d يوم', | ||
64 | + ], | ||
65 | + M: [ | ||
66 | + 'أقل من شهر', | ||
67 | + 'شهر واحد', | ||
68 | + ['شهران', 'شهرين'], | ||
69 | + '%d أشهر', | ||
70 | + '%d شهرا', | ||
71 | + '%d شهر', | ||
72 | + ], | ||
73 | + y: [ | ||
74 | + 'أقل من عام', | ||
75 | + 'عام واحد', | ||
76 | + ['عامان', 'عامين'], | ||
77 | + '%d أعوام', | ||
78 | + '%d عامًا', | ||
79 | + '%d عام', | ||
80 | + ], | ||
81 | + }, | ||
82 | + pluralize = function (u) { | ||
83 | + return function (number, withoutSuffix, string, isFuture) { | ||
84 | + var f = pluralForm(number), | ||
85 | + str = plurals[u][pluralForm(number)]; | ||
86 | + if (f === 2) { | ||
87 | + str = str[withoutSuffix ? 0 : 1]; | ||
88 | + } | ||
89 | + return str.replace(/%d/i, number); | ||
90 | + }; | ||
91 | + }, | ||
92 | + months = [ | ||
93 | + 'يناير', | ||
94 | + 'فبراير', | ||
95 | + 'مارس', | ||
96 | + 'أبريل', | ||
97 | + 'مايو', | ||
98 | + 'يونيو', | ||
99 | + 'يوليو', | ||
100 | + 'أغسطس', | ||
101 | + 'سبتمبر', | ||
102 | + 'أكتوبر', | ||
103 | + 'نوفمبر', | ||
104 | + 'ديسمبر', | ||
105 | + ]; | ||
106 | + | ||
107 | +export default moment.defineLocale('ar-ly', { | ||
108 | + months: months, | ||
109 | + monthsShort: months, | ||
110 | + weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), | ||
111 | + weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), | ||
112 | + weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), | ||
113 | + weekdaysParseExact: true, | ||
114 | + longDateFormat: { | ||
115 | + LT: 'HH:mm', | ||
116 | + LTS: 'HH:mm:ss', | ||
117 | + L: 'D/\u200FM/\u200FYYYY', | ||
118 | + LL: 'D MMMM YYYY', | ||
119 | + LLL: 'D MMMM YYYY HH:mm', | ||
120 | + LLLL: 'dddd D MMMM YYYY HH:mm', | ||
121 | + }, | ||
122 | + meridiemParse: /ص|م/, | ||
123 | + isPM: function (input) { | ||
124 | + return 'م' === input; | ||
125 | + }, | ||
126 | + meridiem: function (hour, minute, isLower) { | ||
127 | + if (hour < 12) { | ||
128 | + return 'ص'; | ||
129 | + } else { | ||
130 | + return 'م'; | ||
131 | + } | ||
132 | + }, | ||
133 | + calendar: { | ||
134 | + sameDay: '[اليوم عند الساعة] LT', | ||
135 | + nextDay: '[غدًا عند الساعة] LT', | ||
136 | + nextWeek: 'dddd [عند الساعة] LT', | ||
137 | + lastDay: '[أمس عند الساعة] LT', | ||
138 | + lastWeek: 'dddd [عند الساعة] LT', | ||
139 | + sameElse: 'L', | ||
140 | + }, | ||
141 | + relativeTime: { | ||
142 | + future: 'بعد %s', | ||
143 | + past: 'منذ %s', | ||
144 | + s: pluralize('s'), | ||
145 | + ss: pluralize('s'), | ||
146 | + m: pluralize('m'), | ||
147 | + mm: pluralize('m'), | ||
148 | + h: pluralize('h'), | ||
149 | + hh: pluralize('h'), | ||
150 | + d: pluralize('d'), | ||
151 | + dd: pluralize('d'), | ||
152 | + M: pluralize('M'), | ||
153 | + MM: pluralize('M'), | ||
154 | + y: pluralize('y'), | ||
155 | + yy: pluralize('y'), | ||
156 | + }, | ||
157 | + preparse: function (string) { | ||
158 | + return string.replace(/،/g, ','); | ||
159 | + }, | ||
160 | + postformat: function (string) { | ||
161 | + return string | ||
162 | + .replace(/\d/g, function (match) { | ||
163 | + return symbolMap[match]; | ||
164 | + }) | ||
165 | + .replace(/,/g, '،'); | ||
166 | + }, | ||
167 | + week: { | ||
168 | + dow: 6, // Saturday is the first day of the week. | ||
169 | + doy: 12, // The week that contains Jan 12th is the first week of the year. | ||
170 | + }, | ||
171 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : Arabic (Morocco) [ar-ma] | ||
3 | +//! author : ElFadili Yassine : https://github.com/ElFadiliY | ||
4 | +//! author : Abdel Said : https://github.com/abdelsaid | ||
5 | + | ||
6 | +import moment from '../moment'; | ||
7 | + | ||
8 | +export default moment.defineLocale('ar-ma', { | ||
9 | + months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( | ||
10 | + '_' | ||
11 | + ), | ||
12 | + monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( | ||
13 | + '_' | ||
14 | + ), | ||
15 | + weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), | ||
16 | + weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), | ||
17 | + weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), | ||
18 | + weekdaysParseExact: true, | ||
19 | + longDateFormat: { | ||
20 | + LT: 'HH:mm', | ||
21 | + LTS: 'HH:mm:ss', | ||
22 | + L: 'DD/MM/YYYY', | ||
23 | + LL: 'D MMMM YYYY', | ||
24 | + LLL: 'D MMMM YYYY HH:mm', | ||
25 | + LLLL: 'dddd D MMMM YYYY HH:mm', | ||
26 | + }, | ||
27 | + calendar: { | ||
28 | + sameDay: '[اليوم على الساعة] LT', | ||
29 | + nextDay: '[غدا على الساعة] LT', | ||
30 | + nextWeek: 'dddd [على الساعة] LT', | ||
31 | + lastDay: '[أمس على الساعة] LT', | ||
32 | + lastWeek: 'dddd [على الساعة] LT', | ||
33 | + sameElse: 'L', | ||
34 | + }, | ||
35 | + relativeTime: { | ||
36 | + future: 'في %s', | ||
37 | + past: 'منذ %s', | ||
38 | + s: 'ثوان', | ||
39 | + ss: '%d ثانية', | ||
40 | + m: 'دقيقة', | ||
41 | + mm: '%d دقائق', | ||
42 | + h: 'ساعة', | ||
43 | + hh: '%d ساعات', | ||
44 | + d: 'يوم', | ||
45 | + dd: '%d أيام', | ||
46 | + M: 'شهر', | ||
47 | + MM: '%d أشهر', | ||
48 | + y: 'سنة', | ||
49 | + yy: '%d سنوات', | ||
50 | + }, | ||
51 | + week: { | ||
52 | + dow: 6, // Saturday is the first day of the week. | ||
53 | + doy: 12, // The week that contains Jan 12th is the first week of the year. | ||
54 | + }, | ||
55 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : Arabic (Saudi Arabia) [ar-sa] | ||
3 | +//! author : Suhail Alkowaileet : https://github.com/xsoh | ||
4 | + | ||
5 | +import moment from '../moment'; | ||
6 | + | ||
7 | +var symbolMap = { | ||
8 | + '1': '١', | ||
9 | + '2': '٢', | ||
10 | + '3': '٣', | ||
11 | + '4': '٤', | ||
12 | + '5': '٥', | ||
13 | + '6': '٦', | ||
14 | + '7': '٧', | ||
15 | + '8': '٨', | ||
16 | + '9': '٩', | ||
17 | + '0': '٠', | ||
18 | + }, | ||
19 | + numberMap = { | ||
20 | + '١': '1', | ||
21 | + '٢': '2', | ||
22 | + '٣': '3', | ||
23 | + '٤': '4', | ||
24 | + '٥': '5', | ||
25 | + '٦': '6', | ||
26 | + '٧': '7', | ||
27 | + '٨': '8', | ||
28 | + '٩': '9', | ||
29 | + '٠': '0', | ||
30 | + }; | ||
31 | + | ||
32 | +export default moment.defineLocale('ar-sa', { | ||
33 | + months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( | ||
34 | + '_' | ||
35 | + ), | ||
36 | + monthsShort: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( | ||
37 | + '_' | ||
38 | + ), | ||
39 | + weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), | ||
40 | + weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), | ||
41 | + weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), | ||
42 | + weekdaysParseExact: true, | ||
43 | + longDateFormat: { | ||
44 | + LT: 'HH:mm', | ||
45 | + LTS: 'HH:mm:ss', | ||
46 | + L: 'DD/MM/YYYY', | ||
47 | + LL: 'D MMMM YYYY', | ||
48 | + LLL: 'D MMMM YYYY HH:mm', | ||
49 | + LLLL: 'dddd D MMMM YYYY HH:mm', | ||
50 | + }, | ||
51 | + meridiemParse: /ص|م/, | ||
52 | + isPM: function (input) { | ||
53 | + return 'م' === input; | ||
54 | + }, | ||
55 | + meridiem: function (hour, minute, isLower) { | ||
56 | + if (hour < 12) { | ||
57 | + return 'ص'; | ||
58 | + } else { | ||
59 | + return 'م'; | ||
60 | + } | ||
61 | + }, | ||
62 | + calendar: { | ||
63 | + sameDay: '[اليوم على الساعة] LT', | ||
64 | + nextDay: '[غدا على الساعة] LT', | ||
65 | + nextWeek: 'dddd [على الساعة] LT', | ||
66 | + lastDay: '[أمس على الساعة] LT', | ||
67 | + lastWeek: 'dddd [على الساعة] LT', | ||
68 | + sameElse: 'L', | ||
69 | + }, | ||
70 | + relativeTime: { | ||
71 | + future: 'في %s', | ||
72 | + past: 'منذ %s', | ||
73 | + s: 'ثوان', | ||
74 | + ss: '%d ثانية', | ||
75 | + m: 'دقيقة', | ||
76 | + mm: '%d دقائق', | ||
77 | + h: 'ساعة', | ||
78 | + hh: '%d ساعات', | ||
79 | + d: 'يوم', | ||
80 | + dd: '%d أيام', | ||
81 | + M: 'شهر', | ||
82 | + MM: '%d أشهر', | ||
83 | + y: 'سنة', | ||
84 | + yy: '%d سنوات', | ||
85 | + }, | ||
86 | + preparse: function (string) { | ||
87 | + return string | ||
88 | + .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) { | ||
89 | + return numberMap[match]; | ||
90 | + }) | ||
91 | + .replace(/،/g, ','); | ||
92 | + }, | ||
93 | + postformat: function (string) { | ||
94 | + return string | ||
95 | + .replace(/\d/g, function (match) { | ||
96 | + return symbolMap[match]; | ||
97 | + }) | ||
98 | + .replace(/,/g, '،'); | ||
99 | + }, | ||
100 | + week: { | ||
101 | + dow: 0, // Sunday is the first day of the week. | ||
102 | + doy: 6, // The week that contains Jan 6th is the first week of the year. | ||
103 | + }, | ||
104 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : Arabic (Tunisia) [ar-tn] | ||
3 | +//! author : Nader Toukabri : https://github.com/naderio | ||
4 | + | ||
5 | +import moment from '../moment'; | ||
6 | + | ||
7 | +export default moment.defineLocale('ar-tn', { | ||
8 | + months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( | ||
9 | + '_' | ||
10 | + ), | ||
11 | + monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( | ||
12 | + '_' | ||
13 | + ), | ||
14 | + weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), | ||
15 | + weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), | ||
16 | + weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), | ||
17 | + weekdaysParseExact: true, | ||
18 | + longDateFormat: { | ||
19 | + LT: 'HH:mm', | ||
20 | + LTS: 'HH:mm:ss', | ||
21 | + L: 'DD/MM/YYYY', | ||
22 | + LL: 'D MMMM YYYY', | ||
23 | + LLL: 'D MMMM YYYY HH:mm', | ||
24 | + LLLL: 'dddd D MMMM YYYY HH:mm', | ||
25 | + }, | ||
26 | + calendar: { | ||
27 | + sameDay: '[اليوم على الساعة] LT', | ||
28 | + nextDay: '[غدا على الساعة] LT', | ||
29 | + nextWeek: 'dddd [على الساعة] LT', | ||
30 | + lastDay: '[أمس على الساعة] LT', | ||
31 | + lastWeek: 'dddd [على الساعة] LT', | ||
32 | + sameElse: 'L', | ||
33 | + }, | ||
34 | + relativeTime: { | ||
35 | + future: 'في %s', | ||
36 | + past: 'منذ %s', | ||
37 | + s: 'ثوان', | ||
38 | + ss: '%d ثانية', | ||
39 | + m: 'دقيقة', | ||
40 | + mm: '%d دقائق', | ||
41 | + h: 'ساعة', | ||
42 | + hh: '%d ساعات', | ||
43 | + d: 'يوم', | ||
44 | + dd: '%d أيام', | ||
45 | + M: 'شهر', | ||
46 | + MM: '%d أشهر', | ||
47 | + y: 'سنة', | ||
48 | + yy: '%d سنوات', | ||
49 | + }, | ||
50 | + week: { | ||
51 | + dow: 1, // Monday is the first day of the week. | ||
52 | + doy: 4, // The week that contains Jan 4th is the first week of the year. | ||
53 | + }, | ||
54 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : Arabic [ar] | ||
3 | +//! author : Abdel Said: https://github.com/abdelsaid | ||
4 | +//! author : Ahmed Elkhatib | ||
5 | +//! author : forabi https://github.com/forabi | ||
6 | + | ||
7 | +import moment from '../moment'; | ||
8 | + | ||
9 | +var symbolMap = { | ||
10 | + '1': '١', | ||
11 | + '2': '٢', | ||
12 | + '3': '٣', | ||
13 | + '4': '٤', | ||
14 | + '5': '٥', | ||
15 | + '6': '٦', | ||
16 | + '7': '٧', | ||
17 | + '8': '٨', | ||
18 | + '9': '٩', | ||
19 | + '0': '٠', | ||
20 | + }, | ||
21 | + numberMap = { | ||
22 | + '١': '1', | ||
23 | + '٢': '2', | ||
24 | + '٣': '3', | ||
25 | + '٤': '4', | ||
26 | + '٥': '5', | ||
27 | + '٦': '6', | ||
28 | + '٧': '7', | ||
29 | + '٨': '8', | ||
30 | + '٩': '9', | ||
31 | + '٠': '0', | ||
32 | + }, | ||
33 | + pluralForm = function (n) { | ||
34 | + return n === 0 | ||
35 | + ? 0 | ||
36 | + : n === 1 | ||
37 | + ? 1 | ||
38 | + : n === 2 | ||
39 | + ? 2 | ||
40 | + : n % 100 >= 3 && n % 100 <= 10 | ||
41 | + ? 3 | ||
42 | + : n % 100 >= 11 | ||
43 | + ? 4 | ||
44 | + : 5; | ||
45 | + }, | ||
46 | + plurals = { | ||
47 | + s: [ | ||
48 | + 'أقل من ثانية', | ||
49 | + 'ثانية واحدة', | ||
50 | + ['ثانيتان', 'ثانيتين'], | ||
51 | + '%d ثوان', | ||
52 | + '%d ثانية', | ||
53 | + '%d ثانية', | ||
54 | + ], | ||
55 | + m: [ | ||
56 | + 'أقل من دقيقة', | ||
57 | + 'دقيقة واحدة', | ||
58 | + ['دقيقتان', 'دقيقتين'], | ||
59 | + '%d دقائق', | ||
60 | + '%d دقيقة', | ||
61 | + '%d دقيقة', | ||
62 | + ], | ||
63 | + h: [ | ||
64 | + 'أقل من ساعة', | ||
65 | + 'ساعة واحدة', | ||
66 | + ['ساعتان', 'ساعتين'], | ||
67 | + '%d ساعات', | ||
68 | + '%d ساعة', | ||
69 | + '%d ساعة', | ||
70 | + ], | ||
71 | + d: [ | ||
72 | + 'أقل من يوم', | ||
73 | + 'يوم واحد', | ||
74 | + ['يومان', 'يومين'], | ||
75 | + '%d أيام', | ||
76 | + '%d يومًا', | ||
77 | + '%d يوم', | ||
78 | + ], | ||
79 | + M: [ | ||
80 | + 'أقل من شهر', | ||
81 | + 'شهر واحد', | ||
82 | + ['شهران', 'شهرين'], | ||
83 | + '%d أشهر', | ||
84 | + '%d شهرا', | ||
85 | + '%d شهر', | ||
86 | + ], | ||
87 | + y: [ | ||
88 | + 'أقل من عام', | ||
89 | + 'عام واحد', | ||
90 | + ['عامان', 'عامين'], | ||
91 | + '%d أعوام', | ||
92 | + '%d عامًا', | ||
93 | + '%d عام', | ||
94 | + ], | ||
95 | + }, | ||
96 | + pluralize = function (u) { | ||
97 | + return function (number, withoutSuffix, string, isFuture) { | ||
98 | + var f = pluralForm(number), | ||
99 | + str = plurals[u][pluralForm(number)]; | ||
100 | + if (f === 2) { | ||
101 | + str = str[withoutSuffix ? 0 : 1]; | ||
102 | + } | ||
103 | + return str.replace(/%d/i, number); | ||
104 | + }; | ||
105 | + }, | ||
106 | + months = [ | ||
107 | + 'يناير', | ||
108 | + 'فبراير', | ||
109 | + 'مارس', | ||
110 | + 'أبريل', | ||
111 | + 'مايو', | ||
112 | + 'يونيو', | ||
113 | + 'يوليو', | ||
114 | + 'أغسطس', | ||
115 | + 'سبتمبر', | ||
116 | + 'أكتوبر', | ||
117 | + 'نوفمبر', | ||
118 | + 'ديسمبر', | ||
119 | + ]; | ||
120 | + | ||
121 | +export default moment.defineLocale('ar', { | ||
122 | + months: months, | ||
123 | + monthsShort: months, | ||
124 | + weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), | ||
125 | + weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), | ||
126 | + weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), | ||
127 | + weekdaysParseExact: true, | ||
128 | + longDateFormat: { | ||
129 | + LT: 'HH:mm', | ||
130 | + LTS: 'HH:mm:ss', | ||
131 | + L: 'D/\u200FM/\u200FYYYY', | ||
132 | + LL: 'D MMMM YYYY', | ||
133 | + LLL: 'D MMMM YYYY HH:mm', | ||
134 | + LLLL: 'dddd D MMMM YYYY HH:mm', | ||
135 | + }, | ||
136 | + meridiemParse: /ص|م/, | ||
137 | + isPM: function (input) { | ||
138 | + return 'م' === input; | ||
139 | + }, | ||
140 | + meridiem: function (hour, minute, isLower) { | ||
141 | + if (hour < 12) { | ||
142 | + return 'ص'; | ||
143 | + } else { | ||
144 | + return 'م'; | ||
145 | + } | ||
146 | + }, | ||
147 | + calendar: { | ||
148 | + sameDay: '[اليوم عند الساعة] LT', | ||
149 | + nextDay: '[غدًا عند الساعة] LT', | ||
150 | + nextWeek: 'dddd [عند الساعة] LT', | ||
151 | + lastDay: '[أمس عند الساعة] LT', | ||
152 | + lastWeek: 'dddd [عند الساعة] LT', | ||
153 | + sameElse: 'L', | ||
154 | + }, | ||
155 | + relativeTime: { | ||
156 | + future: 'بعد %s', | ||
157 | + past: 'منذ %s', | ||
158 | + s: pluralize('s'), | ||
159 | + ss: pluralize('s'), | ||
160 | + m: pluralize('m'), | ||
161 | + mm: pluralize('m'), | ||
162 | + h: pluralize('h'), | ||
163 | + hh: pluralize('h'), | ||
164 | + d: pluralize('d'), | ||
165 | + dd: pluralize('d'), | ||
166 | + M: pluralize('M'), | ||
167 | + MM: pluralize('M'), | ||
168 | + y: pluralize('y'), | ||
169 | + yy: pluralize('y'), | ||
170 | + }, | ||
171 | + preparse: function (string) { | ||
172 | + return string | ||
173 | + .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) { | ||
174 | + return numberMap[match]; | ||
175 | + }) | ||
176 | + .replace(/،/g, ','); | ||
177 | + }, | ||
178 | + postformat: function (string) { | ||
179 | + return string | ||
180 | + .replace(/\d/g, function (match) { | ||
181 | + return symbolMap[match]; | ||
182 | + }) | ||
183 | + .replace(/,/g, '،'); | ||
184 | + }, | ||
185 | + week: { | ||
186 | + dow: 6, // Saturday is the first day of the week. | ||
187 | + doy: 12, // The week that contains Jan 12th is the first week of the year. | ||
188 | + }, | ||
189 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : Azerbaijani [az] | ||
3 | +//! author : topchiyev : https://github.com/topchiyev | ||
4 | + | ||
5 | +import moment from '../moment'; | ||
6 | + | ||
7 | +var suffixes = { | ||
8 | + 1: '-inci', | ||
9 | + 5: '-inci', | ||
10 | + 8: '-inci', | ||
11 | + 70: '-inci', | ||
12 | + 80: '-inci', | ||
13 | + 2: '-nci', | ||
14 | + 7: '-nci', | ||
15 | + 20: '-nci', | ||
16 | + 50: '-nci', | ||
17 | + 3: '-üncü', | ||
18 | + 4: '-üncü', | ||
19 | + 100: '-üncü', | ||
20 | + 6: '-ncı', | ||
21 | + 9: '-uncu', | ||
22 | + 10: '-uncu', | ||
23 | + 30: '-uncu', | ||
24 | + 60: '-ıncı', | ||
25 | + 90: '-ıncı', | ||
26 | +}; | ||
27 | + | ||
28 | +export default moment.defineLocale('az', { | ||
29 | + months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split( | ||
30 | + '_' | ||
31 | + ), | ||
32 | + monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'), | ||
33 | + weekdays: 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split( | ||
34 | + '_' | ||
35 | + ), | ||
36 | + weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'), | ||
37 | + weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'), | ||
38 | + weekdaysParseExact: true, | ||
39 | + longDateFormat: { | ||
40 | + LT: 'HH:mm', | ||
41 | + LTS: 'HH:mm:ss', | ||
42 | + L: 'DD.MM.YYYY', | ||
43 | + LL: 'D MMMM YYYY', | ||
44 | + LLL: 'D MMMM YYYY HH:mm', | ||
45 | + LLLL: 'dddd, D MMMM YYYY HH:mm', | ||
46 | + }, | ||
47 | + calendar: { | ||
48 | + sameDay: '[bugün saat] LT', | ||
49 | + nextDay: '[sabah saat] LT', | ||
50 | + nextWeek: '[gələn həftə] dddd [saat] LT', | ||
51 | + lastDay: '[dünən] LT', | ||
52 | + lastWeek: '[keçən həftə] dddd [saat] LT', | ||
53 | + sameElse: 'L', | ||
54 | + }, | ||
55 | + relativeTime: { | ||
56 | + future: '%s sonra', | ||
57 | + past: '%s əvvəl', | ||
58 | + s: 'birneçə saniyə', | ||
59 | + ss: '%d saniyə', | ||
60 | + m: 'bir dəqiqə', | ||
61 | + mm: '%d dəqiqə', | ||
62 | + h: 'bir saat', | ||
63 | + hh: '%d saat', | ||
64 | + d: 'bir gün', | ||
65 | + dd: '%d gün', | ||
66 | + M: 'bir ay', | ||
67 | + MM: '%d ay', | ||
68 | + y: 'bir il', | ||
69 | + yy: '%d il', | ||
70 | + }, | ||
71 | + meridiemParse: /gecə|səhər|gündüz|axşam/, | ||
72 | + isPM: function (input) { | ||
73 | + return /^(gündüz|axşam)$/.test(input); | ||
74 | + }, | ||
75 | + meridiem: function (hour, minute, isLower) { | ||
76 | + if (hour < 4) { | ||
77 | + return 'gecə'; | ||
78 | + } else if (hour < 12) { | ||
79 | + return 'səhər'; | ||
80 | + } else if (hour < 17) { | ||
81 | + return 'gündüz'; | ||
82 | + } else { | ||
83 | + return 'axşam'; | ||
84 | + } | ||
85 | + }, | ||
86 | + dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/, | ||
87 | + ordinal: function (number) { | ||
88 | + if (number === 0) { | ||
89 | + // special case for zero | ||
90 | + return number + '-ıncı'; | ||
91 | + } | ||
92 | + var a = number % 10, | ||
93 | + b = (number % 100) - a, | ||
94 | + c = number >= 100 ? 100 : null; | ||
95 | + return number + (suffixes[a] || suffixes[b] || suffixes[c]); | ||
96 | + }, | ||
97 | + week: { | ||
98 | + dow: 1, // Monday is the first day of the week. | ||
99 | + doy: 7, // The week that contains Jan 7th is the first week of the year. | ||
100 | + }, | ||
101 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : Belarusian [be] | ||
3 | +//! author : Dmitry Demidov : https://github.com/demidov91 | ||
4 | +//! author: Praleska: http://praleska.pro/ | ||
5 | +//! Author : Menelion Elensúle : https://github.com/Oire | ||
6 | + | ||
7 | +import moment from '../moment'; | ||
8 | + | ||
9 | +function plural(word, num) { | ||
10 | + var forms = word.split('_'); | ||
11 | + return num % 10 === 1 && num % 100 !== 11 | ||
12 | + ? forms[0] | ||
13 | + : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) | ||
14 | + ? forms[1] | ||
15 | + : forms[2]; | ||
16 | +} | ||
17 | +function relativeTimeWithPlural(number, withoutSuffix, key) { | ||
18 | + var format = { | ||
19 | + ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд', | ||
20 | + mm: withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін', | ||
21 | + hh: withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін', | ||
22 | + dd: 'дзень_дні_дзён', | ||
23 | + MM: 'месяц_месяцы_месяцаў', | ||
24 | + yy: 'год_гады_гадоў', | ||
25 | + }; | ||
26 | + if (key === 'm') { | ||
27 | + return withoutSuffix ? 'хвіліна' : 'хвіліну'; | ||
28 | + } else if (key === 'h') { | ||
29 | + return withoutSuffix ? 'гадзіна' : 'гадзіну'; | ||
30 | + } else { | ||
31 | + return number + ' ' + plural(format[key], +number); | ||
32 | + } | ||
33 | +} | ||
34 | + | ||
35 | +export default moment.defineLocale('be', { | ||
36 | + months: { | ||
37 | + format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split( | ||
38 | + '_' | ||
39 | + ), | ||
40 | + standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split( | ||
41 | + '_' | ||
42 | + ), | ||
43 | + }, | ||
44 | + monthsShort: 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split( | ||
45 | + '_' | ||
46 | + ), | ||
47 | + weekdays: { | ||
48 | + format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split( | ||
49 | + '_' | ||
50 | + ), | ||
51 | + standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split( | ||
52 | + '_' | ||
53 | + ), | ||
54 | + isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/, | ||
55 | + }, | ||
56 | + weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'), | ||
57 | + weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'), | ||
58 | + longDateFormat: { | ||
59 | + LT: 'HH:mm', | ||
60 | + LTS: 'HH:mm:ss', | ||
61 | + L: 'DD.MM.YYYY', | ||
62 | + LL: 'D MMMM YYYY г.', | ||
63 | + LLL: 'D MMMM YYYY г., HH:mm', | ||
64 | + LLLL: 'dddd, D MMMM YYYY г., HH:mm', | ||
65 | + }, | ||
66 | + calendar: { | ||
67 | + sameDay: '[Сёння ў] LT', | ||
68 | + nextDay: '[Заўтра ў] LT', | ||
69 | + lastDay: '[Учора ў] LT', | ||
70 | + nextWeek: function () { | ||
71 | + return '[У] dddd [ў] LT'; | ||
72 | + }, | ||
73 | + lastWeek: function () { | ||
74 | + switch (this.day()) { | ||
75 | + case 0: | ||
76 | + case 3: | ||
77 | + case 5: | ||
78 | + case 6: | ||
79 | + return '[У мінулую] dddd [ў] LT'; | ||
80 | + case 1: | ||
81 | + case 2: | ||
82 | + case 4: | ||
83 | + return '[У мінулы] dddd [ў] LT'; | ||
84 | + } | ||
85 | + }, | ||
86 | + sameElse: 'L', | ||
87 | + }, | ||
88 | + relativeTime: { | ||
89 | + future: 'праз %s', | ||
90 | + past: '%s таму', | ||
91 | + s: 'некалькі секунд', | ||
92 | + m: relativeTimeWithPlural, | ||
93 | + mm: relativeTimeWithPlural, | ||
94 | + h: relativeTimeWithPlural, | ||
95 | + hh: relativeTimeWithPlural, | ||
96 | + d: 'дзень', | ||
97 | + dd: relativeTimeWithPlural, | ||
98 | + M: 'месяц', | ||
99 | + MM: relativeTimeWithPlural, | ||
100 | + y: 'год', | ||
101 | + yy: relativeTimeWithPlural, | ||
102 | + }, | ||
103 | + meridiemParse: /ночы|раніцы|дня|вечара/, | ||
104 | + isPM: function (input) { | ||
105 | + return /^(дня|вечара)$/.test(input); | ||
106 | + }, | ||
107 | + meridiem: function (hour, minute, isLower) { | ||
108 | + if (hour < 4) { | ||
109 | + return 'ночы'; | ||
110 | + } else if (hour < 12) { | ||
111 | + return 'раніцы'; | ||
112 | + } else if (hour < 17) { | ||
113 | + return 'дня'; | ||
114 | + } else { | ||
115 | + return 'вечара'; | ||
116 | + } | ||
117 | + }, | ||
118 | + dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/, | ||
119 | + ordinal: function (number, period) { | ||
120 | + switch (period) { | ||
121 | + case 'M': | ||
122 | + case 'd': | ||
123 | + case 'DDD': | ||
124 | + case 'w': | ||
125 | + case 'W': | ||
126 | + return (number % 10 === 2 || number % 10 === 3) && | ||
127 | + number % 100 !== 12 && | ||
128 | + number % 100 !== 13 | ||
129 | + ? number + '-і' | ||
130 | + : number + '-ы'; | ||
131 | + case 'D': | ||
132 | + return number + '-га'; | ||
133 | + default: | ||
134 | + return number; | ||
135 | + } | ||
136 | + }, | ||
137 | + week: { | ||
138 | + dow: 1, // Monday is the first day of the week. | ||
139 | + doy: 7, // The week that contains Jan 7th is the first week of the year. | ||
140 | + }, | ||
141 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : Bulgarian [bg] | ||
3 | +//! author : Krasen Borisov : https://github.com/kraz | ||
4 | + | ||
5 | +import moment from '../moment'; | ||
6 | + | ||
7 | +export default moment.defineLocale('bg', { | ||
8 | + months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split( | ||
9 | + '_' | ||
10 | + ), | ||
11 | + monthsShort: 'яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'), | ||
12 | + weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split( | ||
13 | + '_' | ||
14 | + ), | ||
15 | + weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'), | ||
16 | + weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'), | ||
17 | + longDateFormat: { | ||
18 | + LT: 'H:mm', | ||
19 | + LTS: 'H:mm:ss', | ||
20 | + L: 'D.MM.YYYY', | ||
21 | + LL: 'D MMMM YYYY', | ||
22 | + LLL: 'D MMMM YYYY H:mm', | ||
23 | + LLLL: 'dddd, D MMMM YYYY H:mm', | ||
24 | + }, | ||
25 | + calendar: { | ||
26 | + sameDay: '[Днес в] LT', | ||
27 | + nextDay: '[Утре в] LT', | ||
28 | + nextWeek: 'dddd [в] LT', | ||
29 | + lastDay: '[Вчера в] LT', | ||
30 | + lastWeek: function () { | ||
31 | + switch (this.day()) { | ||
32 | + case 0: | ||
33 | + case 3: | ||
34 | + case 6: | ||
35 | + return '[Миналата] dddd [в] LT'; | ||
36 | + case 1: | ||
37 | + case 2: | ||
38 | + case 4: | ||
39 | + case 5: | ||
40 | + return '[Миналия] dddd [в] LT'; | ||
41 | + } | ||
42 | + }, | ||
43 | + sameElse: 'L', | ||
44 | + }, | ||
45 | + relativeTime: { | ||
46 | + future: 'след %s', | ||
47 | + past: 'преди %s', | ||
48 | + s: 'няколко секунди', | ||
49 | + ss: '%d секунди', | ||
50 | + m: 'минута', | ||
51 | + mm: '%d минути', | ||
52 | + h: 'час', | ||
53 | + hh: '%d часа', | ||
54 | + d: 'ден', | ||
55 | + dd: '%d дена', | ||
56 | + M: 'месец', | ||
57 | + MM: '%d месеца', | ||
58 | + y: 'година', | ||
59 | + yy: '%d години', | ||
60 | + }, | ||
61 | + dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/, | ||
62 | + ordinal: function (number) { | ||
63 | + var lastDigit = number % 10, | ||
64 | + last2Digits = number % 100; | ||
65 | + if (number === 0) { | ||
66 | + return number + '-ев'; | ||
67 | + } else if (last2Digits === 0) { | ||
68 | + return number + '-ен'; | ||
69 | + } else if (last2Digits > 10 && last2Digits < 20) { | ||
70 | + return number + '-ти'; | ||
71 | + } else if (lastDigit === 1) { | ||
72 | + return number + '-ви'; | ||
73 | + } else if (lastDigit === 2) { | ||
74 | + return number + '-ри'; | ||
75 | + } else if (lastDigit === 7 || lastDigit === 8) { | ||
76 | + return number + '-ми'; | ||
77 | + } else { | ||
78 | + return number + '-ти'; | ||
79 | + } | ||
80 | + }, | ||
81 | + week: { | ||
82 | + dow: 1, // Monday is the first day of the week. | ||
83 | + doy: 7, // The week that contains Jan 7th is the first week of the year. | ||
84 | + }, | ||
85 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : Bambara [bm] | ||
3 | +//! author : Estelle Comment : https://github.com/estellecomment | ||
4 | +// Language contact person : Abdoufata Kane : https://github.com/abdoufata | ||
5 | + | ||
6 | +import moment from '../moment'; | ||
7 | + | ||
8 | +export default moment.defineLocale('bm', { | ||
9 | + months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split( | ||
10 | + '_' | ||
11 | + ), | ||
12 | + monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'), | ||
13 | + weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'), | ||
14 | + weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'), | ||
15 | + weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'), | ||
16 | + longDateFormat: { | ||
17 | + LT: 'HH:mm', | ||
18 | + LTS: 'HH:mm:ss', | ||
19 | + L: 'DD/MM/YYYY', | ||
20 | + LL: 'MMMM [tile] D [san] YYYY', | ||
21 | + LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm', | ||
22 | + LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm', | ||
23 | + }, | ||
24 | + calendar: { | ||
25 | + sameDay: '[Bi lɛrɛ] LT', | ||
26 | + nextDay: '[Sini lɛrɛ] LT', | ||
27 | + nextWeek: 'dddd [don lɛrɛ] LT', | ||
28 | + lastDay: '[Kunu lɛrɛ] LT', | ||
29 | + lastWeek: 'dddd [tɛmɛnen lɛrɛ] LT', | ||
30 | + sameElse: 'L', | ||
31 | + }, | ||
32 | + relativeTime: { | ||
33 | + future: '%s kɔnɔ', | ||
34 | + past: 'a bɛ %s bɔ', | ||
35 | + s: 'sanga dama dama', | ||
36 | + ss: 'sekondi %d', | ||
37 | + m: 'miniti kelen', | ||
38 | + mm: 'miniti %d', | ||
39 | + h: 'lɛrɛ kelen', | ||
40 | + hh: 'lɛrɛ %d', | ||
41 | + d: 'tile kelen', | ||
42 | + dd: 'tile %d', | ||
43 | + M: 'kalo kelen', | ||
44 | + MM: 'kalo %d', | ||
45 | + y: 'san kelen', | ||
46 | + yy: 'san %d', | ||
47 | + }, | ||
48 | + week: { | ||
49 | + dow: 1, // Monday is the first day of the week. | ||
50 | + doy: 4, // The week that contains Jan 4th is the first week of the year. | ||
51 | + }, | ||
52 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : Bengali [bn] | ||
3 | +//! author : Kaushik Gandhi : https://github.com/kaushikgandhi | ||
4 | + | ||
5 | +import moment from '../moment'; | ||
6 | + | ||
7 | +var symbolMap = { | ||
8 | + '1': '১', | ||
9 | + '2': '২', | ||
10 | + '3': '৩', | ||
11 | + '4': '৪', | ||
12 | + '5': '৫', | ||
13 | + '6': '৬', | ||
14 | + '7': '৭', | ||
15 | + '8': '৮', | ||
16 | + '9': '৯', | ||
17 | + '0': '০', | ||
18 | + }, | ||
19 | + numberMap = { | ||
20 | + '১': '1', | ||
21 | + '২': '2', | ||
22 | + '৩': '3', | ||
23 | + '৪': '4', | ||
24 | + '৫': '5', | ||
25 | + '৬': '6', | ||
26 | + '৭': '7', | ||
27 | + '৮': '8', | ||
28 | + '৯': '9', | ||
29 | + '০': '0', | ||
30 | + }; | ||
31 | + | ||
32 | +export default moment.defineLocale('bn', { | ||
33 | + months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split( | ||
34 | + '_' | ||
35 | + ), | ||
36 | + monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split( | ||
37 | + '_' | ||
38 | + ), | ||
39 | + weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split( | ||
40 | + '_' | ||
41 | + ), | ||
42 | + weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'), | ||
43 | + weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'), | ||
44 | + longDateFormat: { | ||
45 | + LT: 'A h:mm সময়', | ||
46 | + LTS: 'A h:mm:ss সময়', | ||
47 | + L: 'DD/MM/YYYY', | ||
48 | + LL: 'D MMMM YYYY', | ||
49 | + LLL: 'D MMMM YYYY, A h:mm সময়', | ||
50 | + LLLL: 'dddd, D MMMM YYYY, A h:mm সময়', | ||
51 | + }, | ||
52 | + calendar: { | ||
53 | + sameDay: '[আজ] LT', | ||
54 | + nextDay: '[আগামীকাল] LT', | ||
55 | + nextWeek: 'dddd, LT', | ||
56 | + lastDay: '[গতকাল] LT', | ||
57 | + lastWeek: '[গত] dddd, LT', | ||
58 | + sameElse: 'L', | ||
59 | + }, | ||
60 | + relativeTime: { | ||
61 | + future: '%s পরে', | ||
62 | + past: '%s আগে', | ||
63 | + s: 'কয়েক সেকেন্ড', | ||
64 | + ss: '%d সেকেন্ড', | ||
65 | + m: 'এক মিনিট', | ||
66 | + mm: '%d মিনিট', | ||
67 | + h: 'এক ঘন্টা', | ||
68 | + hh: '%d ঘন্টা', | ||
69 | + d: 'এক দিন', | ||
70 | + dd: '%d দিন', | ||
71 | + M: 'এক মাস', | ||
72 | + MM: '%d মাস', | ||
73 | + y: 'এক বছর', | ||
74 | + yy: '%d বছর', | ||
75 | + }, | ||
76 | + preparse: function (string) { | ||
77 | + return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) { | ||
78 | + return numberMap[match]; | ||
79 | + }); | ||
80 | + }, | ||
81 | + postformat: function (string) { | ||
82 | + return string.replace(/\d/g, function (match) { | ||
83 | + return symbolMap[match]; | ||
84 | + }); | ||
85 | + }, | ||
86 | + meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/, | ||
87 | + meridiemHour: function (hour, meridiem) { | ||
88 | + if (hour === 12) { | ||
89 | + hour = 0; | ||
90 | + } | ||
91 | + if ( | ||
92 | + (meridiem === 'রাত' && hour >= 4) || | ||
93 | + (meridiem === 'দুপুর' && hour < 5) || | ||
94 | + meridiem === 'বিকাল' | ||
95 | + ) { | ||
96 | + return hour + 12; | ||
97 | + } else { | ||
98 | + return hour; | ||
99 | + } | ||
100 | + }, | ||
101 | + meridiem: function (hour, minute, isLower) { | ||
102 | + if (hour < 4) { | ||
103 | + return 'রাত'; | ||
104 | + } else if (hour < 10) { | ||
105 | + return 'সকাল'; | ||
106 | + } else if (hour < 17) { | ||
107 | + return 'দুপুর'; | ||
108 | + } else if (hour < 20) { | ||
109 | + return 'বিকাল'; | ||
110 | + } else { | ||
111 | + return 'রাত'; | ||
112 | + } | ||
113 | + }, | ||
114 | + week: { | ||
115 | + dow: 0, // Sunday is the first day of the week. | ||
116 | + doy: 6, // The week that contains Jan 6th is the first week of the year. | ||
117 | + }, | ||
118 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : Tibetan [bo] | ||
3 | +//! author : Thupten N. Chakrishar : https://github.com/vajradog | ||
4 | + | ||
5 | +import moment from '../moment'; | ||
6 | + | ||
7 | +var symbolMap = { | ||
8 | + '1': '༡', | ||
9 | + '2': '༢', | ||
10 | + '3': '༣', | ||
11 | + '4': '༤', | ||
12 | + '5': '༥', | ||
13 | + '6': '༦', | ||
14 | + '7': '༧', | ||
15 | + '8': '༨', | ||
16 | + '9': '༩', | ||
17 | + '0': '༠', | ||
18 | + }, | ||
19 | + numberMap = { | ||
20 | + '༡': '1', | ||
21 | + '༢': '2', | ||
22 | + '༣': '3', | ||
23 | + '༤': '4', | ||
24 | + '༥': '5', | ||
25 | + '༦': '6', | ||
26 | + '༧': '7', | ||
27 | + '༨': '8', | ||
28 | + '༩': '9', | ||
29 | + '༠': '0', | ||
30 | + }; | ||
31 | + | ||
32 | +export default moment.defineLocale('bo', { | ||
33 | + months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split( | ||
34 | + '_' | ||
35 | + ), | ||
36 | + monthsShort: 'ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12'.split( | ||
37 | + '_' | ||
38 | + ), | ||
39 | + monthsShortRegex: /^(ཟླ་\d{1,2})/, | ||
40 | + monthsParseExact: true, | ||
41 | + weekdays: 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split( | ||
42 | + '_' | ||
43 | + ), | ||
44 | + weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split( | ||
45 | + '_' | ||
46 | + ), | ||
47 | + weekdaysMin: 'ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན'.split('_'), | ||
48 | + longDateFormat: { | ||
49 | + LT: 'A h:mm', | ||
50 | + LTS: 'A h:mm:ss', | ||
51 | + L: 'DD/MM/YYYY', | ||
52 | + LL: 'D MMMM YYYY', | ||
53 | + LLL: 'D MMMM YYYY, A h:mm', | ||
54 | + LLLL: 'dddd, D MMMM YYYY, A h:mm', | ||
55 | + }, | ||
56 | + calendar: { | ||
57 | + sameDay: '[དི་རིང] LT', | ||
58 | + nextDay: '[སང་ཉིན] LT', | ||
59 | + nextWeek: '[བདུན་ཕྲག་རྗེས་མ], LT', | ||
60 | + lastDay: '[ཁ་སང] LT', | ||
61 | + lastWeek: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT', | ||
62 | + sameElse: 'L', | ||
63 | + }, | ||
64 | + relativeTime: { | ||
65 | + future: '%s ལ་', | ||
66 | + past: '%s སྔན་ལ', | ||
67 | + s: 'ལམ་སང', | ||
68 | + ss: '%d སྐར་ཆ།', | ||
69 | + m: 'སྐར་མ་གཅིག', | ||
70 | + mm: '%d སྐར་མ', | ||
71 | + h: 'ཆུ་ཚོད་གཅིག', | ||
72 | + hh: '%d ཆུ་ཚོད', | ||
73 | + d: 'ཉིན་གཅིག', | ||
74 | + dd: '%d ཉིན་', | ||
75 | + M: 'ཟླ་བ་གཅིག', | ||
76 | + MM: '%d ཟླ་བ', | ||
77 | + y: 'ལོ་གཅིག', | ||
78 | + yy: '%d ལོ', | ||
79 | + }, | ||
80 | + preparse: function (string) { | ||
81 | + return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) { | ||
82 | + return numberMap[match]; | ||
83 | + }); | ||
84 | + }, | ||
85 | + postformat: function (string) { | ||
86 | + return string.replace(/\d/g, function (match) { | ||
87 | + return symbolMap[match]; | ||
88 | + }); | ||
89 | + }, | ||
90 | + meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/, | ||
91 | + meridiemHour: function (hour, meridiem) { | ||
92 | + if (hour === 12) { | ||
93 | + hour = 0; | ||
94 | + } | ||
95 | + if ( | ||
96 | + (meridiem === 'མཚན་མོ' && hour >= 4) || | ||
97 | + (meridiem === 'ཉིན་གུང' && hour < 5) || | ||
98 | + meridiem === 'དགོང་དག' | ||
99 | + ) { | ||
100 | + return hour + 12; | ||
101 | + } else { | ||
102 | + return hour; | ||
103 | + } | ||
104 | + }, | ||
105 | + meridiem: function (hour, minute, isLower) { | ||
106 | + if (hour < 4) { | ||
107 | + return 'མཚན་མོ'; | ||
108 | + } else if (hour < 10) { | ||
109 | + return 'ཞོགས་ཀས'; | ||
110 | + } else if (hour < 17) { | ||
111 | + return 'ཉིན་གུང'; | ||
112 | + } else if (hour < 20) { | ||
113 | + return 'དགོང་དག'; | ||
114 | + } else { | ||
115 | + return 'མཚན་མོ'; | ||
116 | + } | ||
117 | + }, | ||
118 | + week: { | ||
119 | + dow: 0, // Sunday is the first day of the week. | ||
120 | + doy: 6, // The week that contains Jan 6th is the first week of the year. | ||
121 | + }, | ||
122 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : Breton [br] | ||
3 | +//! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou | ||
4 | + | ||
5 | +import moment from '../moment'; | ||
6 | + | ||
7 | +function relativeTimeWithMutation(number, withoutSuffix, key) { | ||
8 | + var format = { | ||
9 | + mm: 'munutenn', | ||
10 | + MM: 'miz', | ||
11 | + dd: 'devezh', | ||
12 | + }; | ||
13 | + return number + ' ' + mutation(format[key], number); | ||
14 | +} | ||
15 | +function specialMutationForYears(number) { | ||
16 | + switch (lastNumber(number)) { | ||
17 | + case 1: | ||
18 | + case 3: | ||
19 | + case 4: | ||
20 | + case 5: | ||
21 | + case 9: | ||
22 | + return number + ' bloaz'; | ||
23 | + default: | ||
24 | + return number + ' vloaz'; | ||
25 | + } | ||
26 | +} | ||
27 | +function lastNumber(number) { | ||
28 | + if (number > 9) { | ||
29 | + return lastNumber(number % 10); | ||
30 | + } | ||
31 | + return number; | ||
32 | +} | ||
33 | +function mutation(text, number) { | ||
34 | + if (number === 2) { | ||
35 | + return softMutation(text); | ||
36 | + } | ||
37 | + return text; | ||
38 | +} | ||
39 | +function softMutation(text) { | ||
40 | + var mutationTable = { | ||
41 | + m: 'v', | ||
42 | + b: 'v', | ||
43 | + d: 'z', | ||
44 | + }; | ||
45 | + if (mutationTable[text.charAt(0)] === undefined) { | ||
46 | + return text; | ||
47 | + } | ||
48 | + return mutationTable[text.charAt(0)] + text.substring(1); | ||
49 | +} | ||
50 | + | ||
51 | +var monthsParse = [ | ||
52 | + /^gen/i, | ||
53 | + /^c[ʼ\']hwe/i, | ||
54 | + /^meu/i, | ||
55 | + /^ebr/i, | ||
56 | + /^mae/i, | ||
57 | + /^(mez|eve)/i, | ||
58 | + /^gou/i, | ||
59 | + /^eos/i, | ||
60 | + /^gwe/i, | ||
61 | + /^her/i, | ||
62 | + /^du/i, | ||
63 | + /^ker/i, | ||
64 | + ], | ||
65 | + monthsRegex = /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i, | ||
66 | + monthsStrictRegex = /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i, | ||
67 | + monthsShortStrictRegex = /^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i, | ||
68 | + fullWeekdaysParse = [ | ||
69 | + /^sul/i, | ||
70 | + /^lun/i, | ||
71 | + /^meurzh/i, | ||
72 | + /^merc[ʼ\']her/i, | ||
73 | + /^yaou/i, | ||
74 | + /^gwener/i, | ||
75 | + /^sadorn/i, | ||
76 | + ], | ||
77 | + shortWeekdaysParse = [ | ||
78 | + /^Sul/i, | ||
79 | + /^Lun/i, | ||
80 | + /^Meu/i, | ||
81 | + /^Mer/i, | ||
82 | + /^Yao/i, | ||
83 | + /^Gwe/i, | ||
84 | + /^Sad/i, | ||
85 | + ], | ||
86 | + minWeekdaysParse = [ | ||
87 | + /^Su/i, | ||
88 | + /^Lu/i, | ||
89 | + /^Me([^r]|$)/i, | ||
90 | + /^Mer/i, | ||
91 | + /^Ya/i, | ||
92 | + /^Gw/i, | ||
93 | + /^Sa/i, | ||
94 | + ]; | ||
95 | + | ||
96 | +export default moment.defineLocale('br', { | ||
97 | + months: 'Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split( | ||
98 | + '_' | ||
99 | + ), | ||
100 | + monthsShort: 'Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'), | ||
101 | + weekdays: 'Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn'.split('_'), | ||
102 | + weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'), | ||
103 | + weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'), | ||
104 | + weekdaysParse: minWeekdaysParse, | ||
105 | + fullWeekdaysParse: fullWeekdaysParse, | ||
106 | + shortWeekdaysParse: shortWeekdaysParse, | ||
107 | + minWeekdaysParse: minWeekdaysParse, | ||
108 | + | ||
109 | + monthsRegex: monthsRegex, | ||
110 | + monthsShortRegex: monthsRegex, | ||
111 | + monthsStrictRegex: monthsStrictRegex, | ||
112 | + monthsShortStrictRegex: monthsShortStrictRegex, | ||
113 | + monthsParse: monthsParse, | ||
114 | + longMonthsParse: monthsParse, | ||
115 | + shortMonthsParse: monthsParse, | ||
116 | + | ||
117 | + longDateFormat: { | ||
118 | + LT: 'HH:mm', | ||
119 | + LTS: 'HH:mm:ss', | ||
120 | + L: 'DD/MM/YYYY', | ||
121 | + LL: 'D [a viz] MMMM YYYY', | ||
122 | + LLL: 'D [a viz] MMMM YYYY HH:mm', | ||
123 | + LLLL: 'dddd, D [a viz] MMMM YYYY HH:mm', | ||
124 | + }, | ||
125 | + calendar: { | ||
126 | + sameDay: '[Hiziv da] LT', | ||
127 | + nextDay: '[Warcʼhoazh da] LT', | ||
128 | + nextWeek: 'dddd [da] LT', | ||
129 | + lastDay: '[Decʼh da] LT', | ||
130 | + lastWeek: 'dddd [paset da] LT', | ||
131 | + sameElse: 'L', | ||
132 | + }, | ||
133 | + relativeTime: { | ||
134 | + future: 'a-benn %s', | ||
135 | + past: '%s ʼzo', | ||
136 | + s: 'un nebeud segondennoù', | ||
137 | + ss: '%d eilenn', | ||
138 | + m: 'ur vunutenn', | ||
139 | + mm: relativeTimeWithMutation, | ||
140 | + h: 'un eur', | ||
141 | + hh: '%d eur', | ||
142 | + d: 'un devezh', | ||
143 | + dd: relativeTimeWithMutation, | ||
144 | + M: 'ur miz', | ||
145 | + MM: relativeTimeWithMutation, | ||
146 | + y: 'ur bloaz', | ||
147 | + yy: specialMutationForYears, | ||
148 | + }, | ||
149 | + dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/, | ||
150 | + ordinal: function (number) { | ||
151 | + var output = number === 1 ? 'añ' : 'vet'; | ||
152 | + return number + output; | ||
153 | + }, | ||
154 | + week: { | ||
155 | + dow: 1, // Monday is the first day of the week. | ||
156 | + doy: 4, // The week that contains Jan 4th is the first week of the year. | ||
157 | + }, | ||
158 | + meridiemParse: /a.m.|g.m./, // goude merenn | a-raok merenn | ||
159 | + isPM: function (token) { | ||
160 | + return token === 'g.m.'; | ||
161 | + }, | ||
162 | + meridiem: function (hour, minute, isLower) { | ||
163 | + return hour < 12 ? 'a.m.' : 'g.m.'; | ||
164 | + }, | ||
165 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : Bosnian [bs] | ||
3 | +//! author : Nedim Cholich : https://github.com/frontyard | ||
4 | +//! based on (hr) translation by Bojan Marković | ||
5 | + | ||
6 | +import moment from '../moment'; | ||
7 | + | ||
8 | +function translate(number, withoutSuffix, key) { | ||
9 | + var result = number + ' '; | ||
10 | + switch (key) { | ||
11 | + case 'ss': | ||
12 | + if (number === 1) { | ||
13 | + result += 'sekunda'; | ||
14 | + } else if (number === 2 || number === 3 || number === 4) { | ||
15 | + result += 'sekunde'; | ||
16 | + } else { | ||
17 | + result += 'sekundi'; | ||
18 | + } | ||
19 | + return result; | ||
20 | + case 'm': | ||
21 | + return withoutSuffix ? 'jedna minuta' : 'jedne minute'; | ||
22 | + case 'mm': | ||
23 | + if (number === 1) { | ||
24 | + result += 'minuta'; | ||
25 | + } else if (number === 2 || number === 3 || number === 4) { | ||
26 | + result += 'minute'; | ||
27 | + } else { | ||
28 | + result += 'minuta'; | ||
29 | + } | ||
30 | + return result; | ||
31 | + case 'h': | ||
32 | + return withoutSuffix ? 'jedan sat' : 'jednog sata'; | ||
33 | + case 'hh': | ||
34 | + if (number === 1) { | ||
35 | + result += 'sat'; | ||
36 | + } else if (number === 2 || number === 3 || number === 4) { | ||
37 | + result += 'sata'; | ||
38 | + } else { | ||
39 | + result += 'sati'; | ||
40 | + } | ||
41 | + return result; | ||
42 | + case 'dd': | ||
43 | + if (number === 1) { | ||
44 | + result += 'dan'; | ||
45 | + } else { | ||
46 | + result += 'dana'; | ||
47 | + } | ||
48 | + return result; | ||
49 | + case 'MM': | ||
50 | + if (number === 1) { | ||
51 | + result += 'mjesec'; | ||
52 | + } else if (number === 2 || number === 3 || number === 4) { | ||
53 | + result += 'mjeseca'; | ||
54 | + } else { | ||
55 | + result += 'mjeseci'; | ||
56 | + } | ||
57 | + return result; | ||
58 | + case 'yy': | ||
59 | + if (number === 1) { | ||
60 | + result += 'godina'; | ||
61 | + } else if (number === 2 || number === 3 || number === 4) { | ||
62 | + result += 'godine'; | ||
63 | + } else { | ||
64 | + result += 'godina'; | ||
65 | + } | ||
66 | + return result; | ||
67 | + } | ||
68 | +} | ||
69 | + | ||
70 | +export default moment.defineLocale('bs', { | ||
71 | + months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split( | ||
72 | + '_' | ||
73 | + ), | ||
74 | + monthsShort: 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split( | ||
75 | + '_' | ||
76 | + ), | ||
77 | + monthsParseExact: true, | ||
78 | + weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split( | ||
79 | + '_' | ||
80 | + ), | ||
81 | + weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), | ||
82 | + weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), | ||
83 | + weekdaysParseExact: true, | ||
84 | + longDateFormat: { | ||
85 | + LT: 'H:mm', | ||
86 | + LTS: 'H:mm:ss', | ||
87 | + L: 'DD.MM.YYYY', | ||
88 | + LL: 'D. MMMM YYYY', | ||
89 | + LLL: 'D. MMMM YYYY H:mm', | ||
90 | + LLLL: 'dddd, D. MMMM YYYY H:mm', | ||
91 | + }, | ||
92 | + calendar: { | ||
93 | + sameDay: '[danas u] LT', | ||
94 | + nextDay: '[sutra u] LT', | ||
95 | + nextWeek: function () { | ||
96 | + switch (this.day()) { | ||
97 | + case 0: | ||
98 | + return '[u] [nedjelju] [u] LT'; | ||
99 | + case 3: | ||
100 | + return '[u] [srijedu] [u] LT'; | ||
101 | + case 6: | ||
102 | + return '[u] [subotu] [u] LT'; | ||
103 | + case 1: | ||
104 | + case 2: | ||
105 | + case 4: | ||
106 | + case 5: | ||
107 | + return '[u] dddd [u] LT'; | ||
108 | + } | ||
109 | + }, | ||
110 | + lastDay: '[jučer u] LT', | ||
111 | + lastWeek: function () { | ||
112 | + switch (this.day()) { | ||
113 | + case 0: | ||
114 | + case 3: | ||
115 | + return '[prošlu] dddd [u] LT'; | ||
116 | + case 6: | ||
117 | + return '[prošle] [subote] [u] LT'; | ||
118 | + case 1: | ||
119 | + case 2: | ||
120 | + case 4: | ||
121 | + case 5: | ||
122 | + return '[prošli] dddd [u] LT'; | ||
123 | + } | ||
124 | + }, | ||
125 | + sameElse: 'L', | ||
126 | + }, | ||
127 | + relativeTime: { | ||
128 | + future: 'za %s', | ||
129 | + past: 'prije %s', | ||
130 | + s: 'par sekundi', | ||
131 | + ss: translate, | ||
132 | + m: translate, | ||
133 | + mm: translate, | ||
134 | + h: translate, | ||
135 | + hh: translate, | ||
136 | + d: 'dan', | ||
137 | + dd: translate, | ||
138 | + M: 'mjesec', | ||
139 | + MM: translate, | ||
140 | + y: 'godinu', | ||
141 | + yy: translate, | ||
142 | + }, | ||
143 | + dayOfMonthOrdinalParse: /\d{1,2}\./, | ||
144 | + ordinal: '%d.', | ||
145 | + week: { | ||
146 | + dow: 1, // Monday is the first day of the week. | ||
147 | + doy: 7, // The week that contains Jan 7th is the first week of the year. | ||
148 | + }, | ||
149 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : Catalan [ca] | ||
3 | +//! author : Juan G. Hurtado : https://github.com/juanghurtado | ||
4 | + | ||
5 | +import moment from '../moment'; | ||
6 | + | ||
7 | +export default moment.defineLocale('ca', { | ||
8 | + months: { | ||
9 | + standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split( | ||
10 | + '_' | ||
11 | + ), | ||
12 | + format: "de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split( | ||
13 | + '_' | ||
14 | + ), | ||
15 | + isFormat: /D[oD]?(\s)+MMMM/, | ||
16 | + }, | ||
17 | + monthsShort: 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split( | ||
18 | + '_' | ||
19 | + ), | ||
20 | + monthsParseExact: true, | ||
21 | + weekdays: 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split( | ||
22 | + '_' | ||
23 | + ), | ||
24 | + weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'), | ||
25 | + weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'), | ||
26 | + weekdaysParseExact: true, | ||
27 | + longDateFormat: { | ||
28 | + LT: 'H:mm', | ||
29 | + LTS: 'H:mm:ss', | ||
30 | + L: 'DD/MM/YYYY', | ||
31 | + LL: 'D MMMM [de] YYYY', | ||
32 | + ll: 'D MMM YYYY', | ||
33 | + LLL: 'D MMMM [de] YYYY [a les] H:mm', | ||
34 | + lll: 'D MMM YYYY, H:mm', | ||
35 | + LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm', | ||
36 | + llll: 'ddd D MMM YYYY, H:mm', | ||
37 | + }, | ||
38 | + calendar: { | ||
39 | + sameDay: function () { | ||
40 | + return '[avui a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT'; | ||
41 | + }, | ||
42 | + nextDay: function () { | ||
43 | + return '[demà a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT'; | ||
44 | + }, | ||
45 | + nextWeek: function () { | ||
46 | + return 'dddd [a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT'; | ||
47 | + }, | ||
48 | + lastDay: function () { | ||
49 | + return '[ahir a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT'; | ||
50 | + }, | ||
51 | + lastWeek: function () { | ||
52 | + return ( | ||
53 | + '[el] dddd [passat a ' + | ||
54 | + (this.hours() !== 1 ? 'les' : 'la') + | ||
55 | + '] LT' | ||
56 | + ); | ||
57 | + }, | ||
58 | + sameElse: 'L', | ||
59 | + }, | ||
60 | + relativeTime: { | ||
61 | + future: "d'aquí %s", | ||
62 | + past: 'fa %s', | ||
63 | + s: 'uns segons', | ||
64 | + ss: '%d segons', | ||
65 | + m: 'un minut', | ||
66 | + mm: '%d minuts', | ||
67 | + h: 'una hora', | ||
68 | + hh: '%d hores', | ||
69 | + d: 'un dia', | ||
70 | + dd: '%d dies', | ||
71 | + M: 'un mes', | ||
72 | + MM: '%d mesos', | ||
73 | + y: 'un any', | ||
74 | + yy: '%d anys', | ||
75 | + }, | ||
76 | + dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/, | ||
77 | + ordinal: function (number, period) { | ||
78 | + var output = | ||
79 | + number === 1 | ||
80 | + ? 'r' | ||
81 | + : number === 2 | ||
82 | + ? 'n' | ||
83 | + : number === 3 | ||
84 | + ? 'r' | ||
85 | + : number === 4 | ||
86 | + ? 't' | ||
87 | + : 'è'; | ||
88 | + if (period === 'w' || period === 'W') { | ||
89 | + output = 'a'; | ||
90 | + } | ||
91 | + return number + output; | ||
92 | + }, | ||
93 | + week: { | ||
94 | + dow: 1, // Monday is the first day of the week. | ||
95 | + doy: 4, // The week that contains Jan 4th is the first week of the year. | ||
96 | + }, | ||
97 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : Czech [cs] | ||
3 | +//! author : petrbela : https://github.com/petrbela | ||
4 | + | ||
5 | +import moment from '../moment'; | ||
6 | + | ||
7 | +var months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split( | ||
8 | + '_' | ||
9 | + ), | ||
10 | + monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'), | ||
11 | + monthsParse = [ | ||
12 | + /^led/i, | ||
13 | + /^úno/i, | ||
14 | + /^bře/i, | ||
15 | + /^dub/i, | ||
16 | + /^kvě/i, | ||
17 | + /^(čvn|červen$|června)/i, | ||
18 | + /^(čvc|červenec|července)/i, | ||
19 | + /^srp/i, | ||
20 | + /^zář/i, | ||
21 | + /^říj/i, | ||
22 | + /^lis/i, | ||
23 | + /^pro/i, | ||
24 | + ], | ||
25 | + // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched. | ||
26 | + // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'. | ||
27 | + 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; | ||
28 | + | ||
29 | +function plural(n) { | ||
30 | + return n > 1 && n < 5 && ~~(n / 10) !== 1; | ||
31 | +} | ||
32 | +function translate(number, withoutSuffix, key, isFuture) { | ||
33 | + var result = number + ' '; | ||
34 | + switch (key) { | ||
35 | + case 's': // a few seconds / in a few seconds / a few seconds ago | ||
36 | + return withoutSuffix || isFuture ? 'pár sekund' : 'pár sekundami'; | ||
37 | + case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago | ||
38 | + if (withoutSuffix || isFuture) { | ||
39 | + return result + (plural(number) ? 'sekundy' : 'sekund'); | ||
40 | + } else { | ||
41 | + return result + 'sekundami'; | ||
42 | + } | ||
43 | + case 'm': // a minute / in a minute / a minute ago | ||
44 | + return withoutSuffix ? 'minuta' : isFuture ? 'minutu' : 'minutou'; | ||
45 | + case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago | ||
46 | + if (withoutSuffix || isFuture) { | ||
47 | + return result + (plural(number) ? 'minuty' : 'minut'); | ||
48 | + } else { | ||
49 | + return result + 'minutami'; | ||
50 | + } | ||
51 | + case 'h': // an hour / in an hour / an hour ago | ||
52 | + return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou'; | ||
53 | + case 'hh': // 9 hours / in 9 hours / 9 hours ago | ||
54 | + if (withoutSuffix || isFuture) { | ||
55 | + return result + (plural(number) ? 'hodiny' : 'hodin'); | ||
56 | + } else { | ||
57 | + return result + 'hodinami'; | ||
58 | + } | ||
59 | + case 'd': // a day / in a day / a day ago | ||
60 | + return withoutSuffix || isFuture ? 'den' : 'dnem'; | ||
61 | + case 'dd': // 9 days / in 9 days / 9 days ago | ||
62 | + if (withoutSuffix || isFuture) { | ||
63 | + return result + (plural(number) ? 'dny' : 'dní'); | ||
64 | + } else { | ||
65 | + return result + 'dny'; | ||
66 | + } | ||
67 | + case 'M': // a month / in a month / a month ago | ||
68 | + return withoutSuffix || isFuture ? 'měsíc' : 'měsícem'; | ||
69 | + case 'MM': // 9 months / in 9 months / 9 months ago | ||
70 | + if (withoutSuffix || isFuture) { | ||
71 | + return result + (plural(number) ? 'měsíce' : 'měsíců'); | ||
72 | + } else { | ||
73 | + return result + 'měsíci'; | ||
74 | + } | ||
75 | + case 'y': // a year / in a year / a year ago | ||
76 | + return withoutSuffix || isFuture ? 'rok' : 'rokem'; | ||
77 | + case 'yy': // 9 years / in 9 years / 9 years ago | ||
78 | + if (withoutSuffix || isFuture) { | ||
79 | + return result + (plural(number) ? 'roky' : 'let'); | ||
80 | + } else { | ||
81 | + return result + 'lety'; | ||
82 | + } | ||
83 | + } | ||
84 | +} | ||
85 | + | ||
86 | +export default moment.defineLocale('cs', { | ||
87 | + months: months, | ||
88 | + monthsShort: monthsShort, | ||
89 | + monthsRegex: monthsRegex, | ||
90 | + monthsShortRegex: monthsRegex, | ||
91 | + // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched. | ||
92 | + // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'. | ||
93 | + 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, | ||
94 | + monthsShortStrictRegex: /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i, | ||
95 | + monthsParse: monthsParse, | ||
96 | + longMonthsParse: monthsParse, | ||
97 | + shortMonthsParse: monthsParse, | ||
98 | + weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'), | ||
99 | + weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'), | ||
100 | + weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'), | ||
101 | + longDateFormat: { | ||
102 | + LT: 'H:mm', | ||
103 | + LTS: 'H:mm:ss', | ||
104 | + L: 'DD.MM.YYYY', | ||
105 | + LL: 'D. MMMM YYYY', | ||
106 | + LLL: 'D. MMMM YYYY H:mm', | ||
107 | + LLLL: 'dddd D. MMMM YYYY H:mm', | ||
108 | + l: 'D. M. YYYY', | ||
109 | + }, | ||
110 | + calendar: { | ||
111 | + sameDay: '[dnes v] LT', | ||
112 | + nextDay: '[zítra v] LT', | ||
113 | + nextWeek: function () { | ||
114 | + switch (this.day()) { | ||
115 | + case 0: | ||
116 | + return '[v neděli v] LT'; | ||
117 | + case 1: | ||
118 | + case 2: | ||
119 | + return '[v] dddd [v] LT'; | ||
120 | + case 3: | ||
121 | + return '[ve středu v] LT'; | ||
122 | + case 4: | ||
123 | + return '[ve čtvrtek v] LT'; | ||
124 | + case 5: | ||
125 | + return '[v pátek v] LT'; | ||
126 | + case 6: | ||
127 | + return '[v sobotu v] LT'; | ||
128 | + } | ||
129 | + }, | ||
130 | + lastDay: '[včera v] LT', | ||
131 | + lastWeek: function () { | ||
132 | + switch (this.day()) { | ||
133 | + case 0: | ||
134 | + return '[minulou neděli v] LT'; | ||
135 | + case 1: | ||
136 | + case 2: | ||
137 | + return '[minulé] dddd [v] LT'; | ||
138 | + case 3: | ||
139 | + return '[minulou středu v] LT'; | ||
140 | + case 4: | ||
141 | + case 5: | ||
142 | + return '[minulý] dddd [v] LT'; | ||
143 | + case 6: | ||
144 | + return '[minulou sobotu v] LT'; | ||
145 | + } | ||
146 | + }, | ||
147 | + sameElse: 'L', | ||
148 | + }, | ||
149 | + relativeTime: { | ||
150 | + future: 'za %s', | ||
151 | + past: 'před %s', | ||
152 | + s: translate, | ||
153 | + ss: translate, | ||
154 | + m: translate, | ||
155 | + mm: translate, | ||
156 | + h: translate, | ||
157 | + hh: translate, | ||
158 | + d: translate, | ||
159 | + dd: translate, | ||
160 | + M: translate, | ||
161 | + MM: translate, | ||
162 | + y: translate, | ||
163 | + yy: translate, | ||
164 | + }, | ||
165 | + dayOfMonthOrdinalParse: /\d{1,2}\./, | ||
166 | + ordinal: '%d.', | ||
167 | + week: { | ||
168 | + dow: 1, // Monday is the first day of the week. | ||
169 | + doy: 4, // The week that contains Jan 4th is the first week of the year. | ||
170 | + }, | ||
171 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : Chuvash [cv] | ||
3 | +//! author : Anatoly Mironov : https://github.com/mirontoli | ||
4 | + | ||
5 | +import moment from '../moment'; | ||
6 | + | ||
7 | +export default moment.defineLocale('cv', { | ||
8 | + months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split( | ||
9 | + '_' | ||
10 | + ), | ||
11 | + monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'), | ||
12 | + weekdays: 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split( | ||
13 | + '_' | ||
14 | + ), | ||
15 | + weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'), | ||
16 | + weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'), | ||
17 | + longDateFormat: { | ||
18 | + LT: 'HH:mm', | ||
19 | + LTS: 'HH:mm:ss', | ||
20 | + L: 'DD-MM-YYYY', | ||
21 | + LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]', | ||
22 | + LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm', | ||
23 | + LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm', | ||
24 | + }, | ||
25 | + calendar: { | ||
26 | + sameDay: '[Паян] LT [сехетре]', | ||
27 | + nextDay: '[Ыран] LT [сехетре]', | ||
28 | + lastDay: '[Ӗнер] LT [сехетре]', | ||
29 | + nextWeek: '[Ҫитес] dddd LT [сехетре]', | ||
30 | + lastWeek: '[Иртнӗ] dddd LT [сехетре]', | ||
31 | + sameElse: 'L', | ||
32 | + }, | ||
33 | + relativeTime: { | ||
34 | + future: function (output) { | ||
35 | + var affix = /сехет$/i.exec(output) | ||
36 | + ? 'рен' | ||
37 | + : /ҫул$/i.exec(output) | ||
38 | + ? 'тан' | ||
39 | + : 'ран'; | ||
40 | + return output + affix; | ||
41 | + }, | ||
42 | + past: '%s каялла', | ||
43 | + s: 'пӗр-ик ҫеккунт', | ||
44 | + ss: '%d ҫеккунт', | ||
45 | + m: 'пӗр минут', | ||
46 | + mm: '%d минут', | ||
47 | + h: 'пӗр сехет', | ||
48 | + hh: '%d сехет', | ||
49 | + d: 'пӗр кун', | ||
50 | + dd: '%d кун', | ||
51 | + M: 'пӗр уйӑх', | ||
52 | + MM: '%d уйӑх', | ||
53 | + y: 'пӗр ҫул', | ||
54 | + yy: '%d ҫул', | ||
55 | + }, | ||
56 | + dayOfMonthOrdinalParse: /\d{1,2}-мӗш/, | ||
57 | + ordinal: '%d-мӗш', | ||
58 | + week: { | ||
59 | + dow: 1, // Monday is the first day of the week. | ||
60 | + doy: 7, // The week that contains Jan 7th is the first week of the year. | ||
61 | + }, | ||
62 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : Welsh [cy] | ||
3 | +//! author : Robert Allen : https://github.com/robgallen | ||
4 | +//! author : https://github.com/ryangreaves | ||
5 | + | ||
6 | +import moment from '../moment'; | ||
7 | + | ||
8 | +export default moment.defineLocale('cy', { | ||
9 | + months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split( | ||
10 | + '_' | ||
11 | + ), | ||
12 | + monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split( | ||
13 | + '_' | ||
14 | + ), | ||
15 | + weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split( | ||
16 | + '_' | ||
17 | + ), | ||
18 | + weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'), | ||
19 | + weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'), | ||
20 | + weekdaysParseExact: true, | ||
21 | + // time formats are the same as en-gb | ||
22 | + longDateFormat: { | ||
23 | + LT: 'HH:mm', | ||
24 | + LTS: 'HH:mm:ss', | ||
25 | + L: 'DD/MM/YYYY', | ||
26 | + LL: 'D MMMM YYYY', | ||
27 | + LLL: 'D MMMM YYYY HH:mm', | ||
28 | + LLLL: 'dddd, D MMMM YYYY HH:mm', | ||
29 | + }, | ||
30 | + calendar: { | ||
31 | + sameDay: '[Heddiw am] LT', | ||
32 | + nextDay: '[Yfory am] LT', | ||
33 | + nextWeek: 'dddd [am] LT', | ||
34 | + lastDay: '[Ddoe am] LT', | ||
35 | + lastWeek: 'dddd [diwethaf am] LT', | ||
36 | + sameElse: 'L', | ||
37 | + }, | ||
38 | + relativeTime: { | ||
39 | + future: 'mewn %s', | ||
40 | + past: '%s yn ôl', | ||
41 | + s: 'ychydig eiliadau', | ||
42 | + ss: '%d eiliad', | ||
43 | + m: 'munud', | ||
44 | + mm: '%d munud', | ||
45 | + h: 'awr', | ||
46 | + hh: '%d awr', | ||
47 | + d: 'diwrnod', | ||
48 | + dd: '%d diwrnod', | ||
49 | + M: 'mis', | ||
50 | + MM: '%d mis', | ||
51 | + y: 'blwyddyn', | ||
52 | + yy: '%d flynedd', | ||
53 | + }, | ||
54 | + dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/, | ||
55 | + // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh | ||
56 | + ordinal: function (number) { | ||
57 | + var b = number, | ||
58 | + output = '', | ||
59 | + lookup = [ | ||
60 | + '', | ||
61 | + 'af', | ||
62 | + 'il', | ||
63 | + 'ydd', | ||
64 | + 'ydd', | ||
65 | + 'ed', | ||
66 | + 'ed', | ||
67 | + 'ed', | ||
68 | + 'fed', | ||
69 | + 'fed', | ||
70 | + 'fed', // 1af to 10fed | ||
71 | + 'eg', | ||
72 | + 'fed', | ||
73 | + 'eg', | ||
74 | + 'eg', | ||
75 | + 'fed', | ||
76 | + 'eg', | ||
77 | + 'eg', | ||
78 | + 'fed', | ||
79 | + 'eg', | ||
80 | + 'fed', // 11eg to 20fed | ||
81 | + ]; | ||
82 | + if (b > 20) { | ||
83 | + if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) { | ||
84 | + output = 'fed'; // not 30ain, 70ain or 90ain | ||
85 | + } else { | ||
86 | + output = 'ain'; | ||
87 | + } | ||
88 | + } else if (b > 0) { | ||
89 | + output = lookup[b]; | ||
90 | + } | ||
91 | + return number + output; | ||
92 | + }, | ||
93 | + week: { | ||
94 | + dow: 1, // Monday is the first day of the week. | ||
95 | + doy: 4, // The week that contains Jan 4th is the first week of the year. | ||
96 | + }, | ||
97 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : Danish [da] | ||
3 | +//! author : Ulrik Nielsen : https://github.com/mrbase | ||
4 | + | ||
5 | +import moment from '../moment'; | ||
6 | + | ||
7 | +export default moment.defineLocale('da', { | ||
8 | + months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split( | ||
9 | + '_' | ||
10 | + ), | ||
11 | + monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'), | ||
12 | + weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'), | ||
13 | + weekdaysShort: 'søn_man_tir_ons_tor_fre_lør'.split('_'), | ||
14 | + weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'), | ||
15 | + longDateFormat: { | ||
16 | + LT: 'HH:mm', | ||
17 | + LTS: 'HH:mm:ss', | ||
18 | + L: 'DD.MM.YYYY', | ||
19 | + LL: 'D. MMMM YYYY', | ||
20 | + LLL: 'D. MMMM YYYY HH:mm', | ||
21 | + LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm', | ||
22 | + }, | ||
23 | + calendar: { | ||
24 | + sameDay: '[i dag kl.] LT', | ||
25 | + nextDay: '[i morgen kl.] LT', | ||
26 | + nextWeek: 'på dddd [kl.] LT', | ||
27 | + lastDay: '[i går kl.] LT', | ||
28 | + lastWeek: '[i] dddd[s kl.] LT', | ||
29 | + sameElse: 'L', | ||
30 | + }, | ||
31 | + relativeTime: { | ||
32 | + future: 'om %s', | ||
33 | + past: '%s siden', | ||
34 | + s: 'få sekunder', | ||
35 | + ss: '%d sekunder', | ||
36 | + m: 'et minut', | ||
37 | + mm: '%d minutter', | ||
38 | + h: 'en time', | ||
39 | + hh: '%d timer', | ||
40 | + d: 'en dag', | ||
41 | + dd: '%d dage', | ||
42 | + M: 'en måned', | ||
43 | + MM: '%d måneder', | ||
44 | + y: 'et år', | ||
45 | + yy: '%d år', | ||
46 | + }, | ||
47 | + dayOfMonthOrdinalParse: /\d{1,2}\./, | ||
48 | + ordinal: '%d.', | ||
49 | + week: { | ||
50 | + dow: 1, // Monday is the first day of the week. | ||
51 | + doy: 4, // The week that contains Jan 4th is the first week of the year. | ||
52 | + }, | ||
53 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : German (Austria) [de-at] | ||
3 | +//! author : lluchs : https://github.com/lluchs | ||
4 | +//! author: Menelion Elensúle: https://github.com/Oire | ||
5 | +//! author : Martin Groller : https://github.com/MadMG | ||
6 | +//! author : Mikolaj Dadela : https://github.com/mik01aj | ||
7 | + | ||
8 | +import moment from '../moment'; | ||
9 | + | ||
10 | +function processRelativeTime(number, withoutSuffix, key, isFuture) { | ||
11 | + var format = { | ||
12 | + m: ['eine Minute', 'einer Minute'], | ||
13 | + h: ['eine Stunde', 'einer Stunde'], | ||
14 | + d: ['ein Tag', 'einem Tag'], | ||
15 | + dd: [number + ' Tage', number + ' Tagen'], | ||
16 | + M: ['ein Monat', 'einem Monat'], | ||
17 | + MM: [number + ' Monate', number + ' Monaten'], | ||
18 | + y: ['ein Jahr', 'einem Jahr'], | ||
19 | + yy: [number + ' Jahre', number + ' Jahren'], | ||
20 | + }; | ||
21 | + return withoutSuffix ? format[key][0] : format[key][1]; | ||
22 | +} | ||
23 | + | ||
24 | +export default moment.defineLocale('de-at', { | ||
25 | + months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split( | ||
26 | + '_' | ||
27 | + ), | ||
28 | + monthsShort: 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split( | ||
29 | + '_' | ||
30 | + ), | ||
31 | + monthsParseExact: true, | ||
32 | + weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split( | ||
33 | + '_' | ||
34 | + ), | ||
35 | + weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'), | ||
36 | + weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), | ||
37 | + weekdaysParseExact: true, | ||
38 | + longDateFormat: { | ||
39 | + LT: 'HH:mm', | ||
40 | + LTS: 'HH:mm:ss', | ||
41 | + L: 'DD.MM.YYYY', | ||
42 | + LL: 'D. MMMM YYYY', | ||
43 | + LLL: 'D. MMMM YYYY HH:mm', | ||
44 | + LLLL: 'dddd, D. MMMM YYYY HH:mm', | ||
45 | + }, | ||
46 | + calendar: { | ||
47 | + sameDay: '[heute um] LT [Uhr]', | ||
48 | + sameElse: 'L', | ||
49 | + nextDay: '[morgen um] LT [Uhr]', | ||
50 | + nextWeek: 'dddd [um] LT [Uhr]', | ||
51 | + lastDay: '[gestern um] LT [Uhr]', | ||
52 | + lastWeek: '[letzten] dddd [um] LT [Uhr]', | ||
53 | + }, | ||
54 | + relativeTime: { | ||
55 | + future: 'in %s', | ||
56 | + past: 'vor %s', | ||
57 | + s: 'ein paar Sekunden', | ||
58 | + ss: '%d Sekunden', | ||
59 | + m: processRelativeTime, | ||
60 | + mm: '%d Minuten', | ||
61 | + h: processRelativeTime, | ||
62 | + hh: '%d Stunden', | ||
63 | + d: processRelativeTime, | ||
64 | + dd: processRelativeTime, | ||
65 | + M: processRelativeTime, | ||
66 | + MM: processRelativeTime, | ||
67 | + y: processRelativeTime, | ||
68 | + yy: processRelativeTime, | ||
69 | + }, | ||
70 | + dayOfMonthOrdinalParse: /\d{1,2}\./, | ||
71 | + ordinal: '%d.', | ||
72 | + week: { | ||
73 | + dow: 1, // Monday is the first day of the week. | ||
74 | + doy: 4, // The week that contains Jan 4th is the first week of the year. | ||
75 | + }, | ||
76 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : German (Switzerland) [de-ch] | ||
3 | +//! author : sschueller : https://github.com/sschueller | ||
4 | + | ||
5 | +// based on: https://www.bk.admin.ch/dokumentation/sprachen/04915/05016/index.html?lang=de# | ||
6 | + | ||
7 | +import moment from '../moment'; | ||
8 | + | ||
9 | +function processRelativeTime(number, withoutSuffix, key, isFuture) { | ||
10 | + var format = { | ||
11 | + m: ['eine Minute', 'einer Minute'], | ||
12 | + h: ['eine Stunde', 'einer Stunde'], | ||
13 | + d: ['ein Tag', 'einem Tag'], | ||
14 | + dd: [number + ' Tage', number + ' Tagen'], | ||
15 | + M: ['ein Monat', 'einem Monat'], | ||
16 | + MM: [number + ' Monate', number + ' Monaten'], | ||
17 | + y: ['ein Jahr', 'einem Jahr'], | ||
18 | + yy: [number + ' Jahre', number + ' Jahren'], | ||
19 | + }; | ||
20 | + return withoutSuffix ? format[key][0] : format[key][1]; | ||
21 | +} | ||
22 | + | ||
23 | +export default moment.defineLocale('de-ch', { | ||
24 | + months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split( | ||
25 | + '_' | ||
26 | + ), | ||
27 | + monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split( | ||
28 | + '_' | ||
29 | + ), | ||
30 | + monthsParseExact: true, | ||
31 | + weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split( | ||
32 | + '_' | ||
33 | + ), | ||
34 | + weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), | ||
35 | + weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), | ||
36 | + weekdaysParseExact: true, | ||
37 | + longDateFormat: { | ||
38 | + LT: 'HH:mm', | ||
39 | + LTS: 'HH:mm:ss', | ||
40 | + L: 'DD.MM.YYYY', | ||
41 | + LL: 'D. MMMM YYYY', | ||
42 | + LLL: 'D. MMMM YYYY HH:mm', | ||
43 | + LLLL: 'dddd, D. MMMM YYYY HH:mm', | ||
44 | + }, | ||
45 | + calendar: { | ||
46 | + sameDay: '[heute um] LT [Uhr]', | ||
47 | + sameElse: 'L', | ||
48 | + nextDay: '[morgen um] LT [Uhr]', | ||
49 | + nextWeek: 'dddd [um] LT [Uhr]', | ||
50 | + lastDay: '[gestern um] LT [Uhr]', | ||
51 | + lastWeek: '[letzten] dddd [um] LT [Uhr]', | ||
52 | + }, | ||
53 | + relativeTime: { | ||
54 | + future: 'in %s', | ||
55 | + past: 'vor %s', | ||
56 | + s: 'ein paar Sekunden', | ||
57 | + ss: '%d Sekunden', | ||
58 | + m: processRelativeTime, | ||
59 | + mm: '%d Minuten', | ||
60 | + h: processRelativeTime, | ||
61 | + hh: '%d Stunden', | ||
62 | + d: processRelativeTime, | ||
63 | + dd: processRelativeTime, | ||
64 | + M: processRelativeTime, | ||
65 | + MM: processRelativeTime, | ||
66 | + y: processRelativeTime, | ||
67 | + yy: processRelativeTime, | ||
68 | + }, | ||
69 | + dayOfMonthOrdinalParse: /\d{1,2}\./, | ||
70 | + ordinal: '%d.', | ||
71 | + week: { | ||
72 | + dow: 1, // Monday is the first day of the week. | ||
73 | + doy: 4, // The week that contains Jan 4th is the first week of the year. | ||
74 | + }, | ||
75 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : German [de] | ||
3 | +//! author : lluchs : https://github.com/lluchs | ||
4 | +//! author: Menelion Elensúle: https://github.com/Oire | ||
5 | +//! author : Mikolaj Dadela : https://github.com/mik01aj | ||
6 | + | ||
7 | +import moment from '../moment'; | ||
8 | + | ||
9 | +function processRelativeTime(number, withoutSuffix, key, isFuture) { | ||
10 | + var format = { | ||
11 | + m: ['eine Minute', 'einer Minute'], | ||
12 | + h: ['eine Stunde', 'einer Stunde'], | ||
13 | + d: ['ein Tag', 'einem Tag'], | ||
14 | + dd: [number + ' Tage', number + ' Tagen'], | ||
15 | + M: ['ein Monat', 'einem Monat'], | ||
16 | + MM: [number + ' Monate', number + ' Monaten'], | ||
17 | + y: ['ein Jahr', 'einem Jahr'], | ||
18 | + yy: [number + ' Jahre', number + ' Jahren'], | ||
19 | + }; | ||
20 | + return withoutSuffix ? format[key][0] : format[key][1]; | ||
21 | +} | ||
22 | + | ||
23 | +export default moment.defineLocale('de', { | ||
24 | + months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split( | ||
25 | + '_' | ||
26 | + ), | ||
27 | + monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split( | ||
28 | + '_' | ||
29 | + ), | ||
30 | + monthsParseExact: true, | ||
31 | + weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split( | ||
32 | + '_' | ||
33 | + ), | ||
34 | + weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'), | ||
35 | + weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), | ||
36 | + weekdaysParseExact: true, | ||
37 | + longDateFormat: { | ||
38 | + LT: 'HH:mm', | ||
39 | + LTS: 'HH:mm:ss', | ||
40 | + L: 'DD.MM.YYYY', | ||
41 | + LL: 'D. MMMM YYYY', | ||
42 | + LLL: 'D. MMMM YYYY HH:mm', | ||
43 | + LLLL: 'dddd, D. MMMM YYYY HH:mm', | ||
44 | + }, | ||
45 | + calendar: { | ||
46 | + sameDay: '[heute um] LT [Uhr]', | ||
47 | + sameElse: 'L', | ||
48 | + nextDay: '[morgen um] LT [Uhr]', | ||
49 | + nextWeek: 'dddd [um] LT [Uhr]', | ||
50 | + lastDay: '[gestern um] LT [Uhr]', | ||
51 | + lastWeek: '[letzten] dddd [um] LT [Uhr]', | ||
52 | + }, | ||
53 | + relativeTime: { | ||
54 | + future: 'in %s', | ||
55 | + past: 'vor %s', | ||
56 | + s: 'ein paar Sekunden', | ||
57 | + ss: '%d Sekunden', | ||
58 | + m: processRelativeTime, | ||
59 | + mm: '%d Minuten', | ||
60 | + h: processRelativeTime, | ||
61 | + hh: '%d Stunden', | ||
62 | + d: processRelativeTime, | ||
63 | + dd: processRelativeTime, | ||
64 | + M: processRelativeTime, | ||
65 | + MM: processRelativeTime, | ||
66 | + y: processRelativeTime, | ||
67 | + yy: processRelativeTime, | ||
68 | + }, | ||
69 | + dayOfMonthOrdinalParse: /\d{1,2}\./, | ||
70 | + ordinal: '%d.', | ||
71 | + week: { | ||
72 | + dow: 1, // Monday is the first day of the week. | ||
73 | + doy: 4, // The week that contains Jan 4th is the first week of the year. | ||
74 | + }, | ||
75 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : Maldivian [dv] | ||
3 | +//! author : Jawish Hameed : https://github.com/jawish | ||
4 | + | ||
5 | +import moment from '../moment'; | ||
6 | + | ||
7 | +var months = [ | ||
8 | + 'ޖެނުއަރީ', | ||
9 | + 'ފެބްރުއަރީ', | ||
10 | + 'މާރިޗު', | ||
11 | + 'އޭޕްރީލު', | ||
12 | + 'މޭ', | ||
13 | + 'ޖޫން', | ||
14 | + 'ޖުލައި', | ||
15 | + 'އޯގަސްޓު', | ||
16 | + 'ސެޕްޓެމްބަރު', | ||
17 | + 'އޮކްޓޯބަރު', | ||
18 | + 'ނޮވެމްބަރު', | ||
19 | + 'ޑިސެމްބަރު', | ||
20 | + ], | ||
21 | + weekdays = [ | ||
22 | + 'އާދިއްތަ', | ||
23 | + 'ހޯމަ', | ||
24 | + 'އަންގާރަ', | ||
25 | + 'ބުދަ', | ||
26 | + 'ބުރާސްފަތި', | ||
27 | + 'ހުކުރު', | ||
28 | + 'ހޮނިހިރު', | ||
29 | + ]; | ||
30 | + | ||
31 | +export default moment.defineLocale('dv', { | ||
32 | + months: months, | ||
33 | + monthsShort: months, | ||
34 | + weekdays: weekdays, | ||
35 | + weekdaysShort: weekdays, | ||
36 | + weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'), | ||
37 | + longDateFormat: { | ||
38 | + LT: 'HH:mm', | ||
39 | + LTS: 'HH:mm:ss', | ||
40 | + L: 'D/M/YYYY', | ||
41 | + LL: 'D MMMM YYYY', | ||
42 | + LLL: 'D MMMM YYYY HH:mm', | ||
43 | + LLLL: 'dddd D MMMM YYYY HH:mm', | ||
44 | + }, | ||
45 | + meridiemParse: /މކ|މފ/, | ||
46 | + isPM: function (input) { | ||
47 | + return 'މފ' === input; | ||
48 | + }, | ||
49 | + meridiem: function (hour, minute, isLower) { | ||
50 | + if (hour < 12) { | ||
51 | + return 'މކ'; | ||
52 | + } else { | ||
53 | + return 'މފ'; | ||
54 | + } | ||
55 | + }, | ||
56 | + calendar: { | ||
57 | + sameDay: '[މިއަދު] LT', | ||
58 | + nextDay: '[މާދަމާ] LT', | ||
59 | + nextWeek: 'dddd LT', | ||
60 | + lastDay: '[އިއްޔެ] LT', | ||
61 | + lastWeek: '[ފާއިތުވި] dddd LT', | ||
62 | + sameElse: 'L', | ||
63 | + }, | ||
64 | + relativeTime: { | ||
65 | + future: 'ތެރޭގައި %s', | ||
66 | + past: 'ކުރިން %s', | ||
67 | + s: 'ސިކުންތުކޮޅެއް', | ||
68 | + ss: 'd% ސިކުންތު', | ||
69 | + m: 'މިނިޓެއް', | ||
70 | + mm: 'މިނިޓު %d', | ||
71 | + h: 'ގަޑިއިރެއް', | ||
72 | + hh: 'ގަޑިއިރު %d', | ||
73 | + d: 'ދުވަހެއް', | ||
74 | + dd: 'ދުވަސް %d', | ||
75 | + M: 'މަހެއް', | ||
76 | + MM: 'މަސް %d', | ||
77 | + y: 'އަހަރެއް', | ||
78 | + yy: 'އަހަރު %d', | ||
79 | + }, | ||
80 | + preparse: function (string) { | ||
81 | + return string.replace(/،/g, ','); | ||
82 | + }, | ||
83 | + postformat: function (string) { | ||
84 | + return string.replace(/,/g, '،'); | ||
85 | + }, | ||
86 | + week: { | ||
87 | + dow: 7, // Sunday is the first day of the week. | ||
88 | + doy: 12, // The week that contains Jan 12th is the first week of the year. | ||
89 | + }, | ||
90 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : Greek [el] | ||
3 | +//! author : Aggelos Karalias : https://github.com/mehiel | ||
4 | + | ||
5 | +import moment from '../moment'; | ||
6 | + | ||
7 | +function isFunction(input) { | ||
8 | + return ( | ||
9 | + (typeof Function !== 'undefined' && input instanceof Function) || | ||
10 | + Object.prototype.toString.call(input) === '[object Function]' | ||
11 | + ); | ||
12 | +} | ||
13 | + | ||
14 | +export default moment.defineLocale('el', { | ||
15 | + monthsNominativeEl: 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split( | ||
16 | + '_' | ||
17 | + ), | ||
18 | + monthsGenitiveEl: 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split( | ||
19 | + '_' | ||
20 | + ), | ||
21 | + months: function (momentToFormat, format) { | ||
22 | + if (!momentToFormat) { | ||
23 | + return this._monthsNominativeEl; | ||
24 | + } else if ( | ||
25 | + typeof format === 'string' && | ||
26 | + /D/.test(format.substring(0, format.indexOf('MMMM'))) | ||
27 | + ) { | ||
28 | + // if there is a day number before 'MMMM' | ||
29 | + return this._monthsGenitiveEl[momentToFormat.month()]; | ||
30 | + } else { | ||
31 | + return this._monthsNominativeEl[momentToFormat.month()]; | ||
32 | + } | ||
33 | + }, | ||
34 | + monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'), | ||
35 | + weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split( | ||
36 | + '_' | ||
37 | + ), | ||
38 | + weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'), | ||
39 | + weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'), | ||
40 | + meridiem: function (hours, minutes, isLower) { | ||
41 | + if (hours > 11) { | ||
42 | + return isLower ? 'μμ' : 'ΜΜ'; | ||
43 | + } else { | ||
44 | + return isLower ? 'πμ' : 'ΠΜ'; | ||
45 | + } | ||
46 | + }, | ||
47 | + isPM: function (input) { | ||
48 | + return (input + '').toLowerCase()[0] === 'μ'; | ||
49 | + }, | ||
50 | + meridiemParse: /[ΠΜ]\.?Μ?\.?/i, | ||
51 | + longDateFormat: { | ||
52 | + LT: 'h:mm A', | ||
53 | + LTS: 'h:mm:ss A', | ||
54 | + L: 'DD/MM/YYYY', | ||
55 | + LL: 'D MMMM YYYY', | ||
56 | + LLL: 'D MMMM YYYY h:mm A', | ||
57 | + LLLL: 'dddd, D MMMM YYYY h:mm A', | ||
58 | + }, | ||
59 | + calendarEl: { | ||
60 | + sameDay: '[Σήμερα {}] LT', | ||
61 | + nextDay: '[Αύριο {}] LT', | ||
62 | + nextWeek: 'dddd [{}] LT', | ||
63 | + lastDay: '[Χθες {}] LT', | ||
64 | + lastWeek: function () { | ||
65 | + switch (this.day()) { | ||
66 | + case 6: | ||
67 | + return '[το προηγούμενο] dddd [{}] LT'; | ||
68 | + default: | ||
69 | + return '[την προηγούμενη] dddd [{}] LT'; | ||
70 | + } | ||
71 | + }, | ||
72 | + sameElse: 'L', | ||
73 | + }, | ||
74 | + calendar: function (key, mom) { | ||
75 | + var output = this._calendarEl[key], | ||
76 | + hours = mom && mom.hours(); | ||
77 | + if (isFunction(output)) { | ||
78 | + output = output.apply(mom); | ||
79 | + } | ||
80 | + return output.replace('{}', hours % 12 === 1 ? 'στη' : 'στις'); | ||
81 | + }, | ||
82 | + relativeTime: { | ||
83 | + future: 'σε %s', | ||
84 | + past: '%s πριν', | ||
85 | + s: 'λίγα δευτερόλεπτα', | ||
86 | + ss: '%d δευτερόλεπτα', | ||
87 | + m: 'ένα λεπτό', | ||
88 | + mm: '%d λεπτά', | ||
89 | + h: 'μία ώρα', | ||
90 | + hh: '%d ώρες', | ||
91 | + d: 'μία μέρα', | ||
92 | + dd: '%d μέρες', | ||
93 | + M: 'ένας μήνας', | ||
94 | + MM: '%d μήνες', | ||
95 | + y: 'ένας χρόνος', | ||
96 | + yy: '%d χρόνια', | ||
97 | + }, | ||
98 | + dayOfMonthOrdinalParse: /\d{1,2}η/, | ||
99 | + ordinal: '%dη', | ||
100 | + week: { | ||
101 | + dow: 1, // Monday is the first day of the week. | ||
102 | + doy: 4, // The week that contains Jan 4st is the first week of the year. | ||
103 | + }, | ||
104 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : English (Australia) [en-au] | ||
3 | +//! author : Jared Morse : https://github.com/jarcoal | ||
4 | + | ||
5 | +import moment from '../moment'; | ||
6 | + | ||
7 | +export default moment.defineLocale('en-au', { | ||
8 | + months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( | ||
9 | + '_' | ||
10 | + ), | ||
11 | + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), | ||
12 | + weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( | ||
13 | + '_' | ||
14 | + ), | ||
15 | + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), | ||
16 | + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), | ||
17 | + longDateFormat: { | ||
18 | + LT: 'h:mm A', | ||
19 | + LTS: 'h:mm:ss A', | ||
20 | + L: 'DD/MM/YYYY', | ||
21 | + LL: 'D MMMM YYYY', | ||
22 | + LLL: 'D MMMM YYYY h:mm A', | ||
23 | + LLLL: 'dddd, D MMMM YYYY h:mm A', | ||
24 | + }, | ||
25 | + calendar: { | ||
26 | + sameDay: '[Today at] LT', | ||
27 | + nextDay: '[Tomorrow at] LT', | ||
28 | + nextWeek: 'dddd [at] LT', | ||
29 | + lastDay: '[Yesterday at] LT', | ||
30 | + lastWeek: '[Last] dddd [at] LT', | ||
31 | + sameElse: 'L', | ||
32 | + }, | ||
33 | + relativeTime: { | ||
34 | + future: 'in %s', | ||
35 | + past: '%s ago', | ||
36 | + s: 'a few seconds', | ||
37 | + ss: '%d seconds', | ||
38 | + m: 'a minute', | ||
39 | + mm: '%d minutes', | ||
40 | + h: 'an hour', | ||
41 | + hh: '%d hours', | ||
42 | + d: 'a day', | ||
43 | + dd: '%d days', | ||
44 | + M: 'a month', | ||
45 | + MM: '%d months', | ||
46 | + y: 'a year', | ||
47 | + yy: '%d years', | ||
48 | + }, | ||
49 | + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, | ||
50 | + ordinal: function (number) { | ||
51 | + var b = number % 10, | ||
52 | + output = | ||
53 | + ~~((number % 100) / 10) === 1 | ||
54 | + ? 'th' | ||
55 | + : b === 1 | ||
56 | + ? 'st' | ||
57 | + : b === 2 | ||
58 | + ? 'nd' | ||
59 | + : b === 3 | ||
60 | + ? 'rd' | ||
61 | + : 'th'; | ||
62 | + return number + output; | ||
63 | + }, | ||
64 | + week: { | ||
65 | + dow: 0, // Sunday is the first day of the week. | ||
66 | + doy: 4, // The week that contains Jan 4th is the first week of the year. | ||
67 | + }, | ||
68 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : English (Canada) [en-ca] | ||
3 | +//! author : Jonathan Abourbih : https://github.com/jonbca | ||
4 | + | ||
5 | +import moment from '../moment'; | ||
6 | + | ||
7 | +export default moment.defineLocale('en-ca', { | ||
8 | + months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( | ||
9 | + '_' | ||
10 | + ), | ||
11 | + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), | ||
12 | + weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( | ||
13 | + '_' | ||
14 | + ), | ||
15 | + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), | ||
16 | + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), | ||
17 | + longDateFormat: { | ||
18 | + LT: 'h:mm A', | ||
19 | + LTS: 'h:mm:ss A', | ||
20 | + L: 'YYYY-MM-DD', | ||
21 | + LL: 'MMMM D, YYYY', | ||
22 | + LLL: 'MMMM D, YYYY h:mm A', | ||
23 | + LLLL: 'dddd, MMMM D, YYYY h:mm A', | ||
24 | + }, | ||
25 | + calendar: { | ||
26 | + sameDay: '[Today at] LT', | ||
27 | + nextDay: '[Tomorrow at] LT', | ||
28 | + nextWeek: 'dddd [at] LT', | ||
29 | + lastDay: '[Yesterday at] LT', | ||
30 | + lastWeek: '[Last] dddd [at] LT', | ||
31 | + sameElse: 'L', | ||
32 | + }, | ||
33 | + relativeTime: { | ||
34 | + future: 'in %s', | ||
35 | + past: '%s ago', | ||
36 | + s: 'a few seconds', | ||
37 | + ss: '%d seconds', | ||
38 | + m: 'a minute', | ||
39 | + mm: '%d minutes', | ||
40 | + h: 'an hour', | ||
41 | + hh: '%d hours', | ||
42 | + d: 'a day', | ||
43 | + dd: '%d days', | ||
44 | + M: 'a month', | ||
45 | + MM: '%d months', | ||
46 | + y: 'a year', | ||
47 | + yy: '%d years', | ||
48 | + }, | ||
49 | + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, | ||
50 | + ordinal: function (number) { | ||
51 | + var b = number % 10, | ||
52 | + output = | ||
53 | + ~~((number % 100) / 10) === 1 | ||
54 | + ? 'th' | ||
55 | + : b === 1 | ||
56 | + ? 'st' | ||
57 | + : b === 2 | ||
58 | + ? 'nd' | ||
59 | + : b === 3 | ||
60 | + ? 'rd' | ||
61 | + : 'th'; | ||
62 | + return number + output; | ||
63 | + }, | ||
64 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : English (United Kingdom) [en-gb] | ||
3 | +//! author : Chris Gedrim : https://github.com/chrisgedrim | ||
4 | + | ||
5 | +import moment from '../moment'; | ||
6 | + | ||
7 | +export default moment.defineLocale('en-gb', { | ||
8 | + months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( | ||
9 | + '_' | ||
10 | + ), | ||
11 | + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), | ||
12 | + weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( | ||
13 | + '_' | ||
14 | + ), | ||
15 | + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), | ||
16 | + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), | ||
17 | + longDateFormat: { | ||
18 | + LT: 'HH:mm', | ||
19 | + LTS: 'HH:mm:ss', | ||
20 | + L: 'DD/MM/YYYY', | ||
21 | + LL: 'D MMMM YYYY', | ||
22 | + LLL: 'D MMMM YYYY HH:mm', | ||
23 | + LLLL: 'dddd, D MMMM YYYY HH:mm', | ||
24 | + }, | ||
25 | + calendar: { | ||
26 | + sameDay: '[Today at] LT', | ||
27 | + nextDay: '[Tomorrow at] LT', | ||
28 | + nextWeek: 'dddd [at] LT', | ||
29 | + lastDay: '[Yesterday at] LT', | ||
30 | + lastWeek: '[Last] dddd [at] LT', | ||
31 | + sameElse: 'L', | ||
32 | + }, | ||
33 | + relativeTime: { | ||
34 | + future: 'in %s', | ||
35 | + past: '%s ago', | ||
36 | + s: 'a few seconds', | ||
37 | + ss: '%d seconds', | ||
38 | + m: 'a minute', | ||
39 | + mm: '%d minutes', | ||
40 | + h: 'an hour', | ||
41 | + hh: '%d hours', | ||
42 | + d: 'a day', | ||
43 | + dd: '%d days', | ||
44 | + M: 'a month', | ||
45 | + MM: '%d months', | ||
46 | + y: 'a year', | ||
47 | + yy: '%d years', | ||
48 | + }, | ||
49 | + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, | ||
50 | + ordinal: function (number) { | ||
51 | + var b = number % 10, | ||
52 | + output = | ||
53 | + ~~((number % 100) / 10) === 1 | ||
54 | + ? 'th' | ||
55 | + : b === 1 | ||
56 | + ? 'st' | ||
57 | + : b === 2 | ||
58 | + ? 'nd' | ||
59 | + : b === 3 | ||
60 | + ? 'rd' | ||
61 | + : 'th'; | ||
62 | + return number + output; | ||
63 | + }, | ||
64 | + week: { | ||
65 | + dow: 1, // Monday is the first day of the week. | ||
66 | + doy: 4, // The week that contains Jan 4th is the first week of the year. | ||
67 | + }, | ||
68 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : English (Ireland) [en-ie] | ||
3 | +//! author : Chris Cartlidge : https://github.com/chriscartlidge | ||
4 | + | ||
5 | +import moment from '../moment'; | ||
6 | + | ||
7 | +export default moment.defineLocale('en-ie', { | ||
8 | + months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( | ||
9 | + '_' | ||
10 | + ), | ||
11 | + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), | ||
12 | + weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( | ||
13 | + '_' | ||
14 | + ), | ||
15 | + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), | ||
16 | + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), | ||
17 | + longDateFormat: { | ||
18 | + LT: 'HH:mm', | ||
19 | + LTS: 'HH:mm:ss', | ||
20 | + L: 'DD/MM/YYYY', | ||
21 | + LL: 'D MMMM YYYY', | ||
22 | + LLL: 'D MMMM YYYY HH:mm', | ||
23 | + LLLL: 'dddd D MMMM YYYY HH:mm', | ||
24 | + }, | ||
25 | + calendar: { | ||
26 | + sameDay: '[Today at] LT', | ||
27 | + nextDay: '[Tomorrow at] LT', | ||
28 | + nextWeek: 'dddd [at] LT', | ||
29 | + lastDay: '[Yesterday at] LT', | ||
30 | + lastWeek: '[Last] dddd [at] LT', | ||
31 | + sameElse: 'L', | ||
32 | + }, | ||
33 | + relativeTime: { | ||
34 | + future: 'in %s', | ||
35 | + past: '%s ago', | ||
36 | + s: 'a few seconds', | ||
37 | + ss: '%d seconds', | ||
38 | + m: 'a minute', | ||
39 | + mm: '%d minutes', | ||
40 | + h: 'an hour', | ||
41 | + hh: '%d hours', | ||
42 | + d: 'a day', | ||
43 | + dd: '%d days', | ||
44 | + M: 'a month', | ||
45 | + MM: '%d months', | ||
46 | + y: 'a year', | ||
47 | + yy: '%d years', | ||
48 | + }, | ||
49 | + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, | ||
50 | + ordinal: function (number) { | ||
51 | + var b = number % 10, | ||
52 | + output = | ||
53 | + ~~((number % 100) / 10) === 1 | ||
54 | + ? 'th' | ||
55 | + : b === 1 | ||
56 | + ? 'st' | ||
57 | + : b === 2 | ||
58 | + ? 'nd' | ||
59 | + : b === 3 | ||
60 | + ? 'rd' | ||
61 | + : 'th'; | ||
62 | + return number + output; | ||
63 | + }, | ||
64 | + week: { | ||
65 | + dow: 1, // Monday is the first day of the week. | ||
66 | + doy: 4, // The week that contains Jan 4th is the first week of the year. | ||
67 | + }, | ||
68 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : English (Israel) [en-il] | ||
3 | +//! author : Chris Gedrim : https://github.com/chrisgedrim | ||
4 | + | ||
5 | +import moment from '../moment'; | ||
6 | + | ||
7 | +export default moment.defineLocale('en-il', { | ||
8 | + months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( | ||
9 | + '_' | ||
10 | + ), | ||
11 | + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), | ||
12 | + weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( | ||
13 | + '_' | ||
14 | + ), | ||
15 | + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), | ||
16 | + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), | ||
17 | + longDateFormat: { | ||
18 | + LT: 'HH:mm', | ||
19 | + LTS: 'HH:mm:ss', | ||
20 | + L: 'DD/MM/YYYY', | ||
21 | + LL: 'D MMMM YYYY', | ||
22 | + LLL: 'D MMMM YYYY HH:mm', | ||
23 | + LLLL: 'dddd, D MMMM YYYY HH:mm', | ||
24 | + }, | ||
25 | + calendar: { | ||
26 | + sameDay: '[Today at] LT', | ||
27 | + nextDay: '[Tomorrow at] LT', | ||
28 | + nextWeek: 'dddd [at] LT', | ||
29 | + lastDay: '[Yesterday at] LT', | ||
30 | + lastWeek: '[Last] dddd [at] LT', | ||
31 | + sameElse: 'L', | ||
32 | + }, | ||
33 | + relativeTime: { | ||
34 | + future: 'in %s', | ||
35 | + past: '%s ago', | ||
36 | + s: 'a few seconds', | ||
37 | + ss: '%d seconds', | ||
38 | + m: 'a minute', | ||
39 | + mm: '%d minutes', | ||
40 | + h: 'an hour', | ||
41 | + hh: '%d hours', | ||
42 | + d: 'a day', | ||
43 | + dd: '%d days', | ||
44 | + M: 'a month', | ||
45 | + MM: '%d months', | ||
46 | + y: 'a year', | ||
47 | + yy: '%d years', | ||
48 | + }, | ||
49 | + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, | ||
50 | + ordinal: function (number) { | ||
51 | + var b = number % 10, | ||
52 | + output = | ||
53 | + ~~((number % 100) / 10) === 1 | ||
54 | + ? 'th' | ||
55 | + : b === 1 | ||
56 | + ? 'st' | ||
57 | + : b === 2 | ||
58 | + ? 'nd' | ||
59 | + : b === 3 | ||
60 | + ? 'rd' | ||
61 | + : 'th'; | ||
62 | + return number + output; | ||
63 | + }, | ||
64 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : English (India) [en-in] | ||
3 | +//! author : Jatin Agrawal : https://github.com/jatinag22 | ||
4 | + | ||
5 | +import moment from '../moment'; | ||
6 | + | ||
7 | +export default moment.defineLocale('en-in', { | ||
8 | + months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( | ||
9 | + '_' | ||
10 | + ), | ||
11 | + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), | ||
12 | + weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( | ||
13 | + '_' | ||
14 | + ), | ||
15 | + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), | ||
16 | + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), | ||
17 | + longDateFormat: { | ||
18 | + LT: 'h:mm A', | ||
19 | + LTS: 'h:mm:ss A', | ||
20 | + L: 'DD/MM/YYYY', | ||
21 | + LL: 'D MMMM YYYY', | ||
22 | + LLL: 'D MMMM YYYY h:mm A', | ||
23 | + LLLL: 'dddd, D MMMM YYYY h:mm A', | ||
24 | + }, | ||
25 | + calendar: { | ||
26 | + sameDay: '[Today at] LT', | ||
27 | + nextDay: '[Tomorrow at] LT', | ||
28 | + nextWeek: 'dddd [at] LT', | ||
29 | + lastDay: '[Yesterday at] LT', | ||
30 | + lastWeek: '[Last] dddd [at] LT', | ||
31 | + sameElse: 'L', | ||
32 | + }, | ||
33 | + relativeTime: { | ||
34 | + future: 'in %s', | ||
35 | + past: '%s ago', | ||
36 | + s: 'a few seconds', | ||
37 | + ss: '%d seconds', | ||
38 | + m: 'a minute', | ||
39 | + mm: '%d minutes', | ||
40 | + h: 'an hour', | ||
41 | + hh: '%d hours', | ||
42 | + d: 'a day', | ||
43 | + dd: '%d days', | ||
44 | + M: 'a month', | ||
45 | + MM: '%d months', | ||
46 | + y: 'a year', | ||
47 | + yy: '%d years', | ||
48 | + }, | ||
49 | + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, | ||
50 | + ordinal: function (number) { | ||
51 | + var b = number % 10, | ||
52 | + output = | ||
53 | + ~~((number % 100) / 10) === 1 | ||
54 | + ? 'th' | ||
55 | + : b === 1 | ||
56 | + ? 'st' | ||
57 | + : b === 2 | ||
58 | + ? 'nd' | ||
59 | + : b === 3 | ||
60 | + ? 'rd' | ||
61 | + : 'th'; | ||
62 | + return number + output; | ||
63 | + }, | ||
64 | + week: { | ||
65 | + dow: 0, // Sunday is the first day of the week. | ||
66 | + doy: 6, // The week that contains Jan 1st is the first week of the year. | ||
67 | + }, | ||
68 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : English (New Zealand) [en-nz] | ||
3 | +//! author : Luke McGregor : https://github.com/lukemcgregor | ||
4 | + | ||
5 | +import moment from '../moment'; | ||
6 | + | ||
7 | +export default moment.defineLocale('en-nz', { | ||
8 | + months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( | ||
9 | + '_' | ||
10 | + ), | ||
11 | + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), | ||
12 | + weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( | ||
13 | + '_' | ||
14 | + ), | ||
15 | + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), | ||
16 | + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), | ||
17 | + longDateFormat: { | ||
18 | + LT: 'h:mm A', | ||
19 | + LTS: 'h:mm:ss A', | ||
20 | + L: 'DD/MM/YYYY', | ||
21 | + LL: 'D MMMM YYYY', | ||
22 | + LLL: 'D MMMM YYYY h:mm A', | ||
23 | + LLLL: 'dddd, D MMMM YYYY h:mm A', | ||
24 | + }, | ||
25 | + calendar: { | ||
26 | + sameDay: '[Today at] LT', | ||
27 | + nextDay: '[Tomorrow at] LT', | ||
28 | + nextWeek: 'dddd [at] LT', | ||
29 | + lastDay: '[Yesterday at] LT', | ||
30 | + lastWeek: '[Last] dddd [at] LT', | ||
31 | + sameElse: 'L', | ||
32 | + }, | ||
33 | + relativeTime: { | ||
34 | + future: 'in %s', | ||
35 | + past: '%s ago', | ||
36 | + s: 'a few seconds', | ||
37 | + ss: '%d seconds', | ||
38 | + m: 'a minute', | ||
39 | + mm: '%d minutes', | ||
40 | + h: 'an hour', | ||
41 | + hh: '%d hours', | ||
42 | + d: 'a day', | ||
43 | + dd: '%d days', | ||
44 | + M: 'a month', | ||
45 | + MM: '%d months', | ||
46 | + y: 'a year', | ||
47 | + yy: '%d years', | ||
48 | + }, | ||
49 | + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, | ||
50 | + ordinal: function (number) { | ||
51 | + var b = number % 10, | ||
52 | + output = | ||
53 | + ~~((number % 100) / 10) === 1 | ||
54 | + ? 'th' | ||
55 | + : b === 1 | ||
56 | + ? 'st' | ||
57 | + : b === 2 | ||
58 | + ? 'nd' | ||
59 | + : b === 3 | ||
60 | + ? 'rd' | ||
61 | + : 'th'; | ||
62 | + return number + output; | ||
63 | + }, | ||
64 | + week: { | ||
65 | + dow: 1, // Monday is the first day of the week. | ||
66 | + doy: 4, // The week that contains Jan 4th is the first week of the year. | ||
67 | + }, | ||
68 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : English (Singapore) [en-sg] | ||
3 | +//! author : Matthew Castrillon-Madrigal : https://github.com/techdimension | ||
4 | + | ||
5 | +import moment from '../moment'; | ||
6 | + | ||
7 | +export default moment.defineLocale('en-sg', { | ||
8 | + months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( | ||
9 | + '_' | ||
10 | + ), | ||
11 | + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), | ||
12 | + weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( | ||
13 | + '_' | ||
14 | + ), | ||
15 | + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), | ||
16 | + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), | ||
17 | + longDateFormat: { | ||
18 | + LT: 'HH:mm', | ||
19 | + LTS: 'HH:mm:ss', | ||
20 | + L: 'DD/MM/YYYY', | ||
21 | + LL: 'D MMMM YYYY', | ||
22 | + LLL: 'D MMMM YYYY HH:mm', | ||
23 | + LLLL: 'dddd, D MMMM YYYY HH:mm', | ||
24 | + }, | ||
25 | + calendar: { | ||
26 | + sameDay: '[Today at] LT', | ||
27 | + nextDay: '[Tomorrow at] LT', | ||
28 | + nextWeek: 'dddd [at] LT', | ||
29 | + lastDay: '[Yesterday at] LT', | ||
30 | + lastWeek: '[Last] dddd [at] LT', | ||
31 | + sameElse: 'L', | ||
32 | + }, | ||
33 | + relativeTime: { | ||
34 | + future: 'in %s', | ||
35 | + past: '%s ago', | ||
36 | + s: 'a few seconds', | ||
37 | + ss: '%d seconds', | ||
38 | + m: 'a minute', | ||
39 | + mm: '%d minutes', | ||
40 | + h: 'an hour', | ||
41 | + hh: '%d hours', | ||
42 | + d: 'a day', | ||
43 | + dd: '%d days', | ||
44 | + M: 'a month', | ||
45 | + MM: '%d months', | ||
46 | + y: 'a year', | ||
47 | + yy: '%d years', | ||
48 | + }, | ||
49 | + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, | ||
50 | + ordinal: function (number) { | ||
51 | + var b = number % 10, | ||
52 | + output = | ||
53 | + ~~((number % 100) / 10) === 1 | ||
54 | + ? 'th' | ||
55 | + : b === 1 | ||
56 | + ? 'st' | ||
57 | + : b === 2 | ||
58 | + ? 'nd' | ||
59 | + : b === 3 | ||
60 | + ? 'rd' | ||
61 | + : 'th'; | ||
62 | + return number + output; | ||
63 | + }, | ||
64 | + week: { | ||
65 | + dow: 1, // Monday is the first day of the week. | ||
66 | + doy: 4, // The week that contains Jan 4th is the first week of the year. | ||
67 | + }, | ||
68 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : Esperanto [eo] | ||
3 | +//! author : Colin Dean : https://github.com/colindean | ||
4 | +//! author : Mia Nordentoft Imperatori : https://github.com/miestasmia | ||
5 | +//! comment : miestasmia corrected the translation by colindean | ||
6 | +//! comment : Vivakvo corrected the translation by colindean and miestasmia | ||
7 | + | ||
8 | +import moment from '../moment'; | ||
9 | + | ||
10 | +export default moment.defineLocale('eo', { | ||
11 | + months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split( | ||
12 | + '_' | ||
13 | + ), | ||
14 | + monthsShort: 'jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec'.split('_'), | ||
15 | + weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'), | ||
16 | + weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'), | ||
17 | + weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'), | ||
18 | + longDateFormat: { | ||
19 | + LT: 'HH:mm', | ||
20 | + LTS: 'HH:mm:ss', | ||
21 | + L: 'YYYY-MM-DD', | ||
22 | + LL: '[la] D[-an de] MMMM, YYYY', | ||
23 | + LLL: '[la] D[-an de] MMMM, YYYY HH:mm', | ||
24 | + LLLL: 'dddd[n], [la] D[-an de] MMMM, YYYY HH:mm', | ||
25 | + llll: 'ddd, [la] D[-an de] MMM, YYYY HH:mm', | ||
26 | + }, | ||
27 | + meridiemParse: /[ap]\.t\.m/i, | ||
28 | + isPM: function (input) { | ||
29 | + return input.charAt(0).toLowerCase() === 'p'; | ||
30 | + }, | ||
31 | + meridiem: function (hours, minutes, isLower) { | ||
32 | + if (hours > 11) { | ||
33 | + return isLower ? 'p.t.m.' : 'P.T.M.'; | ||
34 | + } else { | ||
35 | + return isLower ? 'a.t.m.' : 'A.T.M.'; | ||
36 | + } | ||
37 | + }, | ||
38 | + calendar: { | ||
39 | + sameDay: '[Hodiaŭ je] LT', | ||
40 | + nextDay: '[Morgaŭ je] LT', | ||
41 | + nextWeek: 'dddd[n je] LT', | ||
42 | + lastDay: '[Hieraŭ je] LT', | ||
43 | + lastWeek: '[pasintan] dddd[n je] LT', | ||
44 | + sameElse: 'L', | ||
45 | + }, | ||
46 | + relativeTime: { | ||
47 | + future: 'post %s', | ||
48 | + past: 'antaŭ %s', | ||
49 | + s: 'kelkaj sekundoj', | ||
50 | + ss: '%d sekundoj', | ||
51 | + m: 'unu minuto', | ||
52 | + mm: '%d minutoj', | ||
53 | + h: 'unu horo', | ||
54 | + hh: '%d horoj', | ||
55 | + d: 'unu tago', //ne 'diurno', ĉar estas uzita por proksimumo | ||
56 | + dd: '%d tagoj', | ||
57 | + M: 'unu monato', | ||
58 | + MM: '%d monatoj', | ||
59 | + y: 'unu jaro', | ||
60 | + yy: '%d jaroj', | ||
61 | + }, | ||
62 | + dayOfMonthOrdinalParse: /\d{1,2}a/, | ||
63 | + ordinal: '%da', | ||
64 | + week: { | ||
65 | + dow: 1, // Monday is the first day of the week. | ||
66 | + doy: 7, // The week that contains Jan 7th is the first week of the year. | ||
67 | + }, | ||
68 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : Spanish (Dominican Republic) [es-do] | ||
3 | + | ||
4 | +import moment from '../moment'; | ||
5 | + | ||
6 | +var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split( | ||
7 | + '_' | ||
8 | + ), | ||
9 | + monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), | ||
10 | + monthsParse = [ | ||
11 | + /^ene/i, | ||
12 | + /^feb/i, | ||
13 | + /^mar/i, | ||
14 | + /^abr/i, | ||
15 | + /^may/i, | ||
16 | + /^jun/i, | ||
17 | + /^jul/i, | ||
18 | + /^ago/i, | ||
19 | + /^sep/i, | ||
20 | + /^oct/i, | ||
21 | + /^nov/i, | ||
22 | + /^dic/i, | ||
23 | + ], | ||
24 | + 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; | ||
25 | + | ||
26 | +export default moment.defineLocale('es-do', { | ||
27 | + months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split( | ||
28 | + '_' | ||
29 | + ), | ||
30 | + monthsShort: function (m, format) { | ||
31 | + if (!m) { | ||
32 | + return monthsShortDot; | ||
33 | + } else if (/-MMM-/.test(format)) { | ||
34 | + return monthsShort[m.month()]; | ||
35 | + } else { | ||
36 | + return monthsShortDot[m.month()]; | ||
37 | + } | ||
38 | + }, | ||
39 | + monthsRegex: monthsRegex, | ||
40 | + monthsShortRegex: monthsRegex, | ||
41 | + monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, | ||
42 | + monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, | ||
43 | + monthsParse: monthsParse, | ||
44 | + longMonthsParse: monthsParse, | ||
45 | + shortMonthsParse: monthsParse, | ||
46 | + weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), | ||
47 | + weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), | ||
48 | + weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), | ||
49 | + weekdaysParseExact: true, | ||
50 | + longDateFormat: { | ||
51 | + LT: 'h:mm A', | ||
52 | + LTS: 'h:mm:ss A', | ||
53 | + L: 'DD/MM/YYYY', | ||
54 | + LL: 'D [de] MMMM [de] YYYY', | ||
55 | + LLL: 'D [de] MMMM [de] YYYY h:mm A', | ||
56 | + LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A', | ||
57 | + }, | ||
58 | + calendar: { | ||
59 | + sameDay: function () { | ||
60 | + return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; | ||
61 | + }, | ||
62 | + nextDay: function () { | ||
63 | + return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; | ||
64 | + }, | ||
65 | + nextWeek: function () { | ||
66 | + return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; | ||
67 | + }, | ||
68 | + lastDay: function () { | ||
69 | + return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; | ||
70 | + }, | ||
71 | + lastWeek: function () { | ||
72 | + return ( | ||
73 | + '[el] dddd [pasado a la' + | ||
74 | + (this.hours() !== 1 ? 's' : '') + | ||
75 | + '] LT' | ||
76 | + ); | ||
77 | + }, | ||
78 | + sameElse: 'L', | ||
79 | + }, | ||
80 | + relativeTime: { | ||
81 | + future: 'en %s', | ||
82 | + past: 'hace %s', | ||
83 | + s: 'unos segundos', | ||
84 | + ss: '%d segundos', | ||
85 | + m: 'un minuto', | ||
86 | + mm: '%d minutos', | ||
87 | + h: 'una hora', | ||
88 | + hh: '%d horas', | ||
89 | + d: 'un día', | ||
90 | + dd: '%d días', | ||
91 | + M: 'un mes', | ||
92 | + MM: '%d meses', | ||
93 | + y: 'un año', | ||
94 | + yy: '%d años', | ||
95 | + }, | ||
96 | + dayOfMonthOrdinalParse: /\d{1,2}º/, | ||
97 | + ordinal: '%dº', | ||
98 | + week: { | ||
99 | + dow: 1, // Monday is the first day of the week. | ||
100 | + doy: 4, // The week that contains Jan 4th is the first week of the year. | ||
101 | + }, | ||
102 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : Spanish (United States) [es-us] | ||
3 | +//! author : bustta : https://github.com/bustta | ||
4 | +//! author : chrisrodz : https://github.com/chrisrodz | ||
5 | + | ||
6 | +import moment from '../moment'; | ||
7 | + | ||
8 | +var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split( | ||
9 | + '_' | ||
10 | + ), | ||
11 | + monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), | ||
12 | + monthsParse = [ | ||
13 | + /^ene/i, | ||
14 | + /^feb/i, | ||
15 | + /^mar/i, | ||
16 | + /^abr/i, | ||
17 | + /^may/i, | ||
18 | + /^jun/i, | ||
19 | + /^jul/i, | ||
20 | + /^ago/i, | ||
21 | + /^sep/i, | ||
22 | + /^oct/i, | ||
23 | + /^nov/i, | ||
24 | + /^dic/i, | ||
25 | + ], | ||
26 | + 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; | ||
27 | + | ||
28 | +export default moment.defineLocale('es-us', { | ||
29 | + months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split( | ||
30 | + '_' | ||
31 | + ), | ||
32 | + monthsShort: function (m, format) { | ||
33 | + if (!m) { | ||
34 | + return monthsShortDot; | ||
35 | + } else if (/-MMM-/.test(format)) { | ||
36 | + return monthsShort[m.month()]; | ||
37 | + } else { | ||
38 | + return monthsShortDot[m.month()]; | ||
39 | + } | ||
40 | + }, | ||
41 | + monthsRegex: monthsRegex, | ||
42 | + monthsShortRegex: monthsRegex, | ||
43 | + monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, | ||
44 | + monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, | ||
45 | + monthsParse: monthsParse, | ||
46 | + longMonthsParse: monthsParse, | ||
47 | + shortMonthsParse: monthsParse, | ||
48 | + weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), | ||
49 | + weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), | ||
50 | + weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), | ||
51 | + weekdaysParseExact: true, | ||
52 | + longDateFormat: { | ||
53 | + LT: 'h:mm A', | ||
54 | + LTS: 'h:mm:ss A', | ||
55 | + L: 'MM/DD/YYYY', | ||
56 | + LL: 'D [de] MMMM [de] YYYY', | ||
57 | + LLL: 'D [de] MMMM [de] YYYY h:mm A', | ||
58 | + LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A', | ||
59 | + }, | ||
60 | + calendar: { | ||
61 | + sameDay: function () { | ||
62 | + return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; | ||
63 | + }, | ||
64 | + nextDay: function () { | ||
65 | + return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; | ||
66 | + }, | ||
67 | + nextWeek: function () { | ||
68 | + return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; | ||
69 | + }, | ||
70 | + lastDay: function () { | ||
71 | + return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; | ||
72 | + }, | ||
73 | + lastWeek: function () { | ||
74 | + return ( | ||
75 | + '[el] dddd [pasado a la' + | ||
76 | + (this.hours() !== 1 ? 's' : '') + | ||
77 | + '] LT' | ||
78 | + ); | ||
79 | + }, | ||
80 | + sameElse: 'L', | ||
81 | + }, | ||
82 | + relativeTime: { | ||
83 | + future: 'en %s', | ||
84 | + past: 'hace %s', | ||
85 | + s: 'unos segundos', | ||
86 | + ss: '%d segundos', | ||
87 | + m: 'un minuto', | ||
88 | + mm: '%d minutos', | ||
89 | + h: 'una hora', | ||
90 | + hh: '%d horas', | ||
91 | + d: 'un día', | ||
92 | + dd: '%d días', | ||
93 | + M: 'un mes', | ||
94 | + MM: '%d meses', | ||
95 | + y: 'un año', | ||
96 | + yy: '%d años', | ||
97 | + }, | ||
98 | + dayOfMonthOrdinalParse: /\d{1,2}º/, | ||
99 | + ordinal: '%dº', | ||
100 | + week: { | ||
101 | + dow: 0, // Sunday is the first day of the week. | ||
102 | + doy: 6, // The week that contains Jan 6th is the first week of the year. | ||
103 | + }, | ||
104 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : Spanish [es] | ||
3 | +//! author : Julio Napurí : https://github.com/julionc | ||
4 | + | ||
5 | +import moment from '../moment'; | ||
6 | + | ||
7 | +var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split( | ||
8 | + '_' | ||
9 | + ), | ||
10 | + monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), | ||
11 | + monthsParse = [ | ||
12 | + /^ene/i, | ||
13 | + /^feb/i, | ||
14 | + /^mar/i, | ||
15 | + /^abr/i, | ||
16 | + /^may/i, | ||
17 | + /^jun/i, | ||
18 | + /^jul/i, | ||
19 | + /^ago/i, | ||
20 | + /^sep/i, | ||
21 | + /^oct/i, | ||
22 | + /^nov/i, | ||
23 | + /^dic/i, | ||
24 | + ], | ||
25 | + 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; | ||
26 | + | ||
27 | +export default moment.defineLocale('es', { | ||
28 | + months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split( | ||
29 | + '_' | ||
30 | + ), | ||
31 | + monthsShort: function (m, format) { | ||
32 | + if (!m) { | ||
33 | + return monthsShortDot; | ||
34 | + } else if (/-MMM-/.test(format)) { | ||
35 | + return monthsShort[m.month()]; | ||
36 | + } else { | ||
37 | + return monthsShortDot[m.month()]; | ||
38 | + } | ||
39 | + }, | ||
40 | + monthsRegex: monthsRegex, | ||
41 | + monthsShortRegex: monthsRegex, | ||
42 | + monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, | ||
43 | + monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, | ||
44 | + monthsParse: monthsParse, | ||
45 | + longMonthsParse: monthsParse, | ||
46 | + shortMonthsParse: monthsParse, | ||
47 | + weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), | ||
48 | + weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), | ||
49 | + weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), | ||
50 | + weekdaysParseExact: true, | ||
51 | + longDateFormat: { | ||
52 | + LT: 'H:mm', | ||
53 | + LTS: 'H:mm:ss', | ||
54 | + L: 'DD/MM/YYYY', | ||
55 | + LL: 'D [de] MMMM [de] YYYY', | ||
56 | + LLL: 'D [de] MMMM [de] YYYY H:mm', | ||
57 | + LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm', | ||
58 | + }, | ||
59 | + calendar: { | ||
60 | + sameDay: function () { | ||
61 | + return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; | ||
62 | + }, | ||
63 | + nextDay: function () { | ||
64 | + return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; | ||
65 | + }, | ||
66 | + nextWeek: function () { | ||
67 | + return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; | ||
68 | + }, | ||
69 | + lastDay: function () { | ||
70 | + return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; | ||
71 | + }, | ||
72 | + lastWeek: function () { | ||
73 | + return ( | ||
74 | + '[el] dddd [pasado a la' + | ||
75 | + (this.hours() !== 1 ? 's' : '') + | ||
76 | + '] LT' | ||
77 | + ); | ||
78 | + }, | ||
79 | + sameElse: 'L', | ||
80 | + }, | ||
81 | + relativeTime: { | ||
82 | + future: 'en %s', | ||
83 | + past: 'hace %s', | ||
84 | + s: 'unos segundos', | ||
85 | + ss: '%d segundos', | ||
86 | + m: 'un minuto', | ||
87 | + mm: '%d minutos', | ||
88 | + h: 'una hora', | ||
89 | + hh: '%d horas', | ||
90 | + d: 'un día', | ||
91 | + dd: '%d días', | ||
92 | + M: 'un mes', | ||
93 | + MM: '%d meses', | ||
94 | + y: 'un año', | ||
95 | + yy: '%d años', | ||
96 | + }, | ||
97 | + dayOfMonthOrdinalParse: /\d{1,2}º/, | ||
98 | + ordinal: '%dº', | ||
99 | + week: { | ||
100 | + dow: 1, // Monday is the first day of the week. | ||
101 | + doy: 4, // The week that contains Jan 4th is the first week of the year. | ||
102 | + }, | ||
103 | + invalidDate: 'Fecha invalida', | ||
104 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : Estonian [et] | ||
3 | +//! author : Henry Kehlmann : https://github.com/madhenry | ||
4 | +//! improvements : Illimar Tambek : https://github.com/ragulka | ||
5 | + | ||
6 | +import moment from '../moment'; | ||
7 | + | ||
8 | +function processRelativeTime(number, withoutSuffix, key, isFuture) { | ||
9 | + var format = { | ||
10 | + s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'], | ||
11 | + ss: [number + 'sekundi', number + 'sekundit'], | ||
12 | + m: ['ühe minuti', 'üks minut'], | ||
13 | + mm: [number + ' minuti', number + ' minutit'], | ||
14 | + h: ['ühe tunni', 'tund aega', 'üks tund'], | ||
15 | + hh: [number + ' tunni', number + ' tundi'], | ||
16 | + d: ['ühe päeva', 'üks päev'], | ||
17 | + M: ['kuu aja', 'kuu aega', 'üks kuu'], | ||
18 | + MM: [number + ' kuu', number + ' kuud'], | ||
19 | + y: ['ühe aasta', 'aasta', 'üks aasta'], | ||
20 | + yy: [number + ' aasta', number + ' aastat'], | ||
21 | + }; | ||
22 | + if (withoutSuffix) { | ||
23 | + return format[key][2] ? format[key][2] : format[key][1]; | ||
24 | + } | ||
25 | + return isFuture ? format[key][0] : format[key][1]; | ||
26 | +} | ||
27 | + | ||
28 | +export default moment.defineLocale('et', { | ||
29 | + months: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split( | ||
30 | + '_' | ||
31 | + ), | ||
32 | + monthsShort: 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split( | ||
33 | + '_' | ||
34 | + ), | ||
35 | + weekdays: 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split( | ||
36 | + '_' | ||
37 | + ), | ||
38 | + weekdaysShort: 'P_E_T_K_N_R_L'.split('_'), | ||
39 | + weekdaysMin: 'P_E_T_K_N_R_L'.split('_'), | ||
40 | + longDateFormat: { | ||
41 | + LT: 'H:mm', | ||
42 | + LTS: 'H:mm:ss', | ||
43 | + L: 'DD.MM.YYYY', | ||
44 | + LL: 'D. MMMM YYYY', | ||
45 | + LLL: 'D. MMMM YYYY H:mm', | ||
46 | + LLLL: 'dddd, D. MMMM YYYY H:mm', | ||
47 | + }, | ||
48 | + calendar: { | ||
49 | + sameDay: '[Täna,] LT', | ||
50 | + nextDay: '[Homme,] LT', | ||
51 | + nextWeek: '[Järgmine] dddd LT', | ||
52 | + lastDay: '[Eile,] LT', | ||
53 | + lastWeek: '[Eelmine] dddd LT', | ||
54 | + sameElse: 'L', | ||
55 | + }, | ||
56 | + relativeTime: { | ||
57 | + future: '%s pärast', | ||
58 | + past: '%s tagasi', | ||
59 | + s: processRelativeTime, | ||
60 | + ss: processRelativeTime, | ||
61 | + m: processRelativeTime, | ||
62 | + mm: processRelativeTime, | ||
63 | + h: processRelativeTime, | ||
64 | + hh: processRelativeTime, | ||
65 | + d: processRelativeTime, | ||
66 | + dd: '%d päeva', | ||
67 | + M: processRelativeTime, | ||
68 | + MM: processRelativeTime, | ||
69 | + y: processRelativeTime, | ||
70 | + yy: processRelativeTime, | ||
71 | + }, | ||
72 | + dayOfMonthOrdinalParse: /\d{1,2}\./, | ||
73 | + ordinal: '%d.', | ||
74 | + week: { | ||
75 | + dow: 1, // Monday is the first day of the week. | ||
76 | + doy: 4, // The week that contains Jan 4th is the first week of the year. | ||
77 | + }, | ||
78 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : Basque [eu] | ||
3 | +//! author : Eneko Illarramendi : https://github.com/eillarra | ||
4 | + | ||
5 | +import moment from '../moment'; | ||
6 | + | ||
7 | +export default moment.defineLocale('eu', { | ||
8 | + months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split( | ||
9 | + '_' | ||
10 | + ), | ||
11 | + monthsShort: 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split( | ||
12 | + '_' | ||
13 | + ), | ||
14 | + monthsParseExact: true, | ||
15 | + weekdays: 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split( | ||
16 | + '_' | ||
17 | + ), | ||
18 | + weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'), | ||
19 | + weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'), | ||
20 | + weekdaysParseExact: true, | ||
21 | + longDateFormat: { | ||
22 | + LT: 'HH:mm', | ||
23 | + LTS: 'HH:mm:ss', | ||
24 | + L: 'YYYY-MM-DD', | ||
25 | + LL: 'YYYY[ko] MMMM[ren] D[a]', | ||
26 | + LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm', | ||
27 | + LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm', | ||
28 | + l: 'YYYY-M-D', | ||
29 | + ll: 'YYYY[ko] MMM D[a]', | ||
30 | + lll: 'YYYY[ko] MMM D[a] HH:mm', | ||
31 | + llll: 'ddd, YYYY[ko] MMM D[a] HH:mm', | ||
32 | + }, | ||
33 | + calendar: { | ||
34 | + sameDay: '[gaur] LT[etan]', | ||
35 | + nextDay: '[bihar] LT[etan]', | ||
36 | + nextWeek: 'dddd LT[etan]', | ||
37 | + lastDay: '[atzo] LT[etan]', | ||
38 | + lastWeek: '[aurreko] dddd LT[etan]', | ||
39 | + sameElse: 'L', | ||
40 | + }, | ||
41 | + relativeTime: { | ||
42 | + future: '%s barru', | ||
43 | + past: 'duela %s', | ||
44 | + s: 'segundo batzuk', | ||
45 | + ss: '%d segundo', | ||
46 | + m: 'minutu bat', | ||
47 | + mm: '%d minutu', | ||
48 | + h: 'ordu bat', | ||
49 | + hh: '%d ordu', | ||
50 | + d: 'egun bat', | ||
51 | + dd: '%d egun', | ||
52 | + M: 'hilabete bat', | ||
53 | + MM: '%d hilabete', | ||
54 | + y: 'urte bat', | ||
55 | + yy: '%d urte', | ||
56 | + }, | ||
57 | + dayOfMonthOrdinalParse: /\d{1,2}\./, | ||
58 | + ordinal: '%d.', | ||
59 | + week: { | ||
60 | + dow: 1, // Monday is the first day of the week. | ||
61 | + doy: 7, // The week that contains Jan 7th is the first week of the year. | ||
62 | + }, | ||
63 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : Persian [fa] | ||
3 | +//! author : Ebrahim Byagowi : https://github.com/ebraminio | ||
4 | + | ||
5 | +import moment from '../moment'; | ||
6 | + | ||
7 | +var symbolMap = { | ||
8 | + '1': '۱', | ||
9 | + '2': '۲', | ||
10 | + '3': '۳', | ||
11 | + '4': '۴', | ||
12 | + '5': '۵', | ||
13 | + '6': '۶', | ||
14 | + '7': '۷', | ||
15 | + '8': '۸', | ||
16 | + '9': '۹', | ||
17 | + '0': '۰', | ||
18 | + }, | ||
19 | + numberMap = { | ||
20 | + '۱': '1', | ||
21 | + '۲': '2', | ||
22 | + '۳': '3', | ||
23 | + '۴': '4', | ||
24 | + '۵': '5', | ||
25 | + '۶': '6', | ||
26 | + '۷': '7', | ||
27 | + '۸': '8', | ||
28 | + '۹': '9', | ||
29 | + '۰': '0', | ||
30 | + }; | ||
31 | + | ||
32 | +export default moment.defineLocale('fa', { | ||
33 | + months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split( | ||
34 | + '_' | ||
35 | + ), | ||
36 | + monthsShort: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split( | ||
37 | + '_' | ||
38 | + ), | ||
39 | + weekdays: 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split( | ||
40 | + '_' | ||
41 | + ), | ||
42 | + weekdaysShort: 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split( | ||
43 | + '_' | ||
44 | + ), | ||
45 | + weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'), | ||
46 | + weekdaysParseExact: true, | ||
47 | + longDateFormat: { | ||
48 | + LT: 'HH:mm', | ||
49 | + LTS: 'HH:mm:ss', | ||
50 | + L: 'DD/MM/YYYY', | ||
51 | + LL: 'D MMMM YYYY', | ||
52 | + LLL: 'D MMMM YYYY HH:mm', | ||
53 | + LLLL: 'dddd, D MMMM YYYY HH:mm', | ||
54 | + }, | ||
55 | + meridiemParse: /قبل از ظهر|بعد از ظهر/, | ||
56 | + isPM: function (input) { | ||
57 | + return /بعد از ظهر/.test(input); | ||
58 | + }, | ||
59 | + meridiem: function (hour, minute, isLower) { | ||
60 | + if (hour < 12) { | ||
61 | + return 'قبل از ظهر'; | ||
62 | + } else { | ||
63 | + return 'بعد از ظهر'; | ||
64 | + } | ||
65 | + }, | ||
66 | + calendar: { | ||
67 | + sameDay: '[امروز ساعت] LT', | ||
68 | + nextDay: '[فردا ساعت] LT', | ||
69 | + nextWeek: 'dddd [ساعت] LT', | ||
70 | + lastDay: '[دیروز ساعت] LT', | ||
71 | + lastWeek: 'dddd [پیش] [ساعت] LT', | ||
72 | + sameElse: 'L', | ||
73 | + }, | ||
74 | + relativeTime: { | ||
75 | + future: 'در %s', | ||
76 | + past: '%s پیش', | ||
77 | + s: 'چند ثانیه', | ||
78 | + ss: '%d ثانیه', | ||
79 | + m: 'یک دقیقه', | ||
80 | + mm: '%d دقیقه', | ||
81 | + h: 'یک ساعت', | ||
82 | + hh: '%d ساعت', | ||
83 | + d: 'یک روز', | ||
84 | + dd: '%d روز', | ||
85 | + M: 'یک ماه', | ||
86 | + MM: '%d ماه', | ||
87 | + y: 'یک سال', | ||
88 | + yy: '%d سال', | ||
89 | + }, | ||
90 | + preparse: function (string) { | ||
91 | + return string | ||
92 | + .replace(/[۰-۹]/g, function (match) { | ||
93 | + return numberMap[match]; | ||
94 | + }) | ||
95 | + .replace(/،/g, ','); | ||
96 | + }, | ||
97 | + postformat: function (string) { | ||
98 | + return string | ||
99 | + .replace(/\d/g, function (match) { | ||
100 | + return symbolMap[match]; | ||
101 | + }) | ||
102 | + .replace(/,/g, '،'); | ||
103 | + }, | ||
104 | + dayOfMonthOrdinalParse: /\d{1,2}م/, | ||
105 | + ordinal: '%dم', | ||
106 | + week: { | ||
107 | + dow: 6, // Saturday is the first day of the week. | ||
108 | + doy: 12, // The week that contains Jan 12th is the first week of the year. | ||
109 | + }, | ||
110 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : Finnish [fi] | ||
3 | +//! author : Tarmo Aidantausta : https://github.com/bleadof | ||
4 | + | ||
5 | +import moment from '../moment'; | ||
6 | + | ||
7 | +var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split( | ||
8 | + ' ' | ||
9 | + ), | ||
10 | + numbersFuture = [ | ||
11 | + 'nolla', | ||
12 | + 'yhden', | ||
13 | + 'kahden', | ||
14 | + 'kolmen', | ||
15 | + 'neljän', | ||
16 | + 'viiden', | ||
17 | + 'kuuden', | ||
18 | + numbersPast[7], | ||
19 | + numbersPast[8], | ||
20 | + numbersPast[9], | ||
21 | + ]; | ||
22 | +function translate(number, withoutSuffix, key, isFuture) { | ||
23 | + var result = ''; | ||
24 | + switch (key) { | ||
25 | + case 's': | ||
26 | + return isFuture ? 'muutaman sekunnin' : 'muutama sekunti'; | ||
27 | + case 'ss': | ||
28 | + return isFuture ? 'sekunnin' : 'sekuntia'; | ||
29 | + case 'm': | ||
30 | + return isFuture ? 'minuutin' : 'minuutti'; | ||
31 | + case 'mm': | ||
32 | + result = isFuture ? 'minuutin' : 'minuuttia'; | ||
33 | + break; | ||
34 | + case 'h': | ||
35 | + return isFuture ? 'tunnin' : 'tunti'; | ||
36 | + case 'hh': | ||
37 | + result = isFuture ? 'tunnin' : 'tuntia'; | ||
38 | + break; | ||
39 | + case 'd': | ||
40 | + return isFuture ? 'päivän' : 'päivä'; | ||
41 | + case 'dd': | ||
42 | + result = isFuture ? 'päivän' : 'päivää'; | ||
43 | + break; | ||
44 | + case 'M': | ||
45 | + return isFuture ? 'kuukauden' : 'kuukausi'; | ||
46 | + case 'MM': | ||
47 | + result = isFuture ? 'kuukauden' : 'kuukautta'; | ||
48 | + break; | ||
49 | + case 'y': | ||
50 | + return isFuture ? 'vuoden' : 'vuosi'; | ||
51 | + case 'yy': | ||
52 | + result = isFuture ? 'vuoden' : 'vuotta'; | ||
53 | + break; | ||
54 | + } | ||
55 | + result = verbalNumber(number, isFuture) + ' ' + result; | ||
56 | + return result; | ||
57 | +} | ||
58 | +function verbalNumber(number, isFuture) { | ||
59 | + return number < 10 | ||
60 | + ? isFuture | ||
61 | + ? numbersFuture[number] | ||
62 | + : numbersPast[number] | ||
63 | + : number; | ||
64 | +} | ||
65 | + | ||
66 | +export default moment.defineLocale('fi', { | ||
67 | + months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split( | ||
68 | + '_' | ||
69 | + ), | ||
70 | + monthsShort: 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split( | ||
71 | + '_' | ||
72 | + ), | ||
73 | + weekdays: 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split( | ||
74 | + '_' | ||
75 | + ), | ||
76 | + weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'), | ||
77 | + weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'), | ||
78 | + longDateFormat: { | ||
79 | + LT: 'HH.mm', | ||
80 | + LTS: 'HH.mm.ss', | ||
81 | + L: 'DD.MM.YYYY', | ||
82 | + LL: 'Do MMMM[ta] YYYY', | ||
83 | + LLL: 'Do MMMM[ta] YYYY, [klo] HH.mm', | ||
84 | + LLLL: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm', | ||
85 | + l: 'D.M.YYYY', | ||
86 | + ll: 'Do MMM YYYY', | ||
87 | + lll: 'Do MMM YYYY, [klo] HH.mm', | ||
88 | + llll: 'ddd, Do MMM YYYY, [klo] HH.mm', | ||
89 | + }, | ||
90 | + calendar: { | ||
91 | + sameDay: '[tänään] [klo] LT', | ||
92 | + nextDay: '[huomenna] [klo] LT', | ||
93 | + nextWeek: 'dddd [klo] LT', | ||
94 | + lastDay: '[eilen] [klo] LT', | ||
95 | + lastWeek: '[viime] dddd[na] [klo] LT', | ||
96 | + sameElse: 'L', | ||
97 | + }, | ||
98 | + relativeTime: { | ||
99 | + future: '%s päästä', | ||
100 | + past: '%s sitten', | ||
101 | + s: translate, | ||
102 | + ss: translate, | ||
103 | + m: translate, | ||
104 | + mm: translate, | ||
105 | + h: translate, | ||
106 | + hh: translate, | ||
107 | + d: translate, | ||
108 | + dd: translate, | ||
109 | + M: translate, | ||
110 | + MM: translate, | ||
111 | + y: translate, | ||
112 | + yy: translate, | ||
113 | + }, | ||
114 | + dayOfMonthOrdinalParse: /\d{1,2}\./, | ||
115 | + ordinal: '%d.', | ||
116 | + week: { | ||
117 | + dow: 1, // Monday is the first day of the week. | ||
118 | + doy: 4, // The week that contains Jan 4th is the first week of the year. | ||
119 | + }, | ||
120 | +}); |
1 | +//! moment.js locale configuration | ||
2 | +//! locale : Filipino [fil] | ||
3 | +//! author : Dan Hagman : https://github.com/hagmandan | ||
4 | +//! author : Matthew Co : https://github.com/matthewdeeco | ||
5 | + | ||
6 | +import moment from '../moment'; | ||
7 | + | ||
8 | +export default moment.defineLocale('fil', { | ||
9 | + months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split( | ||
10 | + '_' | ||
11 | + ), | ||
12 | + monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'), | ||
13 | + weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split( | ||
14 | + '_' | ||
15 | + ), | ||
16 | + weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'), | ||
17 | + weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'), | ||
18 | + longDateFormat: { | ||
19 | + LT: 'HH:mm', | ||
20 | + LTS: 'HH:mm:ss', | ||
21 | + L: 'MM/D/YYYY', | ||
22 | + LL: 'MMMM D, YYYY', | ||
23 | + LLL: 'MMMM D, YYYY HH:mm', | ||
24 | + LLLL: 'dddd, MMMM DD, YYYY HH:mm', | ||
25 | + }, | ||
26 | + calendar: { | ||
27 | + sameDay: 'LT [ngayong araw]', | ||
28 | + nextDay: '[Bukas ng] LT', | ||
29 | + nextWeek: 'LT [sa susunod na] dddd', | ||
30 | + lastDay: 'LT [kahapon]', | ||
31 | + lastWeek: 'LT [noong nakaraang] dddd', | ||
32 | + sameElse: 'L', | ||
33 | + }, | ||
34 | + relativeTime: { | ||
35 | + future: 'sa loob ng %s', | ||
36 | + past: '%s ang nakalipas', | ||
37 | + s: 'ilang segundo', | ||
38 | + ss: '%d segundo', | ||
39 | + m: 'isang minuto', | ||
40 | + mm: '%d minuto', | ||
41 | + h: 'isang oras', | ||
42 | + hh: '%d oras', | ||
43 | + d: 'isang araw', | ||
44 | + dd: '%d araw', | ||
45 | + M: 'isang buwan', | ||
46 | + MM: '%d buwan', | ||
47 | + y: 'isang taon', | ||
48 | + yy: '%d taon', | ||
49 | + }, | ||
50 | + dayOfMonthOrdinalParse: /\d{1,2}/, | ||
51 | + ordinal: function (number) { | ||
52 | + return number; | ||
53 | + }, | ||
54 | + week: { | ||
55 | + dow: 1, // Monday is the first day of the week. | ||
56 | + doy: 4, // The week that contains Jan 4th is the first week of the year. | ||
57 | + }, | ||
58 | +}); |
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
webserver/myapp/node_modules/moment/ender.js
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
webserver/myapp/package-lock.json
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
webserver/myapp/public/javascripts/main.js
0 → 100755
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
webserver/myapp/public/stylesheets/main.css
0 → 100755
This diff is collapsed. Click to expand it.
webserver/myapp/public/stylesheets/util.css
0 → 100755
This diff is collapsed. Click to expand it.
webserver/myapp/routes/admin.js
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
webserver/myapp/views/admin.pug
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
webserver/package-lock.json
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment