fix: get correct language on selector through i18n and add music section on sidebar

This commit is contained in:
GivFNZ 2025-03-22 17:51:41 -03:00
parent e5870cc115
commit aa9873657d
No known key found for this signature in database
GPG Key ID: 63DD92181B575322
4 changed files with 7 additions and 4 deletions

View File

@ -2,7 +2,7 @@ export default function Footer() {
return ( return (
<footer> <footer>
<p>© 2025 GivFNZ</p> <p>© 2025 GivFNZ</p>
<p>Version: 1.2.1</p> <p>Version: 1.2.3</p>
</footer> </footer>
) )
} }

View File

@ -26,7 +26,7 @@ export default function Header() {
<NavLink href="#about">{t("about")}</NavLink> <NavLink href="#about">{t("about")}</NavLink>
<NavLink href="#contact">{t("contact")}</NavLink> <NavLink href="#contact">{t("contact")}</NavLink>
<NavLink href="#projects">{t("projects")}</NavLink> <NavLink href="#projects">{t("projects")}</NavLink>
<LanguageSelector onChange={changeLanguage}> <LanguageSelector onChange={changeLanguage} defaultValue={i18n.language.toLowerCase()}>
<option value="en-us"> <option value="en-us">
English English
</option> </option>
@ -42,6 +42,7 @@ export default function Header() {
<DrawerItem href="#about">{t("about")}</DrawerItem> <DrawerItem href="#about">{t("about")}</DrawerItem>
<DrawerItem href="#contact">{t("contact")}</DrawerItem> <DrawerItem href="#contact">{t("contact")}</DrawerItem>
<DrawerItem href="#projects">{t("projects")}</DrawerItem> <DrawerItem href="#projects">{t("projects")}</DrawerItem>
<DrawerItem href="#music">{t("music")}</DrawerItem>
</DrawerContainer> </DrawerContainer>
} }
</HashRouter> </HashRouter>

View File

@ -10,5 +10,6 @@
"send": "Send", "send": "Send",
"myLast": "My Last.FM Status", "myLast": "My Last.FM Status",
"myLastDescription": "Take a look on my last played song:", "myLastDescription": "Take a look on my last played song:",
"lastLink": "Check this song page on Last.FM" "lastLink": "Check this song page on Last.FM",
"music": "Music"
} }

View File

@ -10,5 +10,6 @@
"send": "Enviar", "send": "Enviar",
"myLast": "Meu status do Last.FM", "myLast": "Meu status do Last.FM",
"myLastDescription": "Dê uma olhada na música que eu estava ouvindo:", "myLastDescription": "Dê uma olhada na música que eu estava ouvindo:",
"lastLink": "Clique aqui para ver a música no Last.FM" "lastLink": "Clique aqui para ver a música no Last.FM",
"music": "Música"
} }