From 1997dbcd5d3d1123eb5e32429f8795bd8aba29b2 Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Fri, 14 Jun 2024 20:37:45 -0300 Subject: [PATCH] update text --- src/locales/pt/translation.json | 2 +- src/renderer/src/pages/profile/profile-content.tsx | 13 +++++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/locales/pt/translation.json b/src/locales/pt/translation.json index 0cfbc9f0..8a2d7c6a 100644 --- a/src/locales/pt/translation.json +++ b/src/locales/pt/translation.json @@ -230,6 +230,6 @@ "amount_hours": "{{amount}} horas", "amount_minutes": "{{amount}} minutos", "play_time": "Jogado por {{amount}}", - "last_time_played": "Jogou por Ășltimo {{period}}" + "last_time_played": "Jogou {{period}}" } } diff --git a/src/renderer/src/pages/profile/profile-content.tsx b/src/renderer/src/pages/profile/profile-content.tsx index 1bb3c90a..ef7b053c 100644 --- a/src/renderer/src/pages/profile/profile-content.tsx +++ b/src/renderer/src/pages/profile/profile-content.tsx @@ -46,7 +46,6 @@ export const ProfileContent = ({ userProfile }: ProfileContentProps) => { navigate(buildGameDetailsPath(game)); }; - console.log(userProfile); return ( <>
{
-

Feed

+

Atividade

{

{game.title}

- {formatDistance(game.lastTimePlayed!, new Date(), { - addSuffix: true, + {t("last_time_played", { + period: formatDistance( + game.lastTimePlayed!, + new Date(), + { + addSuffix: true, + } + ), })}