mirror of
https://github.com/Luchexx/wacrm.git
synced 2026-11-02 09:19:51 +00:00
feat(i18n): translate settings page titles
This commit is contained in:
parent
9357fd9ec9
commit
7cb019081b
@ -1130,6 +1130,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Settings": {
|
"Settings": {
|
||||||
|
"pageTitle": "Settings",
|
||||||
|
"pageDesc": "Everything in one place — your account and your workspace. Pick a section to manage it.",
|
||||||
"overview": {
|
"overview": {
|
||||||
"notSetup": "Not set up yet",
|
"notSetup": "Not set up yet",
|
||||||
"connected": "Connected",
|
"connected": "Connected",
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
import { useMemo, type ReactNode } from 'react';
|
import { useMemo, type ReactNode } from 'react';
|
||||||
import { useRouter, useSearchParams } from 'next/navigation';
|
import { useRouter, useSearchParams } from 'next/navigation';
|
||||||
|
import { useTranslations } from 'next-intl';
|
||||||
|
|
||||||
import { useAuth } from '@/hooks/use-auth';
|
import { useAuth } from '@/hooks/use-auth';
|
||||||
import { useTheme } from '@/hooks/use-theme';
|
import { useTheme } from '@/hooks/use-theme';
|
||||||
@ -26,6 +27,7 @@ export default function SettingsPage() {
|
|||||||
const searchParams = useSearchParams();
|
const searchParams = useSearchParams();
|
||||||
const { defaultCurrency } = useAuth();
|
const { defaultCurrency } = useAuth();
|
||||||
const { mode } = useTheme();
|
const { mode } = useTheme();
|
||||||
|
const t = useTranslations('Settings');
|
||||||
|
|
||||||
// The URL (`?tab=`) is the single source of truth for the active
|
// The URL (`?tab=`) is the single source of truth for the active
|
||||||
// section — deep-linkable, and it keeps the existing links in the
|
// section — deep-linkable, and it keeps the existing links in the
|
||||||
@ -67,11 +69,10 @@ export default function SettingsPage() {
|
|||||||
<div>
|
<div>
|
||||||
<div>
|
<div>
|
||||||
<h1 className="text-2xl font-bold tracking-tight text-foreground">
|
<h1 className="text-2xl font-bold tracking-tight text-foreground">
|
||||||
Settings
|
{t('pageTitle')}
|
||||||
</h1>
|
</h1>
|
||||||
<p className="mt-1 text-sm text-muted-foreground">
|
<p className="mt-1 text-sm text-muted-foreground">
|
||||||
Everything in one place — your account and your workspace. Pick a
|
{t('pageDesc')}
|
||||||
section to manage it.
|
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user