mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 00:39:50 +03:00
new linting, make sure code is type safe
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import type { Translation } from '../i18n-types';
|
||||
|
||||
/* prettier-ignore */
|
||||
/* eslint-disable */
|
||||
|
||||
const de: Translation = {
|
||||
LANGUAGE: 'Sprache',
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { Translation } from '../i18n-types';
|
||||
|
||||
/* prettier-ignore */
|
||||
/* eslint-disable */
|
||||
|
||||
const en: Translation = {
|
||||
LANGUAGE: 'Language',
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import type { Locales, Formatters } from './i18n-types';
|
||||
import type { FormattersInitializer } from 'typesafe-i18n';
|
||||
|
||||
import type { Formatters, Locales } from './i18n-types';
|
||||
|
||||
export const initFormatters: FormattersInitializer<Locales, Formatters> = () => {
|
||||
const formatters: Formatters = {
|
||||
// add your formatter functions here
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { Translation } from '../i18n-types';
|
||||
|
||||
/* prettier-ignore */
|
||||
/* eslint-disable */
|
||||
|
||||
const fr: Translation = {
|
||||
LANGUAGE: 'Langue',
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { Translation } from '../i18n-types';
|
||||
|
||||
/* prettier-ignore */
|
||||
/* eslint-disable */
|
||||
|
||||
const it: Translation = {
|
||||
LANGUAGE: 'Lingua',
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { Translation } from '../i18n-types';
|
||||
|
||||
/* prettier-ignore */
|
||||
/* eslint-disable */
|
||||
|
||||
const nl: Translation = {
|
||||
LANGUAGE: 'Taal',
|
||||
@@ -99,7 +99,7 @@ const nl: Translation = {
|
||||
NUM_HOURS: '{num} {{uur|uren}}',
|
||||
NUM_MINUTES: '{num} {{minuut|minuten}}',
|
||||
APPLICATION_SETTINGS: 'Applicatieinstellingen',
|
||||
CUSTOMIZATIONS: 'Custom aanpassingen',
|
||||
CUSTOMIZATIONS: 'User Entities',
|
||||
APPLICATION_RESTARTING: 'EMS-ESP herstarten',
|
||||
INTERFACE_BOARD_PROFILE: 'Interface Apparaatprofiel',
|
||||
BOARD_PROFILE_TEXT: 'Selecteer een vooraf ingesteld apparaat profiel uit de lijst of kies Eigen om zelf uw hardware te configureren',
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { Translation } from '../i18n-types';
|
||||
|
||||
/* prettier-ignore */
|
||||
/* eslint-disable */
|
||||
|
||||
const no: Translation = {
|
||||
LANGUAGE: 'Språk',
|
||||
@@ -324,7 +324,12 @@ const no: Translation = {
|
||||
UNCHANGED: 'Unchanged', // TODO translate
|
||||
ALWAYS: 'Always', // TODO translate
|
||||
ACTIVITY: 'Activity', // TODO translate
|
||||
CONFIGURE: 'Configure {0}' // TODO translate
|
||||
CONFIGURE: 'Configure {0}', // TODO translate
|
||||
SYSTEM_MEMORY: 'System Memory', // TODO translate
|
||||
APPLICATION_SETTINGS_1: 'Modify EMS-ESP Application Settings', // TODO translate
|
||||
SECURITY_1: 'Add or remove users', // TODO translate
|
||||
UPLOAD_DOWNLOAD_1: 'Upload/Download Settings and Firmware', // TODO translate
|
||||
CUSTOMIZE: 'Customize' // TODO translate
|
||||
};
|
||||
|
||||
export default no;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { BaseTranslation } from '../i18n-types';
|
||||
|
||||
/* prettier-ignore */
|
||||
/* eslint-disable */
|
||||
|
||||
const pl: BaseTranslation = {
|
||||
LANGUAGE: 'Język',
|
||||
@@ -287,8 +287,8 @@ const pl: BaseTranslation = {
|
||||
NETWORK_SUBNET: 'Maska podsieci',
|
||||
NETWORK_DNS: 'Serwery DNS',
|
||||
ADDRESS_OF: 'Adres {0}',
|
||||
ADMIN: 'Użytkownik "administrator".',
|
||||
GUEST: 'Użytkownik "gość".',
|
||||
ADMIN: 'Administrator',
|
||||
GUEST: 'Gość',
|
||||
NEW: 'nowe{{go|j|}}',
|
||||
NEW_NAME_OF: 'Nowa nazwa {0}',
|
||||
ENTITY: 'encji',
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { Translation } from '../i18n-types';
|
||||
|
||||
/* prettier-ignore */
|
||||
/* eslint-disable */
|
||||
|
||||
const sk: Translation = {
|
||||
LANGUAGE: 'Jazyk',
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { Translation } from '../i18n-types';
|
||||
|
||||
/* prettier-ignore */
|
||||
/* eslint-disable */
|
||||
|
||||
const sv: Translation = {
|
||||
LANGUAGE: 'Språk',
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { Translation } from '../i18n-types';
|
||||
|
||||
/* prettier-ignore */
|
||||
/* eslint-disable */
|
||||
|
||||
const tr: Translation = {
|
||||
LANGUAGE: 'Dil',
|
||||
|
||||
Reference in New Issue
Block a user