mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-21 10:03:56 +00:00
Fix: Updated EN and RU translations to use correct keywords
This commit is contained in:
@@ -69,11 +69,11 @@ export function ChangeGamePlaytimeModal({
|
||||
setIsSubmitting(true);
|
||||
try {
|
||||
await changePlaytime(totalSeconds);
|
||||
onSuccess?.(t("change_playtime_success"));
|
||||
onSuccess?.(t("update_playtime_success"));
|
||||
onClose();
|
||||
} catch (error) {
|
||||
onError?.(t("change_playtime_error"));
|
||||
} finally {
|
||||
console.log(error);
|
||||
onError?.(t("update_playtime_error")); } finally {
|
||||
setIsSubmitting(false);
|
||||
}
|
||||
};
|
||||
@@ -112,8 +112,8 @@ export function ChangeGamePlaytimeModal({
|
||||
<Modal
|
||||
visible={visible}
|
||||
onClose={onClose}
|
||||
title={t("change_playtime_title")}
|
||||
description={t("change_playtime_description", {
|
||||
title={t("update_playtime_title")}
|
||||
description={t("update_playtime_description", {
|
||||
game: game.title,
|
||||
})}
|
||||
>
|
||||
@@ -154,7 +154,7 @@ export function ChangeGamePlaytimeModal({
|
||||
theme="outline"
|
||||
disabled={!isValid || isSubmitting}
|
||||
>
|
||||
{t("change_playtime")}
|
||||
{t("update_playtime")}
|
||||
</Button>
|
||||
|
||||
<Button onClick={onClose} theme="primary">
|
||||
|
||||
@@ -238,9 +238,9 @@ export function GameOptionsModal({
|
||||
playtimeInSeconds
|
||||
);
|
||||
await updateGame();
|
||||
showSuccessToast(t("change_playtime_success"));
|
||||
showSuccessToast(t("update_playtime_success"));
|
||||
} catch (error) {
|
||||
showErrorToast(t("change_playtime_error"));
|
||||
showErrorToast(t("update_playtime_error"));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -503,7 +503,7 @@ export function GameOptionsModal({
|
||||
onClick={() => setShowChangePlaytimeModal(true)}
|
||||
theme="danger"
|
||||
>
|
||||
{t("change_game_playtime")}
|
||||
{t("update_game_playtime")}
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
|
||||
Reference in New Issue
Block a user