mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
chore: removing hardcoded language change
This commit is contained in:
parent
9671af12d0
commit
76981b4fc8
2 changed files with 13 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue