Closed difagume closed 1 month ago
Hi, great catch! Can you change this PR to
async function setDateFnsLocale(lng: string) {
if(lng==='es-ES') lng='es';
if(lng==='fr-FR') lng='fr';
dateFnsLocale = await import(`date-fns/locale/${lng}/index.js`).catch((e) => console.error(e));
}
Thank u for this FIX
Looking at the console, I saw that dateFns couldn't find the locale for es-ES and fr-FR since in its languages it only has them as: es and fr. Because of this, the work progress is shown in English.
The error line is:
I renamed the language values for proper visualization and reordered them alphabetically.
The other option would be to just adjust the setDateFnsLocale() code to: