mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-12-29 16:16:02 +00:00
chore: translate userTypes
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 = (
|
||||
|
||||
Reference in New Issue
Block a user