chore: translate userTypes

This commit is contained in:
Ibrahima G. Coulibaly
2025-07-22 19:47:09 +01:00
parent 6fddf8ec42
commit 56e0f1696c
66 changed files with 81 additions and 75 deletions

View File

@@ -4,7 +4,7 @@ import { IconifyIcon } from '@iconify/react';
import { FullI18nKey, validNamespaces } from '../i18n';
import { useTranslation } from 'react-i18next';
export type UserType = 'General Users' | 'Developers' | 'CyberSec';
export type UserType = 'generalUsers' | 'developers';
export interface ToolMeta {
path: string;

View File

@@ -138,14 +138,14 @@ const categoriesConfig: {
];
const CATEGORIES_USER_TYPES_MAPPINGS: Partial<Record<ToolCategory, UserType>> =
{
xml: 'Developers',
csv: 'Developers',
json: 'Developers',
gif: 'General Users',
png: 'General Users',
'image-generic': 'General Users',
video: 'General Users',
audio: 'General Users'
xml: 'developers',
csv: 'developers',
json: 'developers',
gif: 'generalUsers',
png: 'generalUsers',
'image-generic': 'generalUsers',
video: 'generalUsers',
audio: 'generalUsers'
};
// Filter tools by user types
export const filterToolsByUserTypes = (