fix: typo

This commit is contained in:
Hachi-R
2025-04-12 15:52:18 -03:00
parent 975eec96be
commit bd018399fb
5 changed files with 10 additions and 10 deletions

View File

@@ -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",

View File

@@ -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",

View File

@@ -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);
}; };

View File

@@ -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,
}) })
} }
/> />

View File

@@ -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 {