mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-03 00:33:49 +03:00
feat: adding english translation
This commit is contained in:
parent
97abef740c
commit
dc8276bb34
@ -108,7 +108,8 @@
|
|||||||
"create_shortcut": "Create shortcut",
|
"create_shortcut": "Create shortcut",
|
||||||
"remove_files": "Remove files",
|
"remove_files": "Remove files",
|
||||||
"remove_from_library_title": "Are you sure?",
|
"remove_from_library_title": "Are you sure?",
|
||||||
"remove_from_library_description": "This will remove {{game}} from your library"
|
"remove_from_library_description": "This will remove {{game}} from your library",
|
||||||
|
"options": "Options"
|
||||||
},
|
},
|
||||||
"activation": {
|
"activation": {
|
||||||
"title": "Activate Hydra",
|
"title": "Activate Hydra",
|
||||||
|
@ -105,7 +105,8 @@
|
|||||||
"create_shortcut": "Criar atalho",
|
"create_shortcut": "Criar atalho",
|
||||||
"remove_files": "Remover arquivos",
|
"remove_files": "Remover arquivos",
|
||||||
"remove_from_library_description": "Tem certeza que deseja remover {{game}} da sua biblioteca?",
|
"remove_from_library_description": "Tem certeza que deseja remover {{game}} da sua biblioteca?",
|
||||||
"remove_from_library_title": "Tem certeza?"
|
"remove_from_library_title": "Tem certeza?",
|
||||||
|
"options": "Opções"
|
||||||
},
|
},
|
||||||
"activation": {
|
"activation": {
|
||||||
"title": "Ativação",
|
"title": "Ativação",
|
||||||
|
@ -6,8 +6,12 @@ export const heroPanelAction = style({
|
|||||||
border: `solid 1px ${vars.color.muted}`,
|
border: `solid 1px ${vars.color.muted}`,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
export const actions = style({
|
||||||
|
display: "flex",
|
||||||
|
gap: `${SPACING_UNIT * 2}px`,
|
||||||
|
});
|
||||||
|
|
||||||
export const separator = style({
|
export const separator = style({
|
||||||
width: "1px",
|
width: "1px",
|
||||||
backgroundColor: vars.color.muted,
|
backgroundColor: vars.color.border,
|
||||||
margin: `${SPACING_UNIT / 2}px 0`,
|
|
||||||
});
|
});
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { GearIcon, PlusCircleIcon } from "@primer/octicons-react";
|
import { GearIcon, PlayIcon, PlusCircleIcon } from "@primer/octicons-react";
|
||||||
import { Button } from "@renderer/components";
|
import { Button } from "@renderer/components";
|
||||||
import { useAppSelector, useDownload, useLibrary } from "@renderer/hooks";
|
import { useAppSelector, useDownload, useLibrary } from "@renderer/hooks";
|
||||||
import { useContext, useState } from "react";
|
import { useContext, useState } from "react";
|
||||||
@ -135,38 +135,43 @@ export function HeroPanelActions() {
|
|||||||
}}
|
}}
|
||||||
selectGameExecutable={selectGameExecutable}
|
selectGameExecutable={selectGameExecutable}
|
||||||
/>
|
/>
|
||||||
<Button
|
|
||||||
onClick={() => {
|
|
||||||
setShowGameOptionsModal(true);
|
|
||||||
}}
|
|
||||||
theme="outline"
|
|
||||||
disabled={deleting || isGameRunning}
|
|
||||||
className={styles.heroPanelAction}
|
|
||||||
>
|
|
||||||
<GearIcon />
|
|
||||||
</Button>
|
|
||||||
|
|
||||||
<div className={styles.separator} />
|
<div className={styles.actions}>
|
||||||
|
{isGameRunning ? (
|
||||||
|
<Button
|
||||||
|
onClick={closeGame}
|
||||||
|
theme="outline"
|
||||||
|
disabled={deleting}
|
||||||
|
className={styles.heroPanelAction}
|
||||||
|
>
|
||||||
|
{t("close")}
|
||||||
|
</Button>
|
||||||
|
) : (
|
||||||
|
<Button
|
||||||
|
onClick={openGame}
|
||||||
|
theme="outline"
|
||||||
|
disabled={deleting || isGameRunning}
|
||||||
|
className={styles.heroPanelAction}
|
||||||
|
>
|
||||||
|
<PlayIcon />
|
||||||
|
{t("play")}
|
||||||
|
</Button>
|
||||||
|
)}
|
||||||
|
|
||||||
|
<div className={styles.separator} />
|
||||||
|
|
||||||
{isGameRunning ? (
|
|
||||||
<Button
|
<Button
|
||||||
onClick={closeGame}
|
onClick={() => {
|
||||||
theme="outline"
|
setShowGameOptionsModal(true);
|
||||||
disabled={deleting}
|
}}
|
||||||
className={styles.heroPanelAction}
|
|
||||||
>
|
|
||||||
{t("close")}
|
|
||||||
</Button>
|
|
||||||
) : (
|
|
||||||
<Button
|
|
||||||
onClick={openGame}
|
|
||||||
theme="outline"
|
theme="outline"
|
||||||
disabled={deleting || isGameRunning}
|
disabled={deleting || isGameRunning}
|
||||||
className={styles.heroPanelAction}
|
className={styles.heroPanelAction}
|
||||||
>
|
>
|
||||||
{t("play")}
|
<GearIcon />
|
||||||
|
{t("options")}
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
</div>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,7 @@ import * as styles from "./hero-panel.css";
|
|||||||
import { formatDownloadProgress } from "@renderer/helpers";
|
import { formatDownloadProgress } from "@renderer/helpers";
|
||||||
import { useDate, useDownload } from "@renderer/hooks";
|
import { useDate, useDownload } from "@renderer/hooks";
|
||||||
import { gameDetailsContext } from "../game-details.context";
|
import { gameDetailsContext } from "../game-details.context";
|
||||||
|
import { Link } from "@renderer/components";
|
||||||
|
|
||||||
const MAX_MINUTES_TO_SHOW_IN_PLAYTIME = 120;
|
const MAX_MINUTES_TO_SHOW_IN_PLAYTIME = 120;
|
||||||
|
|
||||||
@ -61,14 +62,17 @@ export function HeroPanelPlaytime() {
|
|||||||
downloadContent = <p>{t("downloading_metadata")}</p>;
|
downloadContent = <p>{t("downloading_metadata")}</p>;
|
||||||
} else if (game.progress !== 1) {
|
} else if (game.progress !== 1) {
|
||||||
downloadContent = (
|
downloadContent = (
|
||||||
<p className={styles.downloadDetailsRow}>
|
<div className={styles.downloadDetailsRow}>
|
||||||
Download em andamento
|
<Link to="/downloads" className={styles.downloadsLink}>
|
||||||
|
Download em andamento
|
||||||
|
</Link>
|
||||||
|
|
||||||
<small>
|
<small>
|
||||||
{isGameDownloading
|
{isGameDownloading
|
||||||
? progress
|
? progress
|
||||||
: formatDownloadProgress(game.progress)}
|
: formatDownloadProgress(game.progress)}
|
||||||
</small>
|
</small>
|
||||||
</p>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,12 @@ export const actions = style({
|
|||||||
export const downloadDetailsRow = style({
|
export const downloadDetailsRow = style({
|
||||||
gap: `${SPACING_UNIT}px`,
|
gap: `${SPACING_UNIT}px`,
|
||||||
display: "flex",
|
display: "flex",
|
||||||
alignItems: "flex-end",
|
color: vars.color.body,
|
||||||
|
alignItems: "center",
|
||||||
|
});
|
||||||
|
|
||||||
|
export const downloadsLink = style({
|
||||||
|
color: vars.color.body,
|
||||||
});
|
});
|
||||||
|
|
||||||
export const progressBar = recipe({
|
export const progressBar = recipe({
|
||||||
|
Loading…
Reference in New Issue
Block a user