From 244cedef203cde60acb501af5f8e29d7990b6559 Mon Sep 17 00:00:00 2001 From: Yuri Cunha Date: Mon, 6 May 2024 00:15:05 -0300 Subject: [PATCH] Add translations for Spotify page --- pages/spotify.tsx | 7 ++++--- src/locales/en.json | 6 +++++- src/locales/pt.json | 6 +++++- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/pages/spotify.tsx b/pages/spotify.tsx index f5c0e2c..c2e6357 100644 --- a/pages/spotify.tsx +++ b/pages/spotify.tsx @@ -19,6 +19,7 @@ import { import { NextSeo } from 'next-seo'; import { useQuery } from 'react-query'; import Head from 'next/head'; +import { t } from 'i18next'; interface ListFadeProps { children: any; @@ -115,10 +116,10 @@ function Spotify({ data, error }: SpotifyProps): React.ReactElement { fontSize={{ base: `3xl`, sm: `4xl`, md: `5xl`, lg: `6xl` }} textAlign="center" > - Here's what I'm listening to at the moment + {t('spotifyWhatListening')} - *Top Songs and Artists over the past 6 months + {t('topSongsArtists')} diff --git a/src/locales/en.json b/src/locales/en.json index 1eea4d9..742fe17 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -55,5 +55,9 @@ "research": "My research", "researchDescription": "A very small selection of things I have duckducked about a lot. I am always learning and researching new things.", - "viewPaper": "View Paper" + "viewPaper": "View Paper", + + "spotifyWhatListening": "Here's what I'm listening to at the moment", + "spotifytopSongsArtists": "*Top Songs and Artists over the past 6 months", + "spotifyViewProfile": "View My Profile on Spotify" } diff --git a/src/locales/pt.json b/src/locales/pt.json index 33a7b9b..cf2c488 100644 --- a/src/locales/pt.json +++ b/src/locales/pt.json @@ -55,5 +55,9 @@ "research": "Minha pesquisa", "researchDescription": "Uma pequena seleção de coisas sobre as quais duckducked (pesquisei) muito. Estou sempre aprendendo e pesquisando coisas novas.", - "viewPaper": "Ver Artigo" + "viewPaper": "Ver Artigo", + + "spotifyOucaAgora": "Aqui está o que estou ouvindo no momento", + "spotifyTopSongsArtists": "*Top Músicas e Artistas nos últimos 6 meses", + "spotifyViewProfile": "Ver Meu Perfil no Spotify" }