Fix: Updated EN and RU translations to use correct keywords

This commit is contained in:
Moyasee
2025-09-17 12:35:46 +03:00
parent 291935a1bc
commit af1b3d4535
4 changed files with 20 additions and 20 deletions

View File

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

View File

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