repo
stringlengths
5
106
file_url
stringlengths
78
301
file_path
stringlengths
4
211
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:56:49
2026-01-05 02:23:25
truncated
bool
2 classes
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/plugin/timezone/index.js
src/plugin/timezone/index.js
import { MIN, MS } from '../../constant' const typeToPos = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 } // Cache time-zone lookups from Intl.DateTimeFormat, // as it is a *very* slow method. const dtfCache = {} const getDateTimeFormat = (timezone, options = {}) => { const timeZoneName = options.timeZoneName || 'short' const key = `${timezone}|${timeZoneName}` let dtf = dtfCache[key] if (!dtf) { dtf = new Intl.DateTimeFormat('en-US', { hour12: false, timeZone: timezone, year: 'numeric', month: '2-digit', day: '2-digit', hour: '2-digit', minute: '2-digit', second: '2-digit', timeZoneName }) dtfCache[key] = dtf } return dtf } export default (o, c, d) => { let defaultTimezone const makeFormatParts = (timestamp, timezone, options = {}) => { const date = new Date(timestamp) const dtf = getDateTimeFormat(timezone, options) return dtf.formatToParts(date) } const tzOffset = (timestamp, timezone) => { const formatResult = makeFormatParts(timestamp, timezone) const filled = [] for (let i = 0; i < formatResult.length; i += 1) { const { type, value } = formatResult[i] const pos = typeToPos[type] if (pos >= 0) { filled[pos] = parseInt(value, 10) } } const hour = filled[3] // Workaround for the same behavior in different node version // https://github.com/nodejs/node/issues/33027 /* istanbul ignore next */ const fixedHour = hour === 24 ? 0 : hour const utcString = `${filled[0]}-${filled[1]}-${filled[2]} ${fixedHour}:${filled[4]}:${filled[5]}:000` const utcTs = d.utc(utcString).valueOf() let asTS = +timestamp const over = asTS % 1000 asTS -= over return (utcTs - asTS) / (60 * 1000) } // find the right offset a given local time. The o input is our guess, which determines which // offset we'll pick in ambiguous cases (e.g. there are two 3 AMs b/c Fallback DST) // https://github.com/moment/luxon/blob/master/src/datetime.js#L76 const fixOffset = (localTS, o0, tz) => { // Our UTC time is just a guess because our offset is just a guess let utcGuess = localTS - (o0 * 60 * 1000) // Test whether the zone matches the offset for this ts const o2 = tzOffset(utcGuess, tz) // If so, offset didn't change and we're done if (o0 === o2) { return [utcGuess, o0] } // If not, change the ts by the difference in the offset utcGuess -= (o2 - o0) * 60 * 1000 // If that gives us the local time we want, we're done const o3 = tzOffset(utcGuess, tz) if (o2 === o3) { return [utcGuess, o2] } // If it's different, we're in a hole time. // The offset has changed, but the we don't adjust the time return [localTS - (Math.min(o2, o3) * 60 * 1000), Math.max(o2, o3)] } const proto = c.prototype proto.tz = function (timezone = defaultTimezone, keepLocalTime) { const oldOffset = this.utcOffset() const date = this.toDate() const target = date.toLocaleString('en-US', { timeZone: timezone }) const diff = Math.round((date - new Date(target)) / 1000 / 60) const offset = (-Math.round(date.getTimezoneOffset() / 15) * 15) - diff const isUTC = !Number(offset) let ins if (isUTC) { // if utcOffset is 0, turn it to UTC mode ins = this.utcOffset(0, keepLocalTime) } else { ins = d(target, { locale: this.$L }).$set(MS, this.$ms) .utcOffset(offset, true) if (keepLocalTime) { const newOffset = ins.utcOffset() ins = ins.add(oldOffset - newOffset, MIN) } } ins.$x.$timezone = timezone return ins } proto.offsetName = function (type) { // type: short(default) / long const zone = this.$x.$timezone || d.tz.guess() const result = makeFormatParts(this.valueOf(), zone, { timeZoneName: type }).find(m => m.type.toLowerCase() === 'timezonename') return result && result.value } const oldStartOf = proto.startOf proto.startOf = function (units, startOf) { if (!this.$x || !this.$x.$timezone) { return oldStartOf.call(this, units, startOf) } const withoutTz = d(this.format('YYYY-MM-DD HH:mm:ss:SSS'), { locale: this.$L }) const startOfWithoutTz = oldStartOf.call(withoutTz, units, startOf) return startOfWithoutTz.tz(this.$x.$timezone, true) } d.tz = function (input, arg1, arg2) { const parseFormat = arg2 && arg1 const timezone = arg2 || arg1 || defaultTimezone const previousOffset = tzOffset(+d(), timezone) if (typeof input !== 'string') { // timestamp number || js Date || Day.js return d(input).tz(timezone) } const localTs = d.utc(input, parseFormat).valueOf() const [targetTs, targetOffset] = fixOffset(localTs, previousOffset, timezone) const ins = d(targetTs).utcOffset(targetOffset) ins.$x.$timezone = timezone return ins } d.tz.guess = function () { return Intl.DateTimeFormat().resolvedOptions().timeZone } d.tz.setDefault = function (timezone) { defaultTimezone = timezone } }
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/plugin/pluralGetSet/index.js
src/plugin/pluralGetSet/index.js
export default (o, c) => { const proto = c.prototype const pluralAliases = [ 'milliseconds', 'seconds', 'minutes', 'hours', 'days', 'weeks', 'isoWeeks', 'months', 'quarters', 'years', 'dates' ] pluralAliases.forEach((alias) => { proto[alias] = proto[alias.replace(/s$/, '')] }) }
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/plugin/calendar/index.js
src/plugin/calendar/index.js
export default (o, c, d) => { const LT = 'h:mm A' const L = 'MM/DD/YYYY' const calendarFormat = { lastDay: `[Yesterday at] ${LT}`, sameDay: `[Today at] ${LT}`, nextDay: `[Tomorrow at] ${LT}`, nextWeek: `dddd [at] ${LT}`, lastWeek: `[Last] dddd [at] ${LT}`, sameElse: L } const proto = c.prototype proto.calendar = function (referenceTime, formats) { const format = formats || this.$locale().calendar || calendarFormat const referenceStartOfDay = d(referenceTime || undefined).startOf('d') const diff = this.diff(referenceStartOfDay, 'd', true) const sameElse = 'sameElse' /* eslint-disable no-nested-ternary */ const retVal = diff < -6 ? sameElse : diff < -1 ? 'lastWeek' : diff < 0 ? 'lastDay' : diff < 1 ? 'sameDay' : diff < 2 ? 'nextDay' : diff < 7 ? 'nextWeek' : sameElse /* eslint-enable no-nested-ternary */ const currentFormat = format[retVal] || calendarFormat[retVal] if (typeof currentFormat === 'function') { return currentFormat.call(this, d()) } return this.format(currentFormat) } }
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/plugin/weekday/index.js
src/plugin/weekday/index.js
export default (o, c) => { const proto = c.prototype proto.weekday = function (input) { const weekStart = this.$locale().weekStart || 0 const { $W } = this const weekday = ($W < weekStart ? $W + 7 : $W) - weekStart if (this.$utils().u(input)) { return weekday } return this.subtract(weekday, 'day').add(input, 'day') } }
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/plugin/buddhistEra/index.js
src/plugin/buddhistEra/index.js
import { FORMAT_DEFAULT } from '../../constant' export default (o, c) => { // locale needed later const proto = c.prototype const oldFormat = proto.format // extend en locale here proto.format = function (formatStr) { const yearBias = 543 const str = formatStr || FORMAT_DEFAULT const result = str.replace(/(\[[^\]]+])|BBBB|BB/g, (match, a) => { const year = String(this.$y + yearBias) const args = match === 'BB' ? [year.slice(-2), 2] : [year, 4] return a || this.$utils().s(...args, '0') }) return oldFormat.bind(this)(result) } }
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/plugin/utc/index.js
src/plugin/utc/index.js
import { MILLISECONDS_A_MINUTE, MIN } from '../../constant' const REGEX_VALID_OFFSET_FORMAT = /[+-]\d\d(?::?\d\d)?/g const REGEX_OFFSET_HOURS_MINUTES_FORMAT = /([+-]|\d\d)/g function offsetFromString(value = '') { const offset = value.match(REGEX_VALID_OFFSET_FORMAT) if (!offset) { return null } const [indicator, hoursOffset, minutesOffset] = `${offset[0]}`.match(REGEX_OFFSET_HOURS_MINUTES_FORMAT) || ['-', 0, 0] const totalOffsetInMinutes = (+hoursOffset * 60) + (+minutesOffset) if (totalOffsetInMinutes === 0) { return 0 } return indicator === '+' ? totalOffsetInMinutes : -totalOffsetInMinutes } export default (option, Dayjs, dayjs) => { const proto = Dayjs.prototype dayjs.utc = function (date) { const cfg = { date, utc: true, args: arguments } // eslint-disable-line prefer-rest-params return new Dayjs(cfg) // eslint-disable-line no-use-before-define } proto.utc = function (keepLocalTime) { const ins = dayjs(this.toDate(), { locale: this.$L, utc: true }) if (keepLocalTime) { return ins.add(this.utcOffset(), MIN) } return ins } proto.local = function () { return dayjs(this.toDate(), { locale: this.$L, utc: false }) } const oldParse = proto.parse proto.parse = function (cfg) { if (cfg.utc) { this.$u = true } if (!this.$utils().u(cfg.$offset)) { this.$offset = cfg.$offset } oldParse.call(this, cfg) } const oldInit = proto.init proto.init = function () { if (this.$u) { const { $d } = this this.$y = $d.getUTCFullYear() this.$M = $d.getUTCMonth() this.$D = $d.getUTCDate() this.$W = $d.getUTCDay() this.$H = $d.getUTCHours() this.$m = $d.getUTCMinutes() this.$s = $d.getUTCSeconds() this.$ms = $d.getUTCMilliseconds() } else { oldInit.call(this) } } const oldUtcOffset = proto.utcOffset proto.utcOffset = function (input, keepLocalTime) { const { u } = this.$utils() if (u(input)) { if (this.$u) { return 0 } if (!u(this.$offset)) { return this.$offset } return oldUtcOffset.call(this) } if (typeof input === 'string') { input = offsetFromString(input) if (input === null) { return this } } const offset = Math.abs(input) <= 16 ? input * 60 : input if (offset === 0) { return this.utc(keepLocalTime) } let ins = this.clone() if (keepLocalTime) { ins.$offset = offset ins.$u = false return ins } const localTimezoneOffset = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset() ins = this.local().add(offset + localTimezoneOffset, MIN) ins.$offset = offset ins.$x.$localOffset = localTimezoneOffset return ins } const oldFormat = proto.format const UTC_FORMAT_DEFAULT = 'YYYY-MM-DDTHH:mm:ss[Z]' proto.format = function (formatStr) { const str = formatStr || (this.$u ? UTC_FORMAT_DEFAULT : '') return oldFormat.call(this, str) } proto.valueOf = function () { const addedOffset = !this.$utils().u(this.$offset) ? this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset()) : 0 return this.$d.valueOf() - (addedOffset * MILLISECONDS_A_MINUTE) } proto.isUTC = function () { return !!this.$u } proto.toISOString = function () { return this.toDate().toISOString() } proto.toString = function () { return this.toDate().toUTCString() } const oldToDate = proto.toDate proto.toDate = function (type) { if (type === 's' && this.$offset) { return dayjs(this.format('YYYY-MM-DD HH:mm:ss:SSS')).toDate() } return oldToDate.call(this) } const oldDiff = proto.diff proto.diff = function (input, units, float) { if (input && this.$u === input.$u) { return oldDiff.call(this, input, units, float) } const localThis = this.local() const localInput = dayjs(input).local() return oldDiff.call(localThis, localInput, units, float) } }
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/plugin/relativeTime/index.js
src/plugin/relativeTime/index.js
import * as C from '../../constant' export default (o, c, d) => { o = o || {} const proto = c.prototype const relObj = { future: 'in %s', past: '%s ago', s: 'a few seconds', m: 'a minute', mm: '%d minutes', h: 'an hour', hh: '%d hours', d: 'a day', dd: '%d days', M: 'a month', MM: '%d months', y: 'a year', yy: '%d years' } d.en.relativeTime = relObj proto.fromToBase = (input, withoutSuffix, instance, isFrom, postFormat) => { const loc = instance.$locale().relativeTime || relObj const T = o.thresholds || [ { l: 's', r: 44, d: C.S }, { l: 'm', r: 89 }, { l: 'mm', r: 44, d: C.MIN }, { l: 'h', r: 89 }, { l: 'hh', r: 21, d: C.H }, { l: 'd', r: 35 }, { l: 'dd', r: 25, d: C.D }, { l: 'M', r: 45 }, { l: 'MM', r: 10, d: C.M }, { l: 'y', r: 17 }, { l: 'yy', d: C.Y } ] const Tl = T.length let result let out let isFuture for (let i = 0; i < Tl; i += 1) { let t = T[i] if (t.d) { result = isFrom ? d(input).diff(instance, t.d, true) : instance.diff(input, t.d, true) } let abs = (o.rounding || Math.round)(Math.abs(result)) isFuture = result > 0 if (abs <= t.r || !t.r) { if (abs <= 1 && i > 0) t = T[i - 1] // 1 minutes -> a minute, 0 seconds -> 0 second const format = loc[t.l] if (postFormat) { abs = postFormat(`${abs}`) } if (typeof format === 'string') { out = format.replace('%d', abs) } else { out = format(abs, withoutSuffix, t.l, isFuture) } break } } if (withoutSuffix) return out const pastOrFuture = isFuture ? loc.future : loc.past if (typeof pastOrFuture === 'function') { return pastOrFuture(out) } return pastOrFuture.replace('%s', out) } function fromTo(input, withoutSuffix, instance, isFrom) { return proto.fromToBase(input, withoutSuffix, instance, isFrom) } proto.to = function (input, withoutSuffix) { return fromTo(input, withoutSuffix, this, true) } proto.from = function (input, withoutSuffix) { return fromTo(input, withoutSuffix, this) } const makeNow = thisDay => (thisDay.$u ? d.utc() : d()) proto.toNow = function (withoutSuffix) { return this.to(makeNow(this), withoutSuffix) } proto.fromNow = function (withoutSuffix) { return this.from(makeNow(this), withoutSuffix) } }
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/plugin/isTomorrow/index.js
src/plugin/isTomorrow/index.js
export default (o, c, d) => { const proto = c.prototype proto.isTomorrow = function () { const comparisonTemplate = 'YYYY-MM-DD' const tomorrow = d().add(1, 'day') return ( this.format(comparisonTemplate) === tomorrow.format(comparisonTemplate) ) } }
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/plugin/isLeapYear/index.js
src/plugin/isLeapYear/index.js
export default (o, c) => { const proto = c.prototype proto.isLeapYear = function () { return ((this.$y % 4 === 0) && (this.$y % 100 !== 0)) || (this.$y % 400 === 0) } }
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/plugin/advancedFormat/index.js
src/plugin/advancedFormat/index.js
import { FORMAT_DEFAULT } from '../../constant' export default (o, c) => { // locale needed later const proto = c.prototype const oldFormat = proto.format proto.format = function (formatStr) { const locale = this.$locale() if (!this.isValid()) { return oldFormat.bind(this)(formatStr) } const utils = this.$utils() const str = formatStr || FORMAT_DEFAULT const result = str.replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g, (match) => { switch (match) { case 'Q': return Math.ceil((this.$M + 1) / 3) case 'Do': return locale.ordinal(this.$D) case 'gggg': return this.weekYear() case 'GGGG': return this.isoWeekYear() case 'wo': return locale.ordinal(this.week(), 'W') // W for week case 'w': case 'ww': return utils.s(this.week(), match === 'w' ? 1 : 2, '0') case 'W': case 'WW': return utils.s(this.isoWeek(), match === 'W' ? 1 : 2, '0') case 'k': case 'kk': return utils.s(String(this.$H === 0 ? 24 : this.$H), match === 'k' ? 1 : 2, '0') case 'X': return Math.floor(this.$d.getTime() / 1000) case 'x': return this.$d.getTime() case 'z': return `[${this.offsetName()}]` case 'zzz': return `[${this.offsetName('long')}]` default: return match } }) return oldFormat.bind(this)(result) } }
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/ko.js
src/locale/ko.js
// Korean [ko] import dayjs from 'dayjs' const locale = { name: 'ko', weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'), weekdaysShort: '일_월_화_수_목_금_토'.split('_'), weekdaysMin: '일_월_화_수_목_금_토'.split('_'), months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'), monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'), ordinal: n => `${n}일`, formats: { LT: 'A h:mm', LTS: 'A h:mm:ss', L: 'YYYY.MM.DD.', LL: 'YYYY년 MMMM D일', LLL: 'YYYY년 MMMM D일 A h:mm', LLLL: 'YYYY년 MMMM D일 dddd A h:mm', l: 'YYYY.MM.DD.', ll: 'YYYY년 MMMM D일', lll: 'YYYY년 MMMM D일 A h:mm', llll: 'YYYY년 MMMM D일 dddd A h:mm' }, meridiem: hour => (hour < 12 ? '오전' : '오후'), relativeTime: { future: '%s 후', past: '%s 전', s: '몇 초', m: '1분', mm: '%d분', h: '한 시간', hh: '%d시간', d: '하루', dd: '%d일', M: '한 달', MM: '%d달', y: '일 년', yy: '%d년' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/hy-am.js
src/locale/hy-am.js
// Armenian [hy-am] import dayjs from 'dayjs' const locale = { name: 'hy-am', weekdays: 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split('_'), months: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split('_'), weekStart: 1, weekdaysShort: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'), monthsShort: 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'), weekdaysMin: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'), ordinal: n => n, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD.MM.YYYY', LL: 'D MMMM YYYY թ.', LLL: 'D MMMM YYYY թ., HH:mm', LLLL: 'dddd, D MMMM YYYY թ., HH:mm' }, relativeTime: { future: '%s հետո', past: '%s առաջ', s: 'մի քանի վայրկյան', m: 'րոպե', mm: '%d րոպե', h: 'ժամ', hh: '%d ժամ', d: 'օր', dd: '%d օր', M: 'ամիս', MM: '%d ամիս', y: 'տարի', yy: '%d տարի' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/sl.js
src/locale/sl.js
// Slovenian [sl] import dayjs from 'dayjs' function dual(n) { return (n % 100) == 2 // eslint-disable-line } function threeFour(n) { return (n % 100) == 3 || (n % 100) == 4 // eslint-disable-line } /* eslint-disable */ function translate(number, withoutSuffix, key, isFuture) { const result = `${number} ` switch (key) { case 's': // a few seconds / in a few seconds / a few seconds ago return (withoutSuffix || isFuture) ? 'nekaj sekund' : 'nekaj sekundami' case 'm': // a minute / in a minute / a minute ago return withoutSuffix ? 'ena minuta' : 'eno minuto' case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago if (dual(number)) { return result + ((withoutSuffix || isFuture) ? 'minuti' : 'minutama') } if (threeFour(number)) { return result + ((withoutSuffix || isFuture) ? 'minute' : 'minutami') } return result + ((withoutSuffix || isFuture) ? 'minut' : 'minutami') case 'h': // an hour / in an hour / an hour ago return withoutSuffix ? 'ena ura' : (isFuture ? 'eno uro' : 'eno uro') case 'hh': // 9 hours / in 9 hours / 9 hours ago if (dual(number)) { return result + ((withoutSuffix || isFuture) ? 'uri' : 'urama') } if (threeFour(number)) { return result + ((withoutSuffix || isFuture) ? 'ure' : 'urami') } return result + ((withoutSuffix || isFuture) ? 'ur' : 'urami') case 'd': // a day / in a day / a day ago return (withoutSuffix || isFuture) ? 'en dan' : 'enim dnem' case 'dd': // 9 days / in 9 days / 9 days ago if (dual(number)) { return result + ((withoutSuffix || isFuture) ? 'dneva' : 'dnevoma') } return result + ((withoutSuffix || isFuture) ? 'dni' : 'dnevi') case 'M': // a month / in a month / a month ago return (withoutSuffix || isFuture) ? 'en mesec' : 'enim mesecem' case 'MM': // 9 months / in 9 months / 9 months ago if (dual(number)) { // 2 minutes / in 2 minutes return result + ((withoutSuffix || isFuture) ? 'meseca' : 'mesecema') } if (threeFour(number)) { return result + ((withoutSuffix || isFuture) ? 'mesece' : 'meseci') } return result + ((withoutSuffix || isFuture) ? 'mesecev' : 'meseci') case 'y': // a year / in a year / a year ago return (withoutSuffix || isFuture) ? 'eno leto' : 'enim letom' case 'yy': // 9 years / in 9 years / 9 years ago if (dual(number)) { // 2 minutes / in 2 minutes return result + ((withoutSuffix || isFuture) ? 'leti' : 'letoma') } if (threeFour(number)) { return result + ((withoutSuffix || isFuture) ? 'leta' : 'leti') } return result + ((withoutSuffix || isFuture) ? 'let' : 'leti') } } /* eslint-enable */ const locale = { name: 'sl', weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'), months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'), weekStart: 1, weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'), monthsShort: 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'), weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'), ordinal: n => `${n}.`, formats: { LT: 'H:mm', LTS: 'H:mm:ss', L: 'DD.MM.YYYY', LL: 'D. MMMM YYYY', LLL: 'D. MMMM YYYY H:mm', LLLL: 'dddd, D. MMMM YYYY H:mm', l: 'D. M. YYYY' }, relativeTime: { future: 'čez %s', past: 'pred %s', s: translate, m: translate, mm: translate, h: translate, hh: translate, d: translate, dd: translate, M: translate, MM: translate, y: translate, yy: translate } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/yo.js
src/locale/yo.js
// Yoruba Nigeria [yo] import dayjs from 'dayjs' const locale = { name: 'yo', weekdays: 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'), months: 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split('_'), weekStart: 1, weekdaysShort: 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'), monthsShort: 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'), weekdaysMin: 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'), ordinal: n => n, formats: { LT: 'h:mm A', LTS: 'h:mm:ss A', L: 'DD/MM/YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY h:mm A', LLLL: 'dddd, D MMMM YYYY h:mm A' }, relativeTime: { future: 'ní %s', past: '%s kọjá', s: 'ìsẹjú aayá die', m: 'ìsẹjú kan', mm: 'ìsẹjú %d', h: 'wákati kan', hh: 'wákati %d', d: 'ọjọ́ kan', dd: 'ọjọ́ %d', M: 'osù kan', MM: 'osù %d', y: 'ọdún kan', yy: 'ọdún %d' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/bm.js
src/locale/bm.js
// Bambara [bm] import dayjs from 'dayjs' const locale = { name: 'bm', weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'), months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split('_'), weekStart: 1, weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'), monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'), weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'), ordinal: n => n, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD/MM/YYYY', LL: 'MMMM [tile] D [san] YYYY', LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm', LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm' }, relativeTime: { future: '%s kɔnɔ', past: 'a bɛ %s bɔ', s: 'sanga dama dama', m: 'miniti kelen', mm: 'miniti %d', h: 'lɛrɛ kelen', hh: 'lɛrɛ %d', d: 'tile kelen', dd: 'tile %d', M: 'kalo kelen', MM: 'kalo %d', y: 'san kelen', yy: 'san %d' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/tzm-latn.js
src/locale/tzm-latn.js
// Central Atlas Tamazight Latin [tzm-latn] import dayjs from 'dayjs' const locale = { name: 'tzm-latn', weekdays: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'), months: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'), weekStart: 6, weekdaysShort: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'), monthsShort: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'), weekdaysMin: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'), ordinal: n => n, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD/MM/YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY HH:mm', LLLL: 'dddd D MMMM YYYY HH:mm' }, relativeTime: { future: 'dadkh s yan %s', past: 'yan %s', s: 'imik', m: 'minuḍ', mm: '%d minuḍ', h: 'saɛa', hh: '%d tassaɛin', d: 'ass', dd: '%d ossan', M: 'ayowr', MM: '%d iyyirn', y: 'asgas', yy: '%d isgasn' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/nb.js
src/locale/nb.js
// Norwegian Bokmål [nb] import dayjs from 'dayjs' const locale = { name: 'nb', weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'), weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'), weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'), months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'), monthsShort: 'jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.'.split('_'), ordinal: n => `${n}.`, weekStart: 1, yearStart: 4, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD.MM.YYYY', LL: 'D. MMMM YYYY', LLL: 'D. MMMM YYYY [kl.] HH:mm', LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm' }, relativeTime: { future: 'om %s', past: '%s siden', s: 'noen sekunder', m: 'ett minutt', mm: '%d minutter', h: 'en time', hh: '%d timer', d: 'en dag', dd: '%d dager', M: 'en måned', MM: '%d måneder', y: 'ett år', yy: '%d år' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/fa.js
src/locale/fa.js
// Persian [fa] import dayjs from 'dayjs' const locale = { name: 'fa', weekdays: 'یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه'.split('_'), weekdaysShort: 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'), weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'), weekStart: 6, months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'), monthsShort: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'), ordinal: n => n, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD/MM/YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY HH:mm', LLLL: 'dddd, D MMMM YYYY HH:mm' }, relativeTime: { future: 'در %s', past: '%s پیش', s: 'چند ثانیه', m: 'یک دقیقه', mm: '%d دقیقه', h: 'یک ساعت', hh: '%d ساعت', d: 'یک روز', dd: '%d روز', M: 'یک ماه', MM: '%d ماه', y: 'یک سال', yy: '%d سال' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/mt.js
src/locale/mt.js
// Maltese (Malta) [mt] import dayjs from 'dayjs' const locale = { name: 'mt', weekdays: 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split('_'), months: 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split('_'), weekStart: 1, weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'), monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'), weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'), ordinal: n => n, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD/MM/YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY HH:mm', LLLL: 'dddd, D MMMM YYYY HH:mm' }, relativeTime: { future: 'f’ %s', past: '%s ilu', s: 'ftit sekondi', m: 'minuta', mm: '%d minuti', h: 'siegħa', hh: '%d siegħat', d: 'ġurnata', dd: '%d ġranet', M: 'xahar', MM: '%d xhur', y: 'sena', yy: '%d sni' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/es-do.js
src/locale/es-do.js
// Spanish (Dominican Republic) [es-do] import dayjs from 'dayjs' const locale = { name: 'es-do', weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'), monthsShort: 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), weekStart: 1, relativeTime: { future: 'en %s', past: 'hace %s', s: 'unos segundos', m: 'un minuto', mm: '%d minutos', h: 'una hora', hh: '%d horas', d: 'un día', dd: '%d días', M: 'un mes', MM: '%d meses', y: 'un año', yy: '%d años' }, ordinal: n => `${n}º`, formats: { LT: 'h:mm A', LTS: 'h:mm:ss A', L: 'DD/MM/YYYY', LL: 'D [de] MMMM [de] YYYY', LLL: 'D [de] MMMM [de] YYYY h:mm A', LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/en-gb.js
src/locale/en-gb.js
// English (United Kingdom) [en-gb] import dayjs from 'dayjs' const locale = { name: 'en-gb', weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'), monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), weekStart: 1, yearStart: 4, relativeTime: { future: 'in %s', past: '%s ago', s: 'a few seconds', m: 'a minute', mm: '%d minutes', h: 'an hour', hh: '%d hours', d: 'a day', dd: '%d days', M: 'a month', MM: '%d months', y: 'a year', yy: '%d years' }, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD/MM/YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY HH:mm', LLLL: 'dddd, D MMMM YYYY HH:mm' }, ordinal: (n) => { const s = ['th', 'st', 'nd', 'rd'] const v = n % 100 return `[${n}${(s[(v - 20) % 10] || s[v] || s[0])}]` } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/ar.js
src/locale/ar.js
// Arabic [ar] import dayjs from 'dayjs' const months = 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_') const symbolMap = { 1: '١', 2: '٢', 3: '٣', 4: '٤', 5: '٥', 6: '٦', 7: '٧', 8: '٨', 9: '٩', 0: '٠' } const numberMap = { '١': '1', '٢': '2', '٣': '3', '٤': '4', '٥': '5', '٦': '6', '٧': '7', '٨': '8', '٩': '9', '٠': '0' } const fromArabNumeralsRegex = /[١٢٣٤٥٦٧٨٩٠]/g const fromArabComaRegex = /،/g const toArabNumeralsRegex = /\d/g const toArabComaRegex = /,/g const locale = { name: 'ar', weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), months, monthsShort: months, weekStart: 6, meridiem: hour => (hour > 12 ? 'م' : 'ص'), relativeTime: { future: 'بعد %s', past: 'منذ %s', s: 'ثانية واحدة', m: 'دقيقة واحدة', mm: '%d دقائق', h: 'ساعة واحدة', hh: '%d ساعات', d: 'يوم واحد', dd: '%d أيام', M: 'شهر واحد', MM: '%d أشهر', y: 'عام واحد', yy: '%d أعوام' }, preparse(string) { return string .replace( fromArabNumeralsRegex, match => numberMap[match] ) .replace(fromArabComaRegex, ',') }, postformat(string) { return string .replace(toArabNumeralsRegex, match => symbolMap[match]) .replace(toArabComaRegex, '،') }, ordinal: n => n, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'D/‏M/‏YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY HH:mm', LLLL: 'dddd D MMMM YYYY HH:mm' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/kn.js
src/locale/kn.js
// Kannada [kn] import dayjs from 'dayjs' const locale = { name: 'kn', weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split('_'), months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split('_'), weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'), monthsShort: 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split('_'), weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'), ordinal: n => n, formats: { LT: 'A h:mm', LTS: 'A h:mm:ss', L: 'DD/MM/YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY, A h:mm', LLLL: 'dddd, D MMMM YYYY, A h:mm' }, relativeTime: { future: '%s ನಂತರ', past: '%s ಹಿಂದೆ', s: 'ಕೆಲವು ಕ್ಷಣಗಳು', m: 'ಒಂದು ನಿಮಿಷ', mm: '%d ನಿಮಿಷ', h: 'ಒಂದು ಗಂಟೆ', hh: '%d ಗಂಟೆ', d: 'ಒಂದು ದಿನ', dd: '%d ದಿನ', M: 'ಒಂದು ತಿಂಗಳು', MM: '%d ತಿಂಗಳು', y: 'ಒಂದು ವರ್ಷ', yy: '%d ವರ್ಷ' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/fr-ca.js
src/locale/fr-ca.js
// French (Canada) [fr-ca] import dayjs from 'dayjs' const locale = { name: 'fr-ca', weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'), weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'), weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'), ordinal: n => n, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'YYYY-MM-DD', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY HH:mm', LLLL: 'dddd D MMMM YYYY HH:mm' }, relativeTime: { future: 'dans %s', past: 'il y a %s', s: 'quelques secondes', m: 'une minute', mm: '%d minutes', h: 'une heure', hh: '%d heures', d: 'un jour', dd: '%d jours', M: 'un mois', MM: '%d mois', y: 'un an', yy: '%d ans' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/tet.js
src/locale/tet.js
// Tetun Dili (East Timor) [tet] import dayjs from 'dayjs' const locale = { name: 'tet', weekdays: 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split('_'), months: 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split('_'), weekStart: 1, weekdaysShort: 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'), monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'), weekdaysMin: 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'), ordinal: n => n, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD/MM/YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY HH:mm', LLLL: 'dddd, D MMMM YYYY HH:mm' }, relativeTime: { future: 'iha %s', past: '%s liuba', s: 'minutu balun', m: 'minutu ida', mm: 'minutu %d', h: 'oras ida', hh: 'oras %d', d: 'loron ida', dd: 'loron %d', M: 'fulan ida', MM: 'fulan %d', y: 'tinan ida', yy: 'tinan %d' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/si.js
src/locale/si.js
// Sinhalese [si] import dayjs from 'dayjs' const locale = { name: 'si', weekdays: 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split('_'), months: 'දුරුතු_නවම්_මැදින්_බක්_වෙසක්_පොසොන්_ඇසළ_නිකිණි_බිනර_වප්_ඉල්_උඳුවප්'.split('_'), weekdaysShort: 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'), monthsShort: 'දුරු_නව_මැදි_බක්_වෙස_පොසො_ඇස_නිකි_බින_වප්_ඉල්_උඳු'.split('_'), weekdaysMin: 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'), ordinal: n => n, formats: { LT: 'a h:mm', LTS: 'a h:mm:ss', L: 'YYYY/MM/DD', LL: 'YYYY MMMM D', LLL: 'YYYY MMMM D, a h:mm', LLLL: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss' }, relativeTime: { future: '%sකින්', past: '%sකට පෙර', s: 'තත්පර කිහිපය', m: 'විනාඩිය', mm: 'විනාඩි %d', h: 'පැය', hh: 'පැය %d', d: 'දිනය', dd: 'දින %d', M: 'මාසය', MM: 'මාස %d', y: 'වසර', yy: 'වසර %d' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/eo.js
src/locale/eo.js
// Esperanto [eo] import dayjs from 'dayjs' const locale = { name: 'eo', weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'), months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'), weekStart: 1, weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'), monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec'.split('_'), weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'), ordinal: n => n, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'YYYY-MM-DD', LL: 'D[-a de] MMMM, YYYY', LLL: 'D[-a de] MMMM, YYYY HH:mm', LLLL: 'dddd, [la] D[-a de] MMMM, YYYY HH:mm' }, relativeTime: { future: 'post %s', past: 'antaŭ %s', s: 'sekundoj', m: 'minuto', mm: '%d minutoj', h: 'horo', hh: '%d horoj', d: 'tago', dd: '%d tagoj', M: 'monato', MM: '%d monatoj', y: 'jaro', yy: '%d jaroj' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/lt.js
src/locale/lt.js
// Lithuanian [lt] import dayjs from 'dayjs' const monthFormat = 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split('_') const monthStandalone = 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split('_') // eslint-disable-next-line no-useless-escape const MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/ const months = (dayjsInstance, format) => { if (MONTHS_IN_FORMAT.test(format)) { return monthFormat[dayjsInstance.month()] } return monthStandalone[dayjsInstance.month()] } months.s = monthStandalone months.f = monthFormat const locale = { name: 'lt', weekdays: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split('_'), weekdaysShort: 'sek_pir_ant_tre_ket_pen_šeš'.split('_'), weekdaysMin: 's_p_a_t_k_pn_š'.split('_'), months, monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'), ordinal: n => `${n}.`, weekStart: 1, relativeTime: { future: 'už %s', past: 'prieš %s', s: 'kelias sekundes', m: 'minutę', mm: '%d minutes', h: 'valandą', hh: '%d valandas', d: 'dieną', dd: '%d dienas', M: 'mėnesį', MM: '%d mėnesius', y: 'metus', yy: '%d metus' }, format: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'YYYY-MM-DD', LL: 'YYYY [m.] MMMM D [d.]', LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]', LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]', l: 'YYYY-MM-DD', ll: 'YYYY [m.] MMMM D [d.]', lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]', llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]' }, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'YYYY-MM-DD', LL: 'YYYY [m.] MMMM D [d.]', LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]', LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]', l: 'YYYY-MM-DD', ll: 'YYYY [m.] MMMM D [d.]', lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]', llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/tg.js
src/locale/tg.js
// Tajik [tg] import dayjs from 'dayjs' const locale = { name: 'tg', weekdays: 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split('_'), months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_'), weekStart: 1, weekdaysShort: 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'), monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'), weekdaysMin: 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'), ordinal: n => n, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD/MM/YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY HH:mm', LLLL: 'dddd, D MMMM YYYY HH:mm' }, relativeTime: { future: 'баъди %s', past: '%s пеш', s: 'якчанд сония', m: 'як дақиқа', mm: '%d дақиқа', h: 'як соат', hh: '%d соат', d: 'як рӯз', dd: '%d рӯз', M: 'як моҳ', MM: '%d моҳ', y: 'як сол', yy: '%d сол' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/tzl.js
src/locale/tzl.js
// Talossan [tzl] import dayjs from 'dayjs' const locale = { name: 'tzl', weekdays: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'), months: 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split('_'), weekStart: 1, weekdaysShort: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'), monthsShort: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'), weekdaysMin: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'), ordinal: n => n, formats: { LT: 'HH.mm', LTS: 'HH.mm.ss', L: 'DD.MM.YYYY', LL: 'D. MMMM [dallas] YYYY', LLL: 'D. MMMM [dallas] YYYY HH.mm', LLLL: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/bo.js
src/locale/bo.js
// Tibetan [bo] import dayjs from 'dayjs' const locale = { name: 'bo', weekdays: 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split('_'), weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'), weekdaysMin: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'), months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'), monthsShort: 'ཟླ་དང་པོ_ཟླ་གཉིས་པ_ཟླ་གསུམ་པ_ཟླ་བཞི་པ_ཟླ་ལྔ་པ_ཟླ་དྲུག་པ_ཟླ་བདུན་པ_ཟླ་བརྒྱད་པ_ཟླ་དགུ་པ_ཟླ་བཅུ་པ_ཟླ་བཅུ་གཅིག་པ_ཟླ་བཅུ་གཉིས་པ'.split('_'), ordinal: n => n, formats: { LT: 'A h:mm', LTS: 'A h:mm:ss', L: 'DD/MM/YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY, A h:mm', LLLL: 'dddd, D MMMM YYYY, A h:mm' }, relativeTime: { future: '%s ལ་', past: '%s སྔོན་ལ་', s: 'ཏོག་ཙམ་', m: 'སྐར་མ་གཅིག་', mm: 'སྐར་མ་ %d', h: 'ཆུ་ཚོད་གཅིག་', hh: 'ཆུ་ཚོད་ %d', d: 'ཉིན་གཅིག་', dd: 'ཉིན་ %d', M: 'ཟླ་བ་གཅིག་', MM: 'ཟླ་བ་ %d', y: 'ལོ་གཅིག་', yy: 'ལོ་ %d' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/hi.js
src/locale/hi.js
// Hindi [hi] import dayjs from 'dayjs' const locale = { name: 'hi', weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'), months: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split('_'), weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'), monthsShort: 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'), weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'), ordinal: n => n, formats: { LT: 'A h:mm बजे', LTS: 'A h:mm:ss बजे', L: 'DD/MM/YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY, A h:mm बजे', LLLL: 'dddd, D MMMM YYYY, A h:mm बजे' }, relativeTime: { future: '%s में', past: '%s पहले', s: 'कुछ ही क्षण', m: 'एक मिनट', mm: '%d मिनट', h: 'एक घंटा', hh: '%d घंटे', d: 'एक दिन', dd: '%d दिन', M: 'एक महीने', MM: '%d महीने', y: 'एक वर्ष', yy: '%d वर्ष' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/bg.js
src/locale/bg.js
// Bulgarian [bg] import dayjs from 'dayjs' const locale = { name: 'bg', weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split('_'), weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'), weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'), months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split('_'), monthsShort: 'яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'), weekStart: 1, ordinal: (n) => { const last2Digits = n % 100 if (last2Digits > 10 && last2Digits < 20) { return `${n}-ти` } const lastDigit = n % 10 if (lastDigit === 1) { return `${n}-ви` } else if (lastDigit === 2) { return `${n}-ри` } else if (lastDigit === 7 || lastDigit === 8) { return `${n}-ми` } return `${n}-ти` }, formats: { LT: 'H:mm', LTS: 'H:mm:ss', L: 'D.MM.YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY H:mm', LLLL: 'dddd, D MMMM YYYY H:mm' }, relativeTime: { future: 'след %s', past: 'преди %s', s: 'няколко секунди', m: 'минута', mm: '%d минути', h: 'час', hh: '%d часа', d: 'ден', dd: '%d дена', M: 'месец', MM: '%d месеца', y: 'година', yy: '%d години' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/ar-iq.js
src/locale/ar-iq.js
// Arabic (Iraq) [ar-iq] import dayjs from 'dayjs' const locale = { name: 'ar-iq', weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), months: 'كانون الثاني_شباط_آذار_نيسان_أيار_حزيران_تموز_آب_أيلول_تشرين الأول_ تشرين الثاني_كانون الأول'.split('_'), weekStart: 1, weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), monthsShort: 'كانون الثاني_شباط_آذار_نيسان_أيار_حزيران_تموز_آب_أيلول_تشرين الأول_ تشرين الثاني_كانون الأول'.split('_'), weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), ordinal: n => n, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD/MM/YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY HH:mm', LLLL: 'dddd D MMMM YYYY HH:mm' }, meridiem: hour => (hour > 12 ? 'م' : 'ص'), relativeTime: { future: 'في %s', past: 'منذ %s', s: 'ثوان', m: 'دقيقة', mm: '%d دقائق', h: 'ساعة', hh: '%d ساعات', d: 'يوم', dd: '%d أيام', M: 'شهر', MM: '%d أشهر', y: 'سنة', yy: '%d سنوات' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/es-pr.js
src/locale/es-pr.js
// Spanish (Puerto Rico) [es-PR] import dayjs from 'dayjs' const locale = { name: 'es-pr', monthsShort: 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'), weekStart: 1, formats: { LT: 'h:mm A', LTS: 'h:mm:ss A', L: 'MM/DD/YYYY', LL: 'D [de] MMMM [de] YYYY', LLL: 'D [de] MMMM [de] YYYY h:mm A', LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A' }, relativeTime: { future: 'en %s', past: 'hace %s', s: 'unos segundos', m: 'un minuto', mm: '%d minutos', h: 'una hora', hh: '%d horas', d: 'un día', dd: '%d días', M: 'un mes', MM: '%d meses', y: 'un año', yy: '%d años' }, ordinal: n => `${n}º` } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/ky.js
src/locale/ky.js
// Kyrgyz [ky] import dayjs from 'dayjs' const locale = { name: 'ky', weekdays: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split('_'), months: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'), weekStart: 1, weekdaysShort: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'), monthsShort: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_'), weekdaysMin: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'), ordinal: n => n, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD.MM.YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY HH:mm', LLLL: 'dddd, D MMMM YYYY HH:mm' }, relativeTime: { future: '%s ичинде', past: '%s мурун', s: 'бирнече секунд', m: 'бир мүнөт', mm: '%d мүнөт', h: 'бир саат', hh: '%d саат', d: 'бир күн', dd: '%d күн', M: 'бир ай', MM: '%d ай', y: 'бир жыл', yy: '%d жыл' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/eu.js
src/locale/eu.js
// Basque [eu] import dayjs from 'dayjs' const locale = { name: 'eu', weekdays: 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split('_'), months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split('_'), weekStart: 1, weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'), monthsShort: 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split('_'), weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'), ordinal: n => n, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'YYYY-MM-DD', LL: 'YYYY[ko] MMMM[ren] D[a]', LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm', LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm', l: 'YYYY-M-D', ll: 'YYYY[ko] MMM D[a]', lll: 'YYYY[ko] MMM D[a] HH:mm', llll: 'ddd, YYYY[ko] MMM D[a] HH:mm' }, relativeTime: { future: '%s barru', past: 'duela %s', s: 'segundo batzuk', m: 'minutu bat', mm: '%d minutu', h: 'ordu bat', hh: '%d ordu', d: 'egun bat', dd: '%d egun', M: 'hilabete bat', MM: '%d hilabete', y: 'urte bat', yy: '%d urte' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/my.js
src/locale/my.js
// Burmese [my] import dayjs from 'dayjs' const locale = { name: 'my', weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split('_'), months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split('_'), weekStart: 1, weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'), monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'), weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'), ordinal: n => n, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD/MM/YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY HH:mm', LLLL: 'dddd D MMMM YYYY HH:mm' }, relativeTime: { future: 'လာမည့် %s မှာ', past: 'လွန်ခဲ့သော %s က', s: 'စက္ကန်.အနည်းငယ်', m: 'တစ်မိနစ်', mm: '%d မိနစ်', h: 'တစ်နာရီ', hh: '%d နာရီ', d: 'တစ်ရက်', dd: '%d ရက်', M: 'တစ်လ', MM: '%d လ', y: 'တစ်နှစ်', yy: '%d နှစ်' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/tzm.js
src/locale/tzm.js
// Central Atlas Tamazight [tzm] import dayjs from 'dayjs' const locale = { name: 'tzm', weekdays: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), months: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'), weekStart: 6, weekdaysShort: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), monthsShort: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'), weekdaysMin: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), ordinal: n => n, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD/MM/YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY HH:mm', LLLL: 'dddd D MMMM YYYY HH:mm' }, relativeTime: { future: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s', past: 'ⵢⴰⵏ %s', s: 'ⵉⵎⵉⴽ', m: 'ⵎⵉⵏⵓⴺ', mm: '%d ⵎⵉⵏⵓⴺ', h: 'ⵙⴰⵄⴰ', hh: '%d ⵜⴰⵙⵙⴰⵄⵉⵏ', d: 'ⴰⵙⵙ', dd: '%d oⵙⵙⴰⵏ', M: 'ⴰⵢoⵓⵔ', MM: '%d ⵉⵢⵢⵉⵔⵏ', y: 'ⴰⵙⴳⴰⵙ', yy: '%d ⵉⵙⴳⴰⵙⵏ' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/sr.js
src/locale/sr.js
// Serbian [sr] import dayjs from 'dayjs' const translator = { words: { m: ['jedan minut', 'jednog minuta'], mm: ['%d minut', '%d minuta', '%d minuta'], h: ['jedan sat', 'jednog sata'], hh: ['%d sat', '%d sata', '%d sati'], d: ['jedan dan', 'jednog dana'], dd: ['%d dan', '%d dana', '%d dana'], M: ['jedan mesec', 'jednog meseca'], MM: ['%d mesec', '%d meseca', '%d meseci'], y: ['jednu godinu', 'jedne godine'], yy: ['%d godinu', '%d godine', '%d godina'] }, correctGrammarCase(number, wordKey) { if (number % 10 >= 1 && number % 10 <= 4 && (number % 100 < 10 || number % 100 >= 20)) { return number % 10 === 1 ? wordKey[0] : wordKey[1] } return wordKey[2] }, relativeTimeFormatter(number, withoutSuffix, key, isFuture) { const wordKey = translator.words[key] if (key.length === 1) { // Nominativ if (key === 'y' && withoutSuffix) return 'jedna godina' return isFuture || withoutSuffix ? wordKey[0] : wordKey[1] } const word = translator.correctGrammarCase(number, wordKey) // Nominativ if (key === 'yy' && withoutSuffix && word === '%d godinu') return `${number} godina` return word.replace('%d', number) } } const locale = { name: 'sr', weekdays: 'Nedelja_Ponedeljak_Utorak_Sreda_Četvrtak_Petak_Subota'.split('_'), weekdaysShort: 'Ned._Pon._Uto._Sre._Čet._Pet._Sub.'.split('_'), weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), months: 'Januar_Februar_Mart_April_Maj_Jun_Jul_Avgust_Septembar_Oktobar_Novembar_Decembar'.split('_'), monthsShort: 'Jan._Feb._Mar._Apr._Maj_Jun_Jul_Avg._Sep._Okt._Nov._Dec.'.split('_'), weekStart: 1, relativeTime: { future: 'za %s', past: 'pre %s', s: 'nekoliko sekundi', m: translator.relativeTimeFormatter, mm: translator.relativeTimeFormatter, h: translator.relativeTimeFormatter, hh: translator.relativeTimeFormatter, d: translator.relativeTimeFormatter, dd: translator.relativeTimeFormatter, M: translator.relativeTimeFormatter, MM: translator.relativeTimeFormatter, y: translator.relativeTimeFormatter, yy: translator.relativeTimeFormatter }, ordinal: n => `${n}.`, formats: { LT: 'H:mm', LTS: 'H:mm:ss', L: 'D. M. YYYY.', LL: 'D. MMMM YYYY.', LLL: 'D. MMMM YYYY. H:mm', LLLL: 'dddd, D. MMMM YYYY. H:mm' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/gu.js
src/locale/gu.js
// Gujarati [gu] import dayjs from 'dayjs' const locale = { name: 'gu', weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split('_'), months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split('_'), weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'), monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split('_'), weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'), ordinal: n => n, formats: { LT: 'A h:mm વાગ્યે', LTS: 'A h:mm:ss વાગ્યે', L: 'DD/MM/YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY, A h:mm વાગ્યે', LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે' }, relativeTime: { future: '%s મા', past: '%s પેહલા', s: 'અમુક પળો', m: 'એક મિનિટ', mm: '%d મિનિટ', h: 'એક કલાક', hh: '%d કલાક', d: 'એક દિવસ', dd: '%d દિવસ', M: 'એક મહિનો', MM: '%d મહિનો', y: 'એક વર્ષ', yy: '%d વર્ષ' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/mi.js
src/locale/mi.js
// Maori [mi] import dayjs from 'dayjs' const locale = { name: 'mi', weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'), months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split('_'), weekStart: 1, weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'), monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split('_'), weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'), ordinal: n => n, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD/MM/YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY [i] HH:mm', LLLL: 'dddd, D MMMM YYYY [i] HH:mm' }, relativeTime: { future: 'i roto i %s', past: '%s i mua', s: 'te hēkona ruarua', m: 'he meneti', mm: '%d meneti', h: 'te haora', hh: '%d haora', d: 'he ra', dd: '%d ra', M: 'he marama', MM: '%d marama', y: 'he tau', yy: '%d tau' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/nl.js
src/locale/nl.js
// Dutch [nl] import dayjs from 'dayjs' const locale = { name: 'nl', weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'), weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'), weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'), months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'), monthsShort: 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'), ordinal: n => `[${n}${n === 1 || n === 8 || n >= 20 ? 'ste' : 'de'}]`, weekStart: 1, yearStart: 4, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD-MM-YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY HH:mm', LLLL: 'dddd D MMMM YYYY HH:mm' }, relativeTime: { future: 'over %s', past: '%s geleden', s: 'een paar seconden', m: 'een minuut', mm: '%d minuten', h: 'een uur', hh: '%d uur', d: 'een dag', dd: '%d dagen', M: 'een maand', MM: '%d maanden', y: 'een jaar', yy: '%d jaar' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/mr.js
src/locale/mr.js
// Marathi [mr] import dayjs from 'dayjs' const locale = { name: 'mr', weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'), months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'), weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'), monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'), weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'), ordinal: n => n, formats: { LT: 'A h:mm वाजता', LTS: 'A h:mm:ss वाजता', L: 'DD/MM/YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY, A h:mm वाजता', LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/dv.js
src/locale/dv.js
// Maldivian [dv] import dayjs from 'dayjs' const locale = { name: 'dv', weekdays: 'އާދިއްތަ_ހޯމަ_އަންގާރަ_ބުދަ_ބުރާސްފަތި_ހުކުރު_ހޮނިހިރު'.split('_'), months: 'ޖެނުއަރީ_ފެބްރުއަރީ_މާރިޗު_އޭޕްރީލު_މޭ_ޖޫން_ޖުލައި_އޯގަސްޓު_ސެޕްޓެމްބަރު_އޮކްޓޯބަރު_ނޮވެމްބަރު_ޑިސެމްބަރު'.split('_'), weekStart: 7, weekdaysShort: 'އާދިއްތަ_ހޯމަ_އަންގާރަ_ބުދަ_ބުރާސްފަތި_ހުކުރު_ހޮނިހިރު'.split('_'), monthsShort: 'ޖެނުއަރީ_ފެބްރުއަރީ_މާރިޗު_އޭޕްރީލު_މޭ_ޖޫން_ޖުލައި_އޯގަސްޓު_ސެޕްޓެމްބަރު_އޮކްޓޯބަރު_ނޮވެމްބަރު_ޑިސެމްބަރު'.split('_'), weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'), ordinal: n => n, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'D/M/YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY HH:mm', LLLL: 'dddd D MMMM YYYY HH:mm' }, relativeTime: { future: 'ތެރޭގައި %s', past: 'ކުރިން %s', s: 'ސިކުންތުކޮޅެއް', m: 'މިނިޓެއް', mm: 'މިނިޓު %d', h: 'ގަޑިއިރެއް', hh: 'ގަޑިއިރު %d', d: 'ދުވަހެއް', dd: 'ދުވަސް %d', M: 'މަހެއް', MM: 'މަސް %d', y: 'އަހަރެއް', yy: 'އަހަރު %d' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/nn.js
src/locale/nn.js
// Nynorsk [nn] import dayjs from 'dayjs' const locale = { name: 'nn', weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'), weekdaysShort: 'sun_mån_tys_ons_tor_fre_lau'.split('_'), weekdaysMin: 'su_må_ty_on_to_fr_la'.split('_'), months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'), monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'), ordinal: n => `${n}.`, weekStart: 1, relativeTime: { future: 'om %s', past: 'for %s sidan', s: 'nokre sekund', m: 'eitt minutt', mm: '%d minutt', h: 'ein time', hh: '%d timar', d: 'ein dag', dd: '%d dagar', M: 'ein månad', MM: '%d månadar', y: 'eitt år', yy: '%d år' }, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD.MM.YYYY', LL: 'D. MMMM YYYY', LLL: 'D. MMMM YYYY [kl.] H:mm', LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/sr-cyrl.js
src/locale/sr-cyrl.js
// Serbian Cyrillic [sr-cyrl] import dayjs from 'dayjs' const translator = { words: { m: ['један минут', 'једног минута'], mm: ['%d минут', '%d минута', '%d минута'], h: ['један сат', 'једног сата'], hh: ['%d сат', '%d сата', '%d сати'], d: ['један дан', 'једног дана'], dd: ['%d дан', '%d дана', '%d дана'], M: ['један месец', 'једног месеца'], MM: ['%d месец', '%d месеца', '%d месеци'], y: ['једну годину', 'једне године'], yy: ['%d годину', '%d године', '%d година'] }, correctGrammarCase(number, wordKey) { if (number % 10 >= 1 && number % 10 <= 4 && (number % 100 < 10 || number % 100 >= 20)) { return number % 10 === 1 ? wordKey[0] : wordKey[1] } return wordKey[2] }, relativeTimeFormatter(number, withoutSuffix, key, isFuture) { const wordKey = translator.words[key] if (key.length === 1) { // Nominativ if (key === 'y' && withoutSuffix) return 'једна година' return isFuture || withoutSuffix ? wordKey[0] : wordKey[1] } const word = translator.correctGrammarCase(number, wordKey) // Nominativ if (key === 'yy' && withoutSuffix && word === '%d годину') return `${number} година` return word.replace('%d', number) } } const locale = { name: 'sr-cyrl', weekdays: 'Недеља_Понедељак_Уторак_Среда_Четвртак_Петак_Субота'.split('_'), weekdaysShort: 'Нед._Пон._Уто._Сре._Чет._Пет._Суб.'.split('_'), weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'), months: 'Јануар_Фебруар_Март_Април_Мај_Јун_Јул_Август_Септембар_Октобар_Новембар_Децембар'.split('_'), monthsShort: 'Јан._Феб._Мар._Апр._Мај_Јун_Јул_Авг._Сеп._Окт._Нов._Дец.'.split('_'), weekStart: 1, relativeTime: { future: 'за %s', past: 'пре %s', s: 'неколико секунди', m: translator.relativeTimeFormatter, mm: translator.relativeTimeFormatter, h: translator.relativeTimeFormatter, hh: translator.relativeTimeFormatter, d: translator.relativeTimeFormatter, dd: translator.relativeTimeFormatter, M: translator.relativeTimeFormatter, MM: translator.relativeTimeFormatter, y: translator.relativeTimeFormatter, yy: translator.relativeTimeFormatter }, ordinal: n => `${n}.`, formats: { LT: 'H:mm', LTS: 'H:mm:ss', L: 'D. M. YYYY.', LL: 'D. MMMM YYYY.', LLL: 'D. MMMM YYYY. H:mm', LLLL: 'dddd, D. MMMM YYYY. H:mm' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/pa-in.js
src/locale/pa-in.js
// Punjabi (India) [pa-in] import dayjs from 'dayjs' const locale = { name: 'pa-in', weekdays: 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split('_'), months: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'), weekdaysShort: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'), monthsShort: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'), weekdaysMin: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'), ordinal: n => n, formats: { LT: 'A h:mm ਵਜੇ', LTS: 'A h:mm:ss ਵਜੇ', L: 'DD/MM/YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY, A h:mm ਵਜੇ', LLLL: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ' }, relativeTime: { future: '%s ਵਿੱਚ', past: '%s ਪਿਛਲੇ', s: 'ਕੁਝ ਸਕਿੰਟ', m: 'ਇਕ ਮਿੰਟ', mm: '%d ਮਿੰਟ', h: 'ਇੱਕ ਘੰਟਾ', hh: '%d ਘੰਟੇ', d: 'ਇੱਕ ਦਿਨ', dd: '%d ਦਿਨ', M: 'ਇੱਕ ਮਹੀਨਾ', MM: '%d ਮਹੀਨੇ', y: 'ਇੱਕ ਸਾਲ', yy: '%d ਸਾਲ' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/br.js
src/locale/br.js
// Breton [br] import dayjs from 'dayjs' function lastNumber(number) { if (number > 9) { return lastNumber(number % 10) } return number } function softMutation(text) { const mutationTable = { m: 'v', b: 'v', d: 'z' } return mutationTable[text.charAt(0)] + text.substring(1) } function mutation(text, number) { if (number === 2) { return softMutation(text) } return text } function relativeTimeWithMutation(number, withoutSuffix, key) { const format = { mm: 'munutenn', MM: 'miz', dd: 'devezh' } return `${number} ${mutation(format[key], number)}` } function specialMutationForYears(number) { /* istanbul ignore next line */ switch (lastNumber(number)) { case 1: case 3: case 4: case 5: case 9: return `${number} bloaz` default: return `${number} vloaz` } } const locale = { name: 'br', weekdays: 'Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn'.split('_'), months: 'Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split('_'), weekStart: 1, weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'), monthsShort: 'Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'), weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'), ordinal: n => n, formats: { LT: 'h[e]mm A', LTS: 'h[e]mm:ss A', L: 'DD/MM/YYYY', LL: 'D [a viz] MMMM YYYY', LLL: 'D [a viz] MMMM YYYY h[e]mm A', LLLL: 'dddd, D [a viz] MMMM YYYY h[e]mm A' }, relativeTime: { future: 'a-benn %s', past: '%s ʼzo', s: 'un nebeud segondennoù', m: 'ur vunutenn', mm: relativeTimeWithMutation, h: 'un eur', hh: '%d eur', d: 'un devezh', dd: relativeTimeWithMutation, M: 'ur miz', MM: relativeTimeWithMutation, y: 'ur bloaz', yy: specialMutationForYears }, meridiem: hour => (hour < 12 ? 'a.m.' : 'g.m.') // a-raok merenn | goude merenn } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/bn-bd.js
src/locale/bn-bd.js
// Bengali (Bangladesh) [bn-bd] import dayjs from 'dayjs' const symbolMap = { 1: '১', 2: '২', 3: '৩', 4: '৪', 5: '৫', 6: '৬', 7: '৭', 8: '৮', 9: '৯', 0: '০' } const numberMap = { '১': '1', '২': '2', '৩': '3', '৪': '4', '৫': '5', '৬': '6', '৭': '7', '৮': '8', '৯': '9', '০': '0' } const locale = { name: 'bn-bd', weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split('_'), months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'), weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'), monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split('_'), weekdaysMin: 'রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি'.split('_'), weekStart: 0, preparse(string) { return string.replace(/[১২৩৪৫৬৭৮৯০]/g, match => numberMap[match]) }, postformat(string) { return string.replace(/\d/g, match => symbolMap[match]) }, ordinal: (n) => { const s = ['ই', 'লা', 'রা', 'ঠা', 'শে'] const v = n % 100 return `[${n}${s[(v - 20) % 10] || s[v] || s[0]}]` }, formats: { LT: 'A h:mm সময়', LTS: 'A h:mm:ss সময়', L: 'DD/MM/YYYY খ্রিস্টাব্দ', LL: 'D MMMM YYYY খ্রিস্টাব্দ', LLL: 'D MMMM YYYY খ্রিস্টাব্দ, A h:mm সময়', LLLL: 'dddd, D MMMM YYYY খ্রিস্টাব্দ, A h:mm সময়' }, meridiem: hour => /* eslint-disable no-nested-ternary */ (hour < 4 ? 'রাত' : hour < 6 ? 'ভোর' : hour < 12 ? 'সকাল' : hour < 15 ? 'দুপুর' : hour < 18 ? 'বিকাল' : hour < 20 ? 'সন্ধ্যা' : 'রাত'), relativeTime: { future: '%s পরে', past: '%s আগে', s: 'কয়েক সেকেন্ড', m: 'এক মিনিট', mm: '%d মিনিট', h: 'এক ঘন্টা', hh: '%d ঘন্টা', d: 'এক দিন', dd: '%d দিন', M: 'এক মাস', MM: '%d মাস', y: 'এক বছর', yy: '%d বছর' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/th.js
src/locale/th.js
// Thai [th] import dayjs from 'dayjs' const locale = { name: 'th', weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'), weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'), months: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split('_'), monthsShort: 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split('_'), formats: { LT: 'H:mm', LTS: 'H:mm:ss', L: 'DD/MM/YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY เวลา H:mm', LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm' }, relativeTime: { future: 'อีก %s', past: '%sที่แล้ว', s: 'ไม่กี่วินาที', m: '1 นาที', mm: '%d นาที', h: '1 ชั่วโมง', hh: '%d ชั่วโมง', d: '1 วัน', dd: '%d วัน', M: '1 เดือน', MM: '%d เดือน', y: '1 ปี', yy: '%d ปี' }, ordinal: n => `${n}.` } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/da.js
src/locale/da.js
// Danish [da] import dayjs from 'dayjs' const locale = { name: 'da', weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'), weekdaysShort: 'søn._man._tirs._ons._tors._fre._lør.'.split('_'), weekdaysMin: 'sø._ma._ti._on._to._fr._lø.'.split('_'), months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'), monthsShort: 'jan._feb._mar._apr._maj_juni_juli_aug._sept._okt._nov._dec.'.split('_'), weekStart: 1, yearStart: 4, ordinal: n => `${n}.`, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD.MM.YYYY', LL: 'D. MMMM YYYY', LLL: 'D. MMMM YYYY HH:mm', LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm' }, relativeTime: { future: 'om %s', past: '%s siden', s: 'få sekunder', m: 'et minut', mm: '%d minutter', h: 'en time', hh: '%d timer', d: 'en dag', dd: '%d dage', M: 'en måned', MM: '%d måneder', y: 'et år', yy: '%d år' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/es-us.js
src/locale/es-us.js
// Spanish (United States) [es-us] import dayjs from 'dayjs' const locale = { name: 'es-us', weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'), monthsShort: 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), relativeTime: { future: 'en %s', past: 'hace %s', s: 'unos segundos', m: 'un minuto', mm: '%d minutos', h: 'una hora', hh: '%d horas', d: 'un día', dd: '%d días', M: 'un mes', MM: '%d meses', y: 'un año', yy: '%d años' }, ordinal: n => `${n}º`, formats: { LT: 'h:mm A', LTS: 'h:mm:ss A', L: 'MM/DD/YYYY', LL: 'D [de] MMMM [de] YYYY', LLL: 'D [de] MMMM [de] YYYY h:mm A', LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/lo.js
src/locale/lo.js
// Lao [lo] import dayjs from 'dayjs' const locale = { name: 'lo', weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'), months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'), weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'), monthsShort: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'), weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'), ordinal: n => n, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD/MM/YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY HH:mm', LLLL: 'ວັນdddd D MMMM YYYY HH:mm' }, relativeTime: { future: 'ອີກ %s', past: '%sຜ່ານມາ', s: 'ບໍ່ເທົ່າໃດວິນາທີ', m: '1 ນາທີ', mm: '%d ນາທີ', h: '1 ຊົ່ວໂມງ', hh: '%d ຊົ່ວໂມງ', d: '1 ມື້', dd: '%d ມື້', M: '1 ເດືອນ', MM: '%d ເດືອນ', y: '1 ປີ', yy: '%d ປີ' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/x-pseudo.js
src/locale/x-pseudo.js
// Pseudo [x-pseudo] import dayjs from 'dayjs' const locale = { name: 'x-pseudo', weekdays: 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split('_'), months: 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split('_'), weekStart: 1, weekdaysShort: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'), monthsShort: 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split('_'), weekdaysMin: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'), ordinal: n => n, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD/MM/YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY HH:mm', LLLL: 'dddd, D MMMM YYYY HH:mm' }, relativeTime: { future: 'í~ñ %s', past: '%s á~gó', s: 'á ~féw ~sécó~ñds', m: 'á ~míñ~úté', mm: '%d m~íñú~tés', h: 'á~ñ hó~úr', hh: '%d h~óúrs', d: 'á ~dáý', dd: '%d d~áýs', M: 'á ~móñ~th', MM: '%d m~óñt~hs', y: 'á ~ýéár', yy: '%d ý~éárs' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/es-mx.js
src/locale/es-mx.js
// Spanish (Mexico) [es-mx] import dayjs from 'dayjs' const locale = { name: 'es-mx', weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'), monthsShort: 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), relativeTime: { future: 'en %s', past: 'hace %s', s: 'unos segundos', m: 'un minuto', mm: '%d minutos', h: 'una hora', hh: '%d horas', d: 'un día', dd: '%d días', M: 'un mes', MM: '%d meses', y: 'un año', yy: '%d años' }, ordinal: n => `${n}º`, formats: { LT: 'H:mm', LTS: 'H:mm:ss', L: 'DD/MM/YYYY', LL: 'D [de] MMMM [de] YYYY', LLL: 'D [de] MMMM [de] YYYY H:mm', LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/am.js
src/locale/am.js
// Amharic [am] import dayjs from 'dayjs' const locale = { name: 'am', weekdays: 'እሑድ_ሰኞ_ማክሰኞ_ረቡዕ_ሐሙስ_አርብ_ቅዳሜ'.split('_'), weekdaysShort: 'እሑድ_ሰኞ_ማክሰ_ረቡዕ_ሐሙስ_አርብ_ቅዳሜ'.split('_'), weekdaysMin: 'እሑ_ሰኞ_ማክ_ረቡ_ሐሙ_አር_ቅዳ'.split('_'), months: 'ጃንዋሪ_ፌብሯሪ_ማርች_ኤፕሪል_ሜይ_ጁን_ጁላይ_ኦገስት_ሴፕቴምበር_ኦክቶበር_ኖቬምበር_ዲሴምበር'.split('_'), monthsShort: 'ጃንዋ_ፌብሯ_ማርች_ኤፕሪ_ሜይ_ጁን_ጁላይ_ኦገስ_ሴፕቴ_ኦክቶ_ኖቬም_ዲሴም'.split('_'), weekStart: 1, yearStart: 4, relativeTime: { future: 'በ%s', past: '%s በፊት', s: 'ጥቂት ሰከንዶች', m: 'አንድ ደቂቃ', mm: '%d ደቂቃዎች', h: 'አንድ ሰዓት', hh: '%d ሰዓታት', d: 'አንድ ቀን', dd: '%d ቀናት', M: 'አንድ ወር', MM: '%d ወራት', y: 'አንድ ዓመት', yy: '%d ዓመታት' }, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD/MM/YYYY', LL: 'MMMM D ፣ YYYY', LLL: 'MMMM D ፣ YYYY HH:mm', LLLL: 'dddd ፣ MMMM D ፣ YYYY HH:mm' }, ordinal: n => `${n}ኛ` } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/ro.js
src/locale/ro.js
// Romanian [ro] import dayjs from 'dayjs' const locale = { name: 'ro', weekdays: 'Duminică_Luni_Marți_Miercuri_Joi_Vineri_Sâmbătă'.split('_'), weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'), weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'), months: 'Ianuarie_Februarie_Martie_Aprilie_Mai_Iunie_Iulie_August_Septembrie_Octombrie_Noiembrie_Decembrie'.split('_'), monthsShort: 'Ian._Febr._Mart._Apr._Mai_Iun._Iul._Aug._Sept._Oct._Nov._Dec.'.split('_'), weekStart: 1, formats: { LT: 'H:mm', LTS: 'H:mm:ss', L: 'DD.MM.YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY H:mm', LLLL: 'dddd, D MMMM YYYY H:mm' }, relativeTime: { future: 'peste %s', past: 'acum %s', s: 'câteva secunde', m: 'un minut', mm: '%d minute', h: 'o oră', hh: '%d ore', d: 'o zi', dd: '%d zile', M: 'o lună', MM: '%d luni', y: 'un an', yy: '%d ani' }, ordinal: n => n } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/tk.js
src/locale/tk.js
// Turkmen [tk] import dayjs from 'dayjs' const locale = { name: 'tk', weekdays: 'Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe'.split('_'), weekdaysShort: 'Ýek_Duş_Siş_Çar_Pen_Ann_Şen'.split('_'), weekdaysMin: 'Ýk_Dş_Sş_Çr_Pn_An_Şn'.split('_'), months: 'Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr'.split('_'), monthsShort: 'Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek'.split('_'), weekStart: 1, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD.MM.YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY HH:mm', LLLL: 'dddd, D MMMM YYYY HH:mm' }, relativeTime: { future: '%s soň', past: '%s öň', s: 'birnäçe sekunt', m: 'bir minut', mm: '%d minut', h: 'bir sagat', hh: '%d sagat', d: 'bir gün', dd: '%d gün', M: 'bir aý', MM: '%d aý', y: 'bir ýyl', yy: '%d ýyl' }, ordinal: n => `${n}.` } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/pt-br.js
src/locale/pt-br.js
// Portuguese (Brazil) [pt-br] import dayjs from 'dayjs' const locale = { name: 'pt-br', weekdays: 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split('_'), weekdaysShort: 'dom_seg_ter_qua_qui_sex_sáb'.split('_'), weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'), months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'), monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'), ordinal: n => `${n}º`, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD/MM/YYYY', LL: 'D [de] MMMM [de] YYYY', LLL: 'D [de] MMMM [de] YYYY [às] HH:mm', LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm' }, relativeTime: { future: 'em %s', past: 'há %s', s: 'poucos segundos', m: 'um minuto', mm: '%d minutos', h: 'uma hora', hh: '%d horas', d: 'um dia', dd: '%d dias', M: 'um mês', MM: '%d meses', y: 'um ano', yy: '%d anos' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/el.js
src/locale/el.js
// Greek [el] import dayjs from 'dayjs' const locale = { name: 'el', weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'), weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'), weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'), months: 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split('_'), monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαι_Ιουν_Ιουλ_Αυγ_Σεπτ_Οκτ_Νοε_Δεκ'.split('_'), ordinal: n => n, weekStart: 1, relativeTime: { future: 'σε %s', past: 'πριν %s', s: 'μερικά δευτερόλεπτα', m: 'ένα λεπτό', mm: '%d λεπτά', h: 'μία ώρα', hh: '%d ώρες', d: 'μία μέρα', dd: '%d μέρες', M: 'ένα μήνα', MM: '%d μήνες', y: 'ένα χρόνο', yy: '%d χρόνια' }, formats: { LT: 'h:mm A', LTS: 'h:mm:ss A', L: 'DD/MM/YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY h:mm A', LLLL: 'dddd, D MMMM YYYY h:mm A' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/de-ch.js
src/locale/de-ch.js
// German (Switzerland) [de-ch] import dayjs from 'dayjs' const texts = { s: 'ein paar Sekunden', m: ['eine Minute', 'einer Minute'], mm: '%d Minuten', h: ['eine Stunde', 'einer Stunde'], hh: '%d Stunden', d: ['ein Tag', 'einem Tag'], dd: ['%d Tage', '%d Tagen'], M: ['ein Monat', 'einem Monat'], MM: ['%d Monate', '%d Monaten'], y: ['ein Jahr', 'einem Jahr'], yy: ['%d Jahre', '%d Jahren'] } function relativeTimeFormatter(number, withoutSuffix, key) { let l = texts[key] if (Array.isArray(l)) { l = l[withoutSuffix ? 0 : 1] } return l.replace('%d', number) } const locale = { name: 'de-ch', weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'), weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'), monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'), ordinal: n => `${n}.`, weekStart: 1, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD.MM.YYYY', LL: 'D. MMMM YYYY', LLL: 'D. MMMM YYYY HH:mm', LLLL: 'dddd, D. MMMM YYYY HH:mm' }, relativeTime: { future: 'in %s', past: 'vor %s', s: relativeTimeFormatter, m: relativeTimeFormatter, mm: relativeTimeFormatter, h: relativeTimeFormatter, hh: relativeTimeFormatter, d: relativeTimeFormatter, dd: relativeTimeFormatter, M: relativeTimeFormatter, MM: relativeTimeFormatter, y: relativeTimeFormatter, yy: relativeTimeFormatter } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/ht.js
src/locale/ht.js
// Haitian Creole (Haiti) [ht] import dayjs from 'dayjs' const locale = { name: 'ht', weekdays: 'dimanch_lendi_madi_mèkredi_jedi_vandredi_samdi'.split('_'), months: 'janvye_fevriye_mas_avril_me_jen_jiyè_out_septanm_oktòb_novanm_desanm'.split('_'), weekdaysShort: 'dim._len._mad._mèk._jed._van._sam.'.split('_'), monthsShort: 'jan._fev._mas_avr._me_jen_jiyè._out_sept._okt._nov._des.'.split('_'), weekdaysMin: 'di_le_ma_mè_je_va_sa'.split('_'), ordinal: n => n, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD/MM/YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY HH:mm', LLLL: 'dddd D MMMM YYYY HH:mm' }, relativeTime: { future: 'nan %s', past: 'sa gen %s', s: 'kèk segond', m: 'yon minit', mm: '%d minit', h: 'inèdtan', hh: '%d zè', d: 'yon jou', dd: '%d jou', M: 'yon mwa', MM: '%d mwa', y: 'yon ane', yy: '%d ane' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/fy.js
src/locale/fy.js
// Frisian [fy] import dayjs from 'dayjs' const locale = { name: 'fy', weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'), months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'), monthsShort: 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'), weekStart: 1, weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'), weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'), ordinal: n => n, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD-MM-YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY HH:mm', LLLL: 'dddd D MMMM YYYY HH:mm' }, relativeTime: { future: 'oer %s', past: '%s lyn', s: 'in pear sekonden', m: 'ien minút', mm: '%d minuten', h: 'ien oere', hh: '%d oeren', d: 'ien dei', dd: '%d dagen', M: 'ien moanne', MM: '%d moannen', y: 'ien jier', yy: '%d jierren' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/te.js
src/locale/te.js
// Telugu [te] import dayjs from 'dayjs' const locale = { name: 'te', weekdays: 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split('_'), months: 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split('_'), weekdaysShort: 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'), monthsShort: 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split('_'), weekdaysMin: 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'), ordinal: n => n, formats: { LT: 'A h:mm', LTS: 'A h:mm:ss', L: 'DD/MM/YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY, A h:mm', LLLL: 'dddd, D MMMM YYYY, A h:mm' }, relativeTime: { future: '%s లో', past: '%s క్రితం', s: 'కొన్ని క్షణాలు', m: 'ఒక నిమిషం', mm: '%d నిమిషాలు', h: 'ఒక గంట', hh: '%d గంటలు', d: 'ఒక రోజు', dd: '%d రోజులు', M: 'ఒక నెల', MM: '%d నెలలు', y: 'ఒక సంవత్సరం', yy: '%d సంవత్సరాలు' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/ms-my.js
src/locale/ms-my.js
// Malay [ms-my] import dayjs from 'dayjs' const locale = { name: 'ms-my', weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'), months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'), weekStart: 1, weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'), monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'), weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'), ordinal: n => n, formats: { LT: 'HH.mm', LTS: 'HH.mm.ss', L: 'DD/MM/YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY [pukul] HH.mm', LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm' }, relativeTime: { future: 'dalam %s', past: '%s yang lepas', s: 'beberapa saat', m: 'seminit', mm: '%d minit', h: 'sejam', hh: '%d jam', d: 'sehari', dd: '%d hari', M: 'sebulan', MM: '%d bulan', y: 'setahun', yy: '%d tahun' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/sw.js
src/locale/sw.js
// Swahili [sw] import dayjs from 'dayjs' const locale = { name: 'sw', weekdays: 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split('_'), weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'), weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'), months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split('_'), monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'), weekStart: 1, ordinal: n => n, relativeTime: { future: '%s baadaye', past: 'tokea %s', s: 'hivi punde', m: 'dakika moja', mm: 'dakika %d', h: 'saa limoja', hh: 'masaa %d', d: 'siku moja', dd: 'masiku %d', M: 'mwezi mmoja', MM: 'miezi %d', y: 'mwaka mmoja', yy: 'miaka %d' }, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD.MM.YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY HH:mm', LLLL: 'dddd, D MMMM YYYY HH:mm' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/hr.js
src/locale/hr.js
// Croatian [hr] import dayjs from 'dayjs' const monthFormat = 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split('_') const monthStandalone = 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split('_') const MONTHS_IN_FORMAT = /D[oD]?(\[[^[\]]*\]|\s)+MMMM?/ const months = (dayjsInstance, format) => { if (MONTHS_IN_FORMAT.test(format)) { return monthFormat[dayjsInstance.month()] } return monthStandalone[dayjsInstance.month()] } months.s = monthStandalone months.f = monthFormat const locale = { name: 'hr', weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'), weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), months, monthsShort: 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split('_'), weekStart: 1, formats: { LT: 'H:mm', LTS: 'H:mm:ss', L: 'DD.MM.YYYY', LL: 'D. MMMM YYYY', LLL: 'D. MMMM YYYY H:mm', LLLL: 'dddd, D. MMMM YYYY H:mm' }, relativeTime: { future: 'za %s', past: 'prije %s', s: 'sekunda', m: 'minuta', mm: '%d minuta', h: 'sat', hh: '%d sati', d: 'dan', dd: '%d dana', M: 'mjesec', MM: '%d mjeseci', y: 'godina', yy: '%d godine' }, ordinal: n => `${n}.` } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/cv.js
src/locale/cv.js
// Chuvash [cv] import dayjs from 'dayjs' const locale = { name: 'cv', weekdays: 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split('_'), months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split('_'), weekStart: 1, weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'), monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'), weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'), ordinal: n => n, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD-MM-YYYY', LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]', LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm', LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/zh-hk.js
src/locale/zh-hk.js
// Chinese (Hong Kong) [zh-hk] import dayjs from 'dayjs' const locale = { name: 'zh-hk', months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'), monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'), weekdaysMin: '日_一_二_三_四_五_六'.split('_'), ordinal: (number, period) => { switch (period) { case 'W': return `${number}週` default: return `${number}日` } }, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'YYYY/MM/DD', LL: 'YYYY年M月D日', LLL: 'YYYY年M月D日 HH:mm', LLLL: 'YYYY年M月D日dddd HH:mm', l: 'YYYY/M/D', ll: 'YYYY年M月D日', lll: 'YYYY年M月D日 HH:mm', llll: 'YYYY年M月D日dddd HH:mm' }, relativeTime: { future: '%s內', past: '%s前', s: '幾秒', m: '一分鐘', mm: '%d 分鐘', h: '一小時', hh: '%d 小時', d: '一天', dd: '%d 天', M: '一個月', MM: '%d 個月', y: '一年', yy: '%d 年' }, meridiem: (hour, minute) => { const hm = (hour * 100) + minute if (hm < 600) { return '凌晨' } else if (hm < 900) { return '早上' } else if (hm < 1100) { return '上午' } else if (hm < 1300) { return '中午' } else if (hm < 1800) { return '下午' } return '晚上' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/ar-tn.js
src/locale/ar-tn.js
// Arabic (Tunisia) [ar-tn] import dayjs from 'dayjs' const locale = { name: 'ar-tn', weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'), weekStart: 1, weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'), weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), ordinal: n => n, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD/MM/YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY HH:mm', LLLL: 'dddd D MMMM YYYY HH:mm' }, meridiem: hour => (hour > 12 ? 'م' : 'ص'), relativeTime: { future: 'في %s', past: 'منذ %s', s: 'ثوان', m: 'دقيقة', mm: '%d دقائق', h: 'ساعة', hh: '%d ساعات', d: 'يوم', dd: '%d أيام', M: 'شهر', MM: '%d أشهر', y: 'سنة', yy: '%d سنوات' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/pt.js
src/locale/pt.js
// Portuguese [pt] import dayjs from 'dayjs' const locale = { name: 'pt', weekdays: 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split('_'), weekdaysShort: 'dom_seg_ter_qua_qui_sex_sab'.split('_'), weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sa'.split('_'), months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'), monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'), ordinal: n => `${n}º`, weekStart: 1, yearStart: 4, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD/MM/YYYY', LL: 'D [de] MMMM [de] YYYY', LLL: 'D [de] MMMM [de] YYYY [às] HH:mm', LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm' }, relativeTime: { future: 'em %s', past: 'há %s', s: 'alguns segundos', m: 'um minuto', mm: '%d minutos', h: 'uma hora', hh: '%d horas', d: 'um dia', dd: '%d dias', M: 'um mês', MM: '%d meses', y: 'um ano', yy: '%d anos' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/es.js
src/locale/es.js
// Spanish [es] import dayjs from 'dayjs' const locale = { name: 'es', monthsShort: 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'), weekStart: 1, formats: { LT: 'H:mm', LTS: 'H:mm:ss', L: 'DD/MM/YYYY', LL: 'D [de] MMMM [de] YYYY', LLL: 'D [de] MMMM [de] YYYY H:mm', LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm' }, relativeTime: { future: 'en %s', past: 'hace %s', s: 'unos segundos', m: 'un minuto', mm: '%d minutos', h: 'una hora', hh: '%d horas', d: 'un día', dd: '%d días', M: 'un mes', MM: '%d meses', y: 'un año', yy: '%d años' }, ordinal: n => `${n}º` } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/is.js
src/locale/is.js
// Icelandic [is] import dayjs from 'dayjs' const texts = { s: ['nokkrar sekúndur', 'nokkrar sekúndur', 'nokkrum sekúndum'], m: ['mínúta', 'mínútu', 'mínútu'], mm: ['mínútur', 'mínútur', 'mínútum'], h: ['klukkustund', 'klukkustund', 'klukkustund'], hh: ['klukkustundir', 'klukkustundir', 'klukkustundum'], d: ['dagur', 'dag', 'degi'], dd: ['dagar', 'daga', 'dögum'], M: ['mánuður', 'mánuð', 'mánuði'], MM: ['mánuðir', 'mánuði', 'mánuðum'], y: ['ár', 'ár', 'ári'], yy: ['ár', 'ár', 'árum'] } function resolveTemplate(key, number, isFuture, withoutSuffix) { const suffixIndex = isFuture ? 1 : 2 const index = withoutSuffix ? 0 : suffixIndex const keyShouldBeSingular = key.length === 2 && number % 10 === 1 const correctedKey = keyShouldBeSingular ? key[0] : key const unitText = texts[correctedKey] const text = unitText[index] return key.length === 1 ? text : `%d ${text}` } function relativeTimeFormatter(number, withoutSuffix, key, isFuture) { const template = resolveTemplate(key, number, isFuture, withoutSuffix) return template.replace('%d', number) } const locale = { name: 'is', weekdays: 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split('_'), months: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split('_'), weekStart: 1, weekdaysShort: 'sun_mán_þri_mið_fim_fös_lau'.split('_'), monthsShort: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'), weekdaysMin: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'), ordinal: n => n, formats: { LT: 'H:mm', LTS: 'H:mm:ss', L: 'DD.MM.YYYY', LL: 'D. MMMM YYYY', LLL: 'D. MMMM YYYY [kl.] H:mm', LLLL: 'dddd, D. MMMM YYYY [kl.] H:mm' }, relativeTime: { future: 'eftir %s', past: 'fyrir %s síðan', s: relativeTimeFormatter, m: relativeTimeFormatter, mm: relativeTimeFormatter, h: relativeTimeFormatter, hh: relativeTimeFormatter, d: relativeTimeFormatter, dd: relativeTimeFormatter, M: relativeTimeFormatter, MM: relativeTimeFormatter, y: relativeTimeFormatter, yy: relativeTimeFormatter } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/ta.js
src/locale/ta.js
// Tamil [ta] import dayjs from 'dayjs' const locale = { name: 'ta', weekdays: 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split('_'), months: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'), weekdaysShort: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split('_'), monthsShort: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'), weekdaysMin: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'), ordinal: n => n, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD/MM/YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY, HH:mm', LLLL: 'dddd, D MMMM YYYY, HH:mm' }, relativeTime: { future: '%s இல்', past: '%s முன்', s: 'ஒரு சில விநாடிகள்', m: 'ஒரு நிமிடம்', mm: '%d நிமிடங்கள்', h: 'ஒரு மணி நேரம்', hh: '%d மணி நேரம்', d: 'ஒரு நாள்', dd: '%d நாட்கள்', M: 'ஒரு மாதம்', MM: '%d மாதங்கள்', y: 'ஒரு வருடம்', yy: '%d ஆண்டுகள்' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/me.js
src/locale/me.js
// Montenegrin [me] import dayjs from 'dayjs' const locale = { name: 'me', weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'), months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'), weekStart: 1, weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'), weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), ordinal: n => n, formats: { LT: 'H:mm', LTS: 'H:mm:ss', L: 'DD.MM.YYYY', LL: 'D. MMMM YYYY', LLL: 'D. MMMM YYYY H:mm', LLLL: 'dddd, D. MMMM YYYY H:mm' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/se.js
src/locale/se.js
// Northern Sami [se] import dayjs from 'dayjs' const locale = { name: 'se', weekdays: 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split('_'), months: 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split('_'), weekStart: 1, weekdaysShort: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'), monthsShort: 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'), weekdaysMin: 's_v_m_g_d_b_L'.split('_'), ordinal: n => n, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD.MM.YYYY', LL: 'MMMM D. [b.] YYYY', LLL: 'MMMM D. [b.] YYYY [ti.] HH:mm', LLLL: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm' }, relativeTime: { future: '%s geažes', past: 'maŋit %s', s: 'moadde sekunddat', m: 'okta minuhta', mm: '%d minuhtat', h: 'okta diimmu', hh: '%d diimmut', d: 'okta beaivi', dd: '%d beaivvit', M: 'okta mánnu', MM: '%d mánut', y: 'okta jahki', yy: '%d jagit' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/nl-be.js
src/locale/nl-be.js
// Dutch (Belgium) [nl-be] import dayjs from 'dayjs' const locale = { name: 'nl-be', weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'), months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'), monthsShort: 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'), weekStart: 1, weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'), weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'), ordinal: n => n, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD/MM/YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY HH:mm', LLLL: 'dddd D MMMM YYYY HH:mm' }, relativeTime: { future: 'over %s', past: '%s geleden', s: 'een paar seconden', m: 'één minuut', mm: '%d minuten', h: 'één uur', hh: '%d uur', d: 'één dag', dd: '%d dagen', M: 'één maand', MM: '%d maanden', y: 'één jaar', yy: '%d jaar' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/it-ch.js
src/locale/it-ch.js
// Italian (Switzerland) [it-ch] import dayjs from 'dayjs' const locale = { name: 'it-ch', weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'), months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'), weekStart: 1, weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'), monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'), weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'), ordinal: n => n, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD.MM.YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY HH:mm', LLLL: 'dddd D MMMM YYYY HH:mm' }, relativeTime: { future: 'tra %s', past: '%s fa', s: 'alcuni secondi', m: 'un minuto', mm: '%d minuti', h: 'un\'ora', hh: '%d ore', d: 'un giorno', dd: '%d giorni', M: 'un mese', MM: '%d mesi', y: 'un anno', yy: '%d anni' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/cy.js
src/locale/cy.js
// Welsh [cy] import dayjs from 'dayjs' const locale = { name: 'cy', weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split('_'), months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split('_'), weekStart: 1, weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'), monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'), weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'), ordinal: n => n, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD/MM/YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY HH:mm', LLLL: 'dddd, D MMMM YYYY HH:mm' }, relativeTime: { future: 'mewn %s', past: '%s yn ôl', s: 'ychydig eiliadau', m: 'munud', mm: '%d munud', h: 'awr', hh: '%d awr', d: 'diwrnod', dd: '%d diwrnod', M: 'mis', MM: '%d mis', y: 'blwyddyn', yy: '%d flynedd' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/fo.js
src/locale/fo.js
// Faroese [fo] import dayjs from 'dayjs' const locale = { name: 'fo', weekdays: 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split('_'), months: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split('_'), weekStart: 1, weekdaysShort: 'sun_mán_týs_mik_hós_frí_ley'.split('_'), monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'), weekdaysMin: 'su_má_tý_mi_hó_fr_le'.split('_'), ordinal: n => n, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD/MM/YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY HH:mm', LLLL: 'dddd D. MMMM, YYYY HH:mm' }, relativeTime: { future: 'um %s', past: '%s síðani', s: 'fá sekund', m: 'ein minuttur', mm: '%d minuttir', h: 'ein tími', hh: '%d tímar', d: 'ein dagur', dd: '%d dagar', M: 'ein mánaður', MM: '%d mánaðir', y: 'eitt ár', yy: '%d ár' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/gom-latn.js
src/locale/gom-latn.js
// Konkani Latin script [gom-latn] import dayjs from 'dayjs' const locale = { name: 'gom-latn', weekdays: "Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split('_'), months: 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split('_'), weekStart: 1, weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'), monthsShort: 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split('_'), weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'), ordinal: n => n, formats: { LT: 'A h:mm [vazta]', LTS: 'A h:mm:ss [vazta]', L: 'DD-MM-YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY A h:mm [vazta]', LLLL: 'dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]', llll: 'ddd, D MMM YYYY, A h:mm [vazta]' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/en-sg.js
src/locale/en-sg.js
// English (Singapore) [en-sg] import dayjs from 'dayjs' const locale = { name: 'en-sg', weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'), weekStart: 1, weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), ordinal: n => n, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD/MM/YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY HH:mm', LLLL: 'dddd, D MMMM YYYY HH:mm' }, relativeTime: { future: 'in %s', past: '%s ago', s: 'a few seconds', m: 'a minute', mm: '%d minutes', h: 'an hour', hh: '%d hours', d: 'a day', dd: '%d days', M: 'a month', MM: '%d months', y: 'a year', yy: '%d years' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/zh-tw.js
src/locale/zh-tw.js
// Chinese (Taiwan) [zh-tw] import dayjs from 'dayjs' const locale = { name: 'zh-tw', weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'), weekdaysMin: '日_一_二_三_四_五_六'.split('_'), months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'), monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), ordinal: (number, period) => { switch (period) { case 'W': return `${number}週` default: return `${number}日` } }, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'YYYY/MM/DD', LL: 'YYYY年M月D日', LLL: 'YYYY年M月D日 HH:mm', LLLL: 'YYYY年M月D日dddd HH:mm', l: 'YYYY/M/D', ll: 'YYYY年M月D日', lll: 'YYYY年M月D日 HH:mm', llll: 'YYYY年M月D日dddd HH:mm' }, relativeTime: { future: '%s內', past: '%s前', s: '幾秒', m: '1 分鐘', mm: '%d 分鐘', h: '1 小時', hh: '%d 小時', d: '1 天', dd: '%d 天', M: '1 個月', MM: '%d 個月', y: '1 年', yy: '%d 年' }, meridiem: (hour, minute) => { const hm = (hour * 100) + minute if (hm < 600) { return '凌晨' } else if (hm < 900) { return '早上' } else if (hm < 1100) { return '上午' } else if (hm < 1300) { return '中午' } else if (hm < 1800) { return '下午' } return '晚上' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/de.js
src/locale/de.js
// German [de] import dayjs from 'dayjs' const texts = { s: 'ein paar Sekunden', m: ['eine Minute', 'einer Minute'], mm: '%d Minuten', h: ['eine Stunde', 'einer Stunde'], hh: '%d Stunden', d: ['ein Tag', 'einem Tag'], dd: ['%d Tage', '%d Tagen'], M: ['ein Monat', 'einem Monat'], MM: ['%d Monate', '%d Monaten'], y: ['ein Jahr', 'einem Jahr'], yy: ['%d Jahre', '%d Jahren'] } function relativeTimeFormatter(number, withoutSuffix, key) { let l = texts[key] if (Array.isArray(l)) { l = l[withoutSuffix ? 0 : 1] } return l.replace('%d', number) } const locale = { name: 'de', weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'), weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'), weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'), monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.'.split('_'), ordinal: n => `${n}.`, weekStart: 1, yearStart: 4, formats: { LTS: 'HH:mm:ss', LT: 'HH:mm', L: 'DD.MM.YYYY', LL: 'D. MMMM YYYY', LLL: 'D. MMMM YYYY HH:mm', LLLL: 'dddd, D. MMMM YYYY HH:mm' }, relativeTime: { future: 'in %s', past: 'vor %s', s: relativeTimeFormatter, m: relativeTimeFormatter, mm: relativeTimeFormatter, h: relativeTimeFormatter, hh: relativeTimeFormatter, d: relativeTimeFormatter, dd: relativeTimeFormatter, M: relativeTimeFormatter, MM: relativeTimeFormatter, y: relativeTimeFormatter, yy: relativeTimeFormatter } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/sq.js
src/locale/sq.js
// Albanian [sq] import dayjs from 'dayjs' const locale = { name: 'sq', weekdays: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'), months: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split('_'), weekStart: 1, weekdaysShort: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'), monthsShort: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'), weekdaysMin: 'D_H_Ma_Më_E_P_Sh'.split('_'), ordinal: n => n, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD/MM/YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY HH:mm', LLLL: 'dddd, D MMMM YYYY HH:mm' }, relativeTime: { future: 'në %s', past: '%s më parë', s: 'disa sekonda', m: 'një minutë', mm: '%d minuta', h: 'një orë', hh: '%d orë', d: 'një ditë', dd: '%d ditë', M: 'një muaj', MM: '%d muaj', y: 'një vit', yy: '%d vite' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/en-tt.js
src/locale/en-tt.js
// English (Trinidad & Tobago) [en-tt] import dayjs from 'dayjs' const locale = { name: 'en-tt', weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'), monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), weekStart: 1, yearStart: 4, relativeTime: { future: 'in %s', past: '%s ago', s: 'a few seconds', m: 'a minute', mm: '%d minutes', h: 'an hour', hh: '%d hours', d: 'a day', dd: '%d days', M: 'a month', MM: '%d months', y: 'a year', yy: '%d years' }, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD/MM/YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY HH:mm', LLLL: 'dddd, D MMMM YYYY HH:mm' }, ordinal: (n) => { const s = ['th', 'st', 'nd', 'rd'] const v = n % 100 return `[${n}${(s[(v - 20) % 10] || s[v] || s[0])}]` } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/en.js
src/locale/en.js
// English [en] // We don't need weekdaysShort, weekdaysMin, monthsShort in en.js locale export default { name: 'en', weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'), ordinal: (n) => { const s = ['th', 'st', 'nd', 'rd'] const v = n % 100 return `[${n}${(s[(v - 20) % 10] || s[v] || s[0])}]` } }
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/tlh.js
src/locale/tlh.js
// Klingon [tlh] import dayjs from 'dayjs' const locale = { name: 'tlh', weekdays: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'), months: 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split('_'), weekStart: 1, weekdaysShort: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'), monthsShort: 'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split('_'), weekdaysMin: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'), ordinal: n => n, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD.MM.YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY HH:mm', LLLL: 'dddd, D MMMM YYYY HH:mm' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/lv.js
src/locale/lv.js
// Latvian [lv] import dayjs from 'dayjs' const locale = { name: 'lv', weekdays: 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split('_'), months: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split('_'), weekStart: 1, weekdaysShort: 'Sv_P_O_T_C_Pk_S'.split('_'), monthsShort: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'), weekdaysMin: 'Sv_P_O_T_C_Pk_S'.split('_'), ordinal: n => n, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD.MM.YYYY.', LL: 'YYYY. [gada] D. MMMM', LLL: 'YYYY. [gada] D. MMMM, HH:mm', LLLL: 'YYYY. [gada] D. MMMM, dddd, HH:mm' }, relativeTime: { future: 'pēc %s', past: 'pirms %s', s: 'dažām sekundēm', m: 'minūtes', mm: '%d minūtēm', h: 'stundas', hh: '%d stundām', d: 'dienas', dd: '%d dienām', M: 'mēneša', MM: '%d mēnešiem', y: 'gada', yy: '%d gadiem' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/sv-fi.js
src/locale/sv-fi.js
// Finland Swedish [sv-fi] import dayjs from 'dayjs' const locale = { name: 'sv-fi', weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'), weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'), weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'), months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'), monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'), weekStart: 1, yearStart: 4, ordinal: (n) => { const b = n % 10 const o = (b === 1) || (b === 2) ? 'a' : 'e' return `[${n}${o}]` }, formats: { LT: 'HH.mm', LTS: 'HH.mm.ss', L: 'DD.MM.YYYY', LL: 'D. MMMM YYYY', LLL: 'D. MMMM YYYY, [kl.] HH.mm', LLLL: 'dddd, D. MMMM YYYY, [kl.] HH.mm', l: 'D.M.YYYY', ll: 'D. MMM YYYY', lll: 'D. MMM YYYY, [kl.] HH.mm', llll: 'ddd, D. MMM YYYY, [kl.] HH.mm' }, relativeTime: { future: 'om %s', past: 'för %s sedan', s: 'några sekunder', m: 'en minut', mm: '%d minuter', h: 'en timme', hh: '%d timmar', d: 'en dag', dd: '%d dagar', M: 'en månad', MM: '%d månader', y: 'ett år', yy: '%d år' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/fr-ch.js
src/locale/fr-ch.js
// French (Switzerland) [fr-ch] import dayjs from 'dayjs' const locale = { name: 'fr-ch', weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'), weekStart: 1, weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'), weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'), ordinal: n => n, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD.MM.YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY HH:mm', LLLL: 'dddd D MMMM YYYY HH:mm' }, relativeTime: { future: 'dans %s', past: 'il y a %s', s: 'quelques secondes', m: 'une minute', mm: '%d minutes', h: 'une heure', hh: '%d heures', d: 'un jour', dd: '%d jours', M: 'un mois', MM: '%d mois', y: 'un an', yy: '%d ans' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/sd.js
src/locale/sd.js
// Sindhi [sd] import dayjs from 'dayjs' const locale = { name: 'sd', weekdays: 'آچر_سومر_اڱارو_اربع_خميس_جمع_ڇنڇر'.split('_'), months: 'جنوري_فيبروري_مارچ_اپريل_مئي_جون_جولاءِ_آگسٽ_سيپٽمبر_آڪٽوبر_نومبر_ڊسمبر'.split('_'), weekStart: 1, weekdaysShort: 'آچر_سومر_اڱارو_اربع_خميس_جمع_ڇنڇر'.split('_'), monthsShort: 'جنوري_فيبروري_مارچ_اپريل_مئي_جون_جولاءِ_آگسٽ_سيپٽمبر_آڪٽوبر_نومبر_ڊسمبر'.split('_'), weekdaysMin: 'آچر_سومر_اڱارو_اربع_خميس_جمع_ڇنڇر'.split('_'), ordinal: n => n, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'DD/MM/YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY HH:mm', LLLL: 'dddd، D MMMM YYYY HH:mm' }, relativeTime: { future: '%s پوء', past: '%s اڳ', s: 'چند سيڪنڊ', m: 'هڪ منٽ', mm: '%d منٽ', h: 'هڪ ڪلاڪ', hh: '%d ڪلاڪ', d: 'هڪ ڏينهن', dd: '%d ڏينهن', M: 'هڪ مهينو', MM: '%d مهينا', y: 'هڪ سال', yy: '%d سال' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/lb.js
src/locale/lb.js
// Luxembourgish [lb] import dayjs from 'dayjs' const locale = { name: 'lb', weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split('_'), months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'), weekStart: 1, weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'), monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'), weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'), ordinal: n => n, formats: { LT: 'H:mm [Auer]', LTS: 'H:mm:ss [Auer]', L: 'DD.MM.YYYY', LL: 'D. MMMM YYYY', LLL: 'D. MMMM YYYY H:mm [Auer]', LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/ne.js
src/locale/ne.js
// Nepalese [ne] import dayjs from 'dayjs' const locale = { name: 'ne', weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split('_'), weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'), weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'), months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मे_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split('_'), monthsShort: 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split('_'), relativeTime: { future: '%s पछि', past: '%s अघि', s: 'सेकेन्ड', m: 'एक मिनेट', mm: '%d मिनेट', h: 'घन्टा', hh: '%d घन्टा', d: 'एक दिन', dd: '%d दिन', M: 'एक महिना', MM: '%d महिना', y: 'एक वर्ष', yy: '%d वर्ष' }, ordinal: n => `${n}`.replace(/\d/g, i => '०१२३४५६७८९'[i]), formats: { LT: 'Aको h:mm बजे', LTS: 'Aको h:mm:ss बजे', L: 'DD/MM/YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY, Aको h:mm बजे', LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/hu.js
src/locale/hu.js
// Hungarian [hu] import dayjs from 'dayjs' const locale = { name: 'hu', weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'), weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'), weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'), months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split('_'), monthsShort: 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split('_'), ordinal: n => `${n}.`, weekStart: 1, relativeTime: { future: '%s múlva', past: '%s', s: (_, s, ___, isFuture) => `néhány másodperc${isFuture || s ? '' : 'e'}`, m: (_, s, ___, isFuture) => `egy perc${isFuture || s ? '' : 'e'}`, mm: (n, s, ___, isFuture) => `${n} perc${isFuture || s ? '' : 'e'}`, h: (_, s, ___, isFuture) => `egy ${isFuture || s ? 'óra' : 'órája'}`, hh: (n, s, ___, isFuture) => `${n} ${isFuture || s ? 'óra' : 'órája'}`, d: (_, s, ___, isFuture) => `egy ${isFuture || s ? 'nap' : 'napja'}`, dd: (n, s, ___, isFuture) => `${n} ${isFuture || s ? 'nap' : 'napja'}`, M: (_, s, ___, isFuture) => `egy ${isFuture || s ? 'hónap' : 'hónapja'}`, MM: (n, s, ___, isFuture) => `${n} ${isFuture || s ? 'hónap' : 'hónapja'}`, y: (_, s, ___, isFuture) => `egy ${isFuture || s ? 'év' : 'éve'}`, yy: (n, s, ___, isFuture) => `${n} ${isFuture || s ? 'év' : 'éve'}` }, formats: { LT: 'H:mm', LTS: 'H:mm:ss', L: 'YYYY.MM.DD.', LL: 'YYYY. MMMM D.', LLL: 'YYYY. MMMM D. H:mm', LLLL: 'YYYY. MMMM D., dddd H:mm' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/id.js
src/locale/id.js
// Indonesian [id] import dayjs from 'dayjs' const locale = { name: 'id', weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'), months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'), weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'), monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'), weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'), weekStart: 1, formats: { LT: 'HH.mm', LTS: 'HH.mm.ss', L: 'DD/MM/YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY [pukul] HH.mm', LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm' }, relativeTime: { future: 'dalam %s', past: '%s yang lalu', s: 'beberapa detik', m: 'semenit', mm: '%d menit', h: 'sejam', hh: '%d jam', d: 'sehari', dd: '%d hari', M: 'sebulan', MM: '%d bulan', y: 'setahun', yy: '%d tahun' }, ordinal: n => `${n}.` } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/bs.js
src/locale/bs.js
// Bosnian [bs] import dayjs from 'dayjs' const locale = { name: 'bs', weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'), months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'), weekStart: 1, weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), monthsShort: 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'), weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), ordinal: n => n, formats: { LT: 'H:mm', LTS: 'H:mm:ss', L: 'DD.MM.YYYY', LL: 'D. MMMM YYYY', LLL: 'D. MMMM YYYY H:mm', LLLL: 'dddd, D. MMMM YYYY H:mm' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/tl-ph.js
src/locale/tl-ph.js
// Tagalog (Philippines) [tl-ph] import dayjs from 'dayjs' const locale = { name: 'tl-ph', weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'), months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'), weekStart: 1, weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'), monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'), weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'), ordinal: n => n, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'MM/D/YYYY', LL: 'MMMM D, YYYY', LLL: 'MMMM D, YYYY HH:mm', LLLL: 'dddd, MMMM DD, YYYY HH:mm' }, relativeTime: { future: 'sa loob ng %s', past: '%s ang nakalipas', s: 'ilang segundo', m: 'isang minuto', mm: '%d minuto', h: 'isang oras', hh: '%d oras', d: 'isang araw', dd: '%d araw', M: 'isang buwan', MM: '%d buwan', y: 'isang taon', yy: '%d taon' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false
iamkun/dayjs
https://github.com/iamkun/dayjs/blob/54f447048cee679e51a7053f8042d9b6b7028b89/src/locale/zh-cn.js
src/locale/zh-cn.js
// Chinese (China) [zh-cn] import dayjs from 'dayjs' const locale = { name: 'zh-cn', weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'), weekdaysMin: '日_一_二_三_四_五_六'.split('_'), months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'), monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), ordinal: (number, period) => { switch (period) { case 'W': return `${number}周` default: return `${number}日` } }, weekStart: 1, yearStart: 4, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss', L: 'YYYY/MM/DD', LL: 'YYYY年M月D日', LLL: 'YYYY年M月D日Ah点mm分', LLLL: 'YYYY年M月D日ddddAh点mm分', l: 'YYYY/M/D', ll: 'YYYY年M月D日', lll: 'YYYY年M月D日 HH:mm', llll: 'YYYY年M月D日dddd HH:mm' }, relativeTime: { future: '%s内', past: '%s前', s: '几秒', m: '1 分钟', mm: '%d 分钟', h: '1 小时', hh: '%d 小时', d: '1 天', dd: '%d 天', M: '1 个月', MM: '%d 个月', y: '1 年', yy: '%d 年' }, meridiem: (hour, minute) => { const hm = (hour * 100) + minute if (hm < 600) { return '凌晨' } else if (hm < 900) { return '早上' } else if (hm < 1100) { return '上午' } else if (hm < 1300) { return '中午' } else if (hm < 1800) { return '下午' } return '晚上' } } dayjs.locale(locale, null, true) export default locale
javascript
MIT
54f447048cee679e51a7053f8042d9b6b7028b89
2026-01-04T14:57:31.496629Z
false