Files
it-tools/src/tools/translator/index.ts
T
Dark_Phoenix_andShareVB 64d06e5a1f feat(Sidebar): added backgroundcolor for active category and scroll-to logic for active tool (#309)
* Added color to component group when a tool inside that group is currently selected, and changed resistor-calculator icon from a hammer to the omega icon

* - Added scrollto functionality for active tool in sidebar
- Improved icon diversity and correctness for multiple tools

* - Changed scrollto behaviour to trigger on mount and on url path change
- Restored the IT-Tools banner to stick to the top of the screen while scrolling

* Swapped nextTick for setTimeout to fix a delay issue where it didn't scroll to the active tool

* Reduced bottom padding of sidebar to fix an issue where the sidebar was scrollable with all categories closed

Fix #298

---------

Co-authored-by: ShareVB <sharevb@gmail.com>
2026-02-14 10:04:32 +01:00

16 lines
511 B
TypeScript

import { translate as t } from '@/plugins/i18n.plugin';
import { Language } from '@vicons/tabler';
import { defineTool } from '../tool';
export const tool = defineTool({
name: t('tools.translator.title'),
path: '/translator',
description: t('tools.translator.description'),
keywords: ['translate', 'language'],
component: () => import('./translator.vue'),
icon: Language,
createdAt: new Date('2025-08-15'),
category: 'Text',
externAccessDescription: t('tools.translator.externalAccess'),
});