Skip to content

Commit

Permalink
Add translations for Spotify page
Browse files Browse the repository at this point in the history
  • Loading branch information
isyuricunha committed May 6, 2024
1 parent 358f5a8 commit 244cede
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
7 changes: 4 additions & 3 deletions pages/spotify.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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')}
</Heading>
<Text textAlign="center" pt="5">
*Top Songs and Artists over the past 6 months
{t('topSongsArtists')}
</Text>
<Flex justifyContent="center">
<Button
Expand All @@ -137,7 +138,7 @@ function Spotify({ data, error }: SpotifyProps): React.ReactElement {
</Icon>
}
>
View My Profile
{t('spotifyViewProfile')}
</Button>
</Flex>
</HeadingFade>
Expand Down
6 changes: 5 additions & 1 deletion src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
6 changes: 5 additions & 1 deletion src/locales/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

1 comment on commit 244cede

@vercel
Copy link

@vercel vercel bot commented on 244cede May 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.