feat(i18n): implement localization using LinguiJS

This commit is contained in:
Amruth Pillai
2023-11-10 09:07:47 +01:00
parent 13d91411e3
commit 6ad4358d70
108 changed files with 4631 additions and 798 deletions

View File

@ -1,3 +1,4 @@
import { t } from "@lingui/macro";
import { Book, SignOut } from "@phosphor-icons/react";
import { Button } from "@reactive-resume/ui";
import { Link } from "react-router-dom";
@ -14,12 +15,12 @@ export const HeroCTA = () => {
return (
<>
<Button asChild size="lg">
<Link to="/dashboard">Go to Dashboard</Link>
<Link to="/dashboard">{t`Go to Dashboard`}</Link>
</Button>
<Button size="lg" variant="link" onClick={() => logout()}>
<SignOut className="mr-3" />
Logout
{t`Logout`}
</Button>
</>
);
@ -29,13 +30,13 @@ export const HeroCTA = () => {
return (
<>
<Button asChild size="lg">
<Link to="/auth/login">Get started</Link>
<Link to="/auth/login">{t`Get Started`}</Link>
</Button>
<Button asChild size="lg" variant="link">
<a href="https://docs.rxresu.me" target="_blank" rel="noopener noreferrer nofollow">
<Book className="mr-3" />
Learn more
{t`Learn more`}
</a>
</Button>
</>