From b96568287739127f21a83c25e7fc7f57ea201a11 Mon Sep 17 00:00:00 2001 From: aelassas Date: Tue, 14 Jan 2025 16:25:03 +0100 Subject: [PATCH] Add spanish locale to mui ; fix localization issues --- .gitignore | 1 + backend/src/components/DatePicker.tsx | 4 ++-- backend/src/components/DateTimePicker.tsx | 4 ++-- backend/src/lang/master.ts | 2 +- backend/src/main.tsx | 13 +++++++------ 5 files changed, 13 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index fa2be7034..15e97ba35 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /**/*.pem /**/*.pem-chain /**/*.ca.pem +/**/.DS_Store diff --git a/backend/src/components/DatePicker.tsx b/backend/src/components/DatePicker.tsx index 5c486e16b..bfc524f1d 100644 --- a/backend/src/components/DatePicker.tsx +++ b/backend/src/components/DatePicker.tsx @@ -2,7 +2,7 @@ import React, { useEffect, useState } from 'react' import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFns' import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider' import { DatePicker as MuiDatePicker } from '@mui/x-date-pickers/DatePicker' -import { fr, enUS } from 'date-fns/locale' +import { fr, enUS, es } from 'date-fns/locale' import { TextFieldVariants } from '@mui/material' import { DateValidationError } from '@mui/x-date-pickers' @@ -49,7 +49,7 @@ const DatePicker = ({ }, [minDateValue]) return ( - + +