mirror of
https://github.com/Luchexx/wacrm.git
synced 2026-11-02 17:29:45 +00:00
fix(i18n): use Settings.roles namespace in settings-overview
The identity card at the top of the Settings overview was calling
useTranslations('roles') (root-level) instead of useTranslations
('Settings.roles'). The root 'roles' namespace only exists in the
es-CO translation as a workaround added to mask this bug — in English
the chip rendered the raw keypath (e.g. 'roles.admin').
Aligns with invite-member-dialog.tsx:78 and members-tab.tsx:129,
which already use the 'Settings.roles' namespace.
Part of #375
This commit is contained in:
parent
b24aa794b5
commit
18b1b2943b
@ -40,7 +40,7 @@ export function SettingsOverview({
|
|||||||
useAuth();
|
useAuth();
|
||||||
const { mode, theme } = useTheme();
|
const { mode, theme } = useTheme();
|
||||||
const t = useTranslations('Settings.overview');
|
const t = useTranslations('Settings.overview');
|
||||||
const tRoles = useTranslations('roles');
|
const tRoles = useTranslations('Settings.roles');
|
||||||
const tSections = useTranslations('Settings.sections');
|
const tSections = useTranslations('Settings.sections');
|
||||||
|
|
||||||
const [counts, setCounts] = useState<OverviewCounts | null>(null);
|
const [counts, setCounts] = useState<OverviewCounts | null>(null);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user