feat: web i18n (#1286)

This commit is contained in:
David Nguyen
2024-08-27 20:34:39 +09:00
committed by GitHub
parent 0829311214
commit 75c8772a02
294 changed files with 14846 additions and 2229 deletions

View File

@ -5,6 +5,7 @@ import type { HTMLAttributes } from 'react';
import Link from 'next/link';
import { useParams, usePathname } from 'next/navigation';
import { Trans } from '@lingui/macro';
import { Braces, CreditCard, Globe2Icon, Key, User, Webhook } from 'lucide-react';
import { useFeatureFlags } from '@documenso/lib/client-only/providers/feature-flag';
@ -47,7 +48,7 @@ export const MobileNav = ({ className, ...props }: MobileNavProps) => {
)}
>
<User className="mr-2 h-5 w-5" />
General
<Trans>General</Trans>
</Button>
</Link>
@ -61,7 +62,7 @@ export const MobileNav = ({ className, ...props }: MobileNavProps) => {
)}
>
<Globe2Icon className="mr-2 h-5 w-5" />
Public Profile
<Trans>Public Profile</Trans>
</Button>
</Link>
)}
@ -75,7 +76,7 @@ export const MobileNav = ({ className, ...props }: MobileNavProps) => {
)}
>
<Key className="mr-2 h-5 w-5" />
Members
<Trans>Members</Trans>
</Button>
</Link>
@ -85,7 +86,7 @@ export const MobileNav = ({ className, ...props }: MobileNavProps) => {
className={cn('w-full justify-start', pathname?.startsWith(tokensPath) && 'bg-secondary')}
>
<Braces className="mr-2 h-5 w-5" />
API Tokens
<Trans>API Tokens</Trans>
</Button>
</Link>
@ -98,7 +99,7 @@ export const MobileNav = ({ className, ...props }: MobileNavProps) => {
)}
>
<Webhook className="mr-2 h-5 w-5" />
Webhooks
<Trans>Webhooks</Trans>
</Button>
</Link>
@ -112,7 +113,7 @@ export const MobileNav = ({ className, ...props }: MobileNavProps) => {
)}
>
<CreditCard className="mr-2 h-5 w-5" />
Billing
<Trans>Billing</Trans>
</Button>
</Link>
)}