mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
Merge branch 'main' into main
This commit is contained in:
commit
755acbddb2
5 changed files with 181 additions and 1 deletions
|
@ -28,6 +28,7 @@ export const getSteamLanguage = (language: string) => {
|
|||
if (language.startsWith("hu")) return "hungarian";
|
||||
if (language.startsWith("pl")) return "polish";
|
||||
if (language.startsWith("zh")) return "chinese";
|
||||
if (language.startsWith("da")) return "danish";
|
||||
|
||||
return "english";
|
||||
};
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import { formatDistance } from "date-fns";
|
||||
import type { FormatDistanceOptions } from "date-fns";
|
||||
|
||||
import {
|
||||
ptBR,
|
||||
enUS,
|
||||
|
@ -12,7 +13,9 @@ import {
|
|||
it,
|
||||
be,
|
||||
zhCN,
|
||||
da
|
||||
} from "date-fns/locale";
|
||||
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
export function useDate() {
|
||||
|
@ -31,6 +34,7 @@ export function useDate() {
|
|||
if (language.startsWith("it")) return it;
|
||||
if (language.startsWith("be")) return be;
|
||||
if (language.startsWith("zh")) return zhCN;
|
||||
if (language.startsWith("da")) return da;
|
||||
|
||||
return enUS;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue