@freshworks/crayons
Version:
Crayons Web Components library
67 lines (62 loc) • 1.53 kB
JavaScript
import { f as formatDistance, l as localize, m as match } from './index-e1f984e1.js';
import { f as formatRelative } from './index-5f0fd88a.js';
import { b as buildFormatLongFn } from './index-dc611d24.js';
var dateFormats = {
full: 'EEEE d MMMM y',
"long": 'd MMMM y',
medium: 'd MMM y',
"short": 'yy-MM-dd'
};
var timeFormats = {
full: 'HH:mm:ss zzzz',
"long": 'HH:mm:ss z',
medium: 'HH:mm:ss',
"short": 'HH:mm'
};
var dateTimeFormats = {
full: "{{date}} 'à' {{time}}",
"long": "{{date}} 'à' {{time}}",
medium: '{{date}}, {{time}}',
"short": '{{date}}, {{time}}'
};
var formatLong = {
date: buildFormatLongFn({
formats: dateFormats,
defaultWidth: 'full'
}),
time: buildFormatLongFn({
formats: timeFormats,
defaultWidth: 'full'
}),
dateTime: buildFormatLongFn({
formats: dateTimeFormats,
defaultWidth: 'full'
})
};
// Same as fr
/**
* @type {Locale}
* @category Locales
* @summary French locale (Canada).
* @language French
* @iso-639-2 fra
* @author Jean Dupouy [@izeau]{@link https://github.com/izeau}
* @author François B [@fbonzon]{@link https://github.com/fbonzon}
* @author Gabriele Petrioli [@gpetrioli]{@link https://github.com/gpetrioli}
*/
var locale = {
code: 'fr-CA',
formatDistance: formatDistance,
formatLong: formatLong,
formatRelative: formatRelative,
localize: localize,
match: match,
// Unique for fr-CA
options: {
weekStartsOn: 0
/* Sunday */
,
firstWeekContainsDate: 1
}
};
export default locale;