chore: removing hardcoded language change

This commit is contained in:
Hydra 2024-05-13 10:59:04 +01:00 committed by ruthenium44
parent 5662ec6c0e
commit 610f38ab95
2 changed files with 13 additions and 2 deletions

View file

@ -1,6 +1,18 @@
import { formatDistance } from "date-fns"; import { formatDistance } from "date-fns";
import type { FormatDistanceOptions } from "date-fns"; import type { FormatDistanceOptions } from "date-fns";
import { ptBR, enUS, es, fr, pl, hu, tr, ru, it, be, da } from "date-fns/locale"; import {
ptBR,
enUS,
es,
fr,
pl,
hu,
tr,
ru,
it,
be,
da,
} from "date-fns/locale";
import { useTranslation } from "react-i18next"; import { useTranslation } from "react-i18next";
export function useDate() { export function useDate() {

View file

@ -57,7 +57,6 @@ i18n
}, },
}) })
.then(() => { .then(() => {
i18n.changeLanguage("pt-BR");
window.electron.updateUserPreferences({ language: i18n.language }); window.electron.updateUserPreferences({ language: i18n.language });
}); });