diff --git a/src/helpers/dayjs.ts b/src/helpers/dayjs.ts index 6d069c50..c7fcf79e 100644 --- a/src/helpers/dayjs.ts +++ b/src/helpers/dayjs.ts @@ -8,6 +8,9 @@ import duration from "dayjs/plugin/duration"; import relativeTime from "dayjs/plugin/relativeTime"; import weekday from "dayjs/plugin/weekday"; import localeData from "dayjs/plugin/localeData"; +import "dayjs/locale/es"; +import "dayjs/locale/en"; +import "dayjs/locale/ca"; dayjs.extend(advancedFormat); dayjs.extend(customParseFormat); diff --git a/src/widgets/base/Label.tsx b/src/widgets/base/Label.tsx index 5c69e645..eb3e25eb 100644 --- a/src/widgets/base/Label.tsx +++ b/src/widgets/base/Label.tsx @@ -1,11 +1,11 @@ -import React, { useContext } from "react"; +import { useContext } from "react"; import { Tooltip, Typography, theme } from "antd"; import { WidgetProps } from "@/types"; import { QuestionCircleOutlined } from "@ant-design/icons"; import { Label as LabelOoui } from "@gisce/ooui"; import { FormContext, FormContextType } from "@/context/FormContext"; import { Interweave } from "interweave"; -import dayjs from "dayjs"; +import dayjs from "@/helpers/dayjs"; const { Text, Title } = Typography; const { useToken } = theme;