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

@@ -7,16 +7,17 @@ import { IModule } from '../ModuleTypes';
import { useSetSafeInterval } from '../../tools/hooks/useSetSafeInterval';
export const DateModule: IModule = {
title: 'Date',
description: 'Show the current time and date in a card',
title: 'descriptor.name',
description: 'descriptor.description',
icon: Clock,
component: DateComponent,
options: {
full: {
name: 'Display full time (24-hour)',
name: 'descriptor.settings.display24HourFormat.label',
value: true,
},
},
translationNamespace: 'modules/date-module',
};
export default function DateComponent(props: any) {