mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-01-23 21:44:55 +03:00
chore: removing hardcoded language change
This commit is contained in:
parent
9671af12d0
commit
76981b4fc8
@ -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() {
|
||||
|
@ -57,7 +57,6 @@ i18n
|
||||
},
|
||||
})
|
||||
.then(() => {
|
||||
i18n.changeLanguage("pt-BR");
|
||||
window.electron.updateUserPreferences({ language: i18n.language });
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user