mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-27 21:01:02 +00:00
fix: typo
This commit is contained in:
@@ -355,7 +355,7 @@
|
|||||||
"common_redist_description": "Common redistributables are required to run some games. Installing them is recommended to avoid issues.",
|
"common_redist_description": "Common redistributables are required to run some games. Installing them is recommended to avoid issues.",
|
||||||
"install_common_redist": "Install",
|
"install_common_redist": "Install",
|
||||||
"installing_common_redist": "Installing…",
|
"installing_common_redist": "Installing…",
|
||||||
"show_download_speed_in_megabits": "Show download speed in megabits per second"
|
"show_download_speed_in_megabytes": "Show download speed in megabytes per second"
|
||||||
},
|
},
|
||||||
"notifications": {
|
"notifications": {
|
||||||
"download_complete": "Download complete",
|
"download_complete": "Download complete",
|
||||||
|
|||||||
@@ -342,7 +342,7 @@
|
|||||||
"common_redist_description": "Componentes recomendados são necessários para executar alguns jogos. A instalação deles é recomendada para evitar problemas.",
|
"common_redist_description": "Componentes recomendados são necessários para executar alguns jogos. A instalação deles é recomendada para evitar problemas.",
|
||||||
"install_common_redist": "Instalar",
|
"install_common_redist": "Instalar",
|
||||||
"installing_common_redist": "Instalando…",
|
"installing_common_redist": "Instalando…",
|
||||||
"show_download_speed_in_megabits": "Exibir taxas de download em megabits por segundo"
|
"show_download_speed_in_megabytes": "Exibir taxas de download em megabytes por segundo"
|
||||||
},
|
},
|
||||||
"notifications": {
|
"notifications": {
|
||||||
"download_complete": "Download concluído",
|
"download_complete": "Download concluído",
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ export function useDownload() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const formatDownloadSpeed = (downloadSpeed: number): string => {
|
const formatDownloadSpeed = (downloadSpeed: number): string => {
|
||||||
return userPrefs?.showDownloadSpeedInMegabits
|
return userPrefs?.showDownloadSpeedInMegabytes
|
||||||
? `${formatBytes(downloadSpeed)}/s`
|
? `${formatBytes(downloadSpeed)}/s`
|
||||||
: formatBytesToMbps(downloadSpeed);
|
: formatBytesToMbps(downloadSpeed);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ export function SettingsBehavior() {
|
|||||||
enableAutoInstall: false,
|
enableAutoInstall: false,
|
||||||
seedAfterDownloadComplete: false,
|
seedAfterDownloadComplete: false,
|
||||||
showHiddenAchievementsDescription: false,
|
showHiddenAchievementsDescription: false,
|
||||||
showDownloadSpeedInMegabits: false,
|
showDownloadSpeedInMegabytes: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
const { t } = useTranslation("settings");
|
const { t } = useTranslation("settings");
|
||||||
@@ -41,8 +41,8 @@ export function SettingsBehavior() {
|
|||||||
userPreferences.seedAfterDownloadComplete ?? false,
|
userPreferences.seedAfterDownloadComplete ?? false,
|
||||||
showHiddenAchievementsDescription:
|
showHiddenAchievementsDescription:
|
||||||
userPreferences.showHiddenAchievementsDescription ?? false,
|
userPreferences.showHiddenAchievementsDescription ?? false,
|
||||||
showDownloadSpeedInMegabits:
|
showDownloadSpeedInMegabytes:
|
||||||
userPreferences.showDownloadSpeedInMegabits ?? false,
|
userPreferences.showDownloadSpeedInMegabytes ?? false,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}, [userPreferences]);
|
}, [userPreferences]);
|
||||||
@@ -144,11 +144,11 @@ export function SettingsBehavior() {
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
<CheckboxField
|
<CheckboxField
|
||||||
label={t("show_download_speed_in_megabits")}
|
label={t("show_download_speed_in_megabytes")}
|
||||||
checked={form.showDownloadSpeedInMegabits}
|
checked={form.showDownloadSpeedInMegabytes}
|
||||||
onChange={() =>
|
onChange={() =>
|
||||||
handleChange({
|
handleChange({
|
||||||
showDownloadSpeedInMegabits: !form.showDownloadSpeedInMegabits,
|
showDownloadSpeedInMegabytes: !form.showDownloadSpeedInMegabytes,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ export interface UserPreferences {
|
|||||||
repackUpdatesNotificationsEnabled?: boolean;
|
repackUpdatesNotificationsEnabled?: boolean;
|
||||||
achievementNotificationsEnabled?: boolean;
|
achievementNotificationsEnabled?: boolean;
|
||||||
friendRequestNotificationsEnabled?: boolean;
|
friendRequestNotificationsEnabled?: boolean;
|
||||||
showDownloadSpeedInMegabits?: boolean;
|
showDownloadSpeedInMegabytes?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ScreenState {
|
export interface ScreenState {
|
||||||
|
|||||||
Reference in New Issue
Block a user