Skip to content

Commit

Permalink
fix: adjust locale importing in dayjs
Browse files Browse the repository at this point in the history
  • Loading branch information
mguellsegarra authored and ecarreras committed Jan 8, 2025
1 parent 4a6facb commit 9801b51
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/helpers/dayjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/widgets/base/Label.tsx
Original file line number Diff line number Diff line change
@@ -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;

Expand Down

0 comments on commit 9801b51

Please sign in to comment.