i18n translation for modules

This commit is contained in:
Manuel Ruwe
2022-08-24 19:51:54 +02:00
parent 14924e4562
commit 4e7d3edb5f
26 changed files with 194 additions and 55 deletions

View File

@@ -15,24 +15,25 @@ import axios from 'axios';
import { NormalizedTorrent } from '@ctrl/shared-torrent';
import { useViewportSize } from '@mantine/hooks';
import { showNotification } from '@mantine/notifications';
import { useTranslation } from 'next-i18next';
import { IModule } from '../ModuleTypes';
import { useConfig } from '../../tools/state';
import { AddItemShelfButton } from '../../components/AppShelf/AddAppShelfItem';
import { useSetSafeInterval } from '../../tools/hooks/useSetSafeInterval';
import { humanFileSize } from '../../tools/humanFileSize';
import { useTranslation } from 'next-i18next';
export const DownloadsModule: IModule = {
title: 'Torrent',
description: 'Show the current download speed of supported services',
title: 'descriptor.name',
description: 'descriptor.description',
icon: Download,
component: DownloadComponent,
options: {
hidecomplete: {
name: 'Hide completed torrents',
name: 'descriptor.settings.hideComplete',
value: false,
},
},
translationNamespace: 'modules/downloads-module',
};
export default function DownloadComponent() {