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
5662ec6c0e
commit
610f38ab95
2 changed files with 13 additions and 2 deletions
|
@ -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() {
|
||||||
|
|
|
@ -57,7 +57,6 @@ i18n
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
i18n.changeLanguage("pt-BR");
|
|
||||||
window.electron.updateUserPreferences({ language: i18n.language });
|
window.electron.updateUserPreferences({ language: i18n.language });
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue