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:
Fabian Andres Parra Sanchez 2026-07-20 07:33:50 -05:00
parent b24aa794b5
commit 18b1b2943b

View File

@ -40,7 +40,7 @@ export function SettingsOverview({
useAuth();
const { mode, theme } = useTheme();
const t = useTranslations('Settings.overview');
const tRoles = useTranslations('roles');
const tRoles = useTranslations('Settings.roles');
const tSections = useTranslations('Settings.sections');
const [counts, setCounts] = useState<OverviewCounts | null>(null);