mirror of
https://github.com/Unkn0wnCat/KevinK.dev.js.git
synced 2025-06-18 10:32:04 +02:00
Rework translations
This commit is contained in:
parent
e4ed73c809
commit
de5056c440
15 changed files with 171 additions and 148 deletions
|
@ -24,7 +24,7 @@ export default function LanguageSwitcher() {
|
|||
{languages.map((lng) => (
|
||||
<li key={lng}>
|
||||
<Link to={originalPath} language={lng}>
|
||||
<Trans>{lng}</Trans>
|
||||
<Trans>language.{lng}.name</Trans>
|
||||
</Link>
|
||||
</li>
|
||||
))}
|
||||
|
|
|
@ -88,21 +88,21 @@ const Navigation = ({ isHome }) => {
|
|||
to="/about"
|
||||
activeClassName={styles.active}
|
||||
>
|
||||
<Trans>about</Trans>
|
||||
<Trans>about.title</Trans>
|
||||
</Link>
|
||||
<Link
|
||||
id="navBtnProjects"
|
||||
to="/projects"
|
||||
activeClassName={styles.active}
|
||||
>
|
||||
<Trans>projects</Trans>
|
||||
<Trans>project.plural</Trans>
|
||||
</Link>
|
||||
<Link
|
||||
id="navBtnSocial"
|
||||
to="/social"
|
||||
activeClassName={styles.active}
|
||||
>
|
||||
<Trans>social</Trans>
|
||||
<Trans>social.title</Trans>
|
||||
</Link>
|
||||
<Link
|
||||
id="navBtnBlog"
|
||||
|
|
|
@ -24,14 +24,14 @@ const OffScreenNav = ({ active, close }) => {
|
|||
<Trans>menu</Trans>
|
||||
</span>
|
||||
<Link to="/" activeClassName={styles.active}>
|
||||
<Trans>home</Trans>
|
||||
<Trans>home.title</Trans>
|
||||
</Link>
|
||||
<Link
|
||||
id="osnavBtnProjects"
|
||||
to="/about"
|
||||
activeClassName={styles.active}
|
||||
>
|
||||
<Trans>about</Trans>
|
||||
<Trans>about.title</Trans>
|
||||
</Link>
|
||||
<Link
|
||||
id="osnavBtnProjects"
|
||||
|
|
|
@ -22,7 +22,7 @@ function SEO({ description, meta, title, speakable, image, children }) {
|
|||
`
|
||||
);
|
||||
|
||||
const metaDescription = description || t("siteDescription");
|
||||
const metaDescription = description || t("site.description");
|
||||
|
||||
const siteMeta = useSiteMetadata();
|
||||
const location = useLocation();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue