laif-ds
Version:
Design System di Laif con componenti React basati su principi di Atomic Design
148 lines (147 loc) • 2.81 kB
JavaScript
"use client";
import { buildLocalizeFn as e } from "../../_lib/buildLocalizeFn.js";
const i = {
narrow: ["aC", "dC"],
abbreviated: ["a.C.", "d.C."],
wide: ["avanti Cristo", "dopo Cristo"]
}, t = {
narrow: ["1", "2", "3", "4"],
abbreviated: ["T1", "T2", "T3", "T4"],
wide: ["1º trimestre", "2º trimestre", "3º trimestre", "4º trimestre"]
}, a = {
narrow: ["G", "F", "M", "A", "M", "G", "L", "A", "S", "O", "N", "D"],
abbreviated: [
"gen",
"feb",
"mar",
"apr",
"mag",
"giu",
"lug",
"ago",
"set",
"ott",
"nov",
"dic"
],
wide: [
"gennaio",
"febbraio",
"marzo",
"aprile",
"maggio",
"giugno",
"luglio",
"agosto",
"settembre",
"ottobre",
"novembre",
"dicembre"
]
}, r = {
narrow: ["D", "L", "M", "M", "G", "V", "S"],
short: ["dom", "lun", "mar", "mer", "gio", "ven", "sab"],
abbreviated: ["dom", "lun", "mar", "mer", "gio", "ven", "sab"],
wide: [
"domenica",
"lunedì",
"martedì",
"mercoledì",
"giovedì",
"venerdì",
"sabato"
]
}, m = {
narrow: {
am: "m.",
pm: "p.",
midnight: "mezzanotte",
noon: "mezzogiorno",
morning: "mattina",
afternoon: "pomeriggio",
evening: "sera",
night: "notte"
},
abbreviated: {
am: "AM",
pm: "PM",
midnight: "mezzanotte",
noon: "mezzogiorno",
morning: "mattina",
afternoon: "pomeriggio",
evening: "sera",
night: "notte"
},
wide: {
am: "AM",
pm: "PM",
midnight: "mezzanotte",
noon: "mezzogiorno",
morning: "mattina",
afternoon: "pomeriggio",
evening: "sera",
night: "notte"
}
}, d = {
narrow: {
am: "m.",
pm: "p.",
midnight: "mezzanotte",
noon: "mezzogiorno",
morning: "di mattina",
afternoon: "del pomeriggio",
evening: "di sera",
night: "di notte"
},
abbreviated: {
am: "AM",
pm: "PM",
midnight: "mezzanotte",
noon: "mezzogiorno",
morning: "di mattina",
afternoon: "del pomeriggio",
evening: "di sera",
night: "di notte"
},
wide: {
am: "AM",
pm: "PM",
midnight: "mezzanotte",
noon: "mezzogiorno",
morning: "di mattina",
afternoon: "del pomeriggio",
evening: "di sera",
night: "di notte"
}
}, g = (o, s) => {
const n = Number(o);
return String(n);
}, u = {
ordinalNumber: g,
era: e({
values: i,
defaultWidth: "wide"
}),
quarter: e({
values: t,
defaultWidth: "wide",
argumentCallback: (o) => o - 1
}),
month: e({
values: a,
defaultWidth: "wide"
}),
day: e({
values: r,
defaultWidth: "wide"
}),
dayPeriod: e({
values: m,
defaultWidth: "wide",
formattingValues: d,
defaultFormattingWidth: "wide"
})
};
export {
u as localize
};