chore: removing hardcoded language change

This commit is contained in:
Hydra 2024-05-13 10:59:04 +01:00
parent 9671af12d0
commit 76981b4fc8
No known key found for this signature in database
2 changed files with 13 additions and 2 deletions

View File

@ -1,6 +1,18 @@
import { formatDistance } 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";
export function useDate() {

View File

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