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

@@ -19,20 +19,21 @@ import { IModule } from '../ModuleTypes';
import { WeatherResponse } from './WeatherInterface';
export const WeatherModule: IModule = {
title: 'Weather',
description: 'Look up the current weather in your location',
title: 'descriptor.name',
description: 'descriptor.description',
icon: Sun,
component: WeatherComponent,
options: {
freedomunit: {
name: 'Display in Fahrenheit',
name: 'descriptor.settings.displayInFahrenheit.label',
value: false,
},
location: {
name: 'Current location',
name: 'descriptor.settings.location.label',
value: 'Paris',
},
},
translationNamespace: 'modules/weather-module',
};
// 0 Clear sky