flatpickr
Version:
A lightweight, powerful javascript datetime picker
73 lines (64 loc) • 1.27 kB
text/typescript
/* French locals for flatpickr */
import { CustomLocale } from "types/locale";
import { FlatpickrFn } from "types/instance";
const fp: FlatpickrFn =
typeof window !== "undefined" && window.flatpickr !== undefined
? window.flatpickr
: {
l10ns: {},
} as FlatpickrFn;
export const French: CustomLocale = {
firstDayOfWeek: 1,
weekdays: {
shorthand: ["Dim", "Lun", "Mar", "Mer", "Jeu", "Ven", "Sam"],
longhand: [
"Dimanche",
"Lundi",
"Mardi",
"Mercredi",
"Jeudi",
"Vendredi",
"Samedi",
],
},
months: {
shorthand: [
"Janv",
"Févr",
"Mars",
"Avr",
"Mai",
"Juin",
"Juil",
"Août",
"Sept",
"Oct",
"Nov",
"Déc",
],
longhand: [
"Janvier",
"Février",
"Mars",
"Avril",
"Mai",
"Juin",
"Juillet",
"Août",
"Septembre",
"Octobre",
"Novembre",
"Décembre",
],
},
ordinal: nth => {
if (nth > 1) return "ème";
return "er";
},
rangeSeparator: " au ",
weekAbbreviation: "Sem",
scrollTitle: "Défiler pour augmenter la valeur",
toggleTitle: "Cliquer pour basculer",
};
fp.l10ns.fr = French;
export default fp.l10ns;