From 85308e52a7235a32c6619fae67c127332337ad6b Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Fri, 2 Sep 2022 15:33:42 +0200 Subject: [PATCH] formatting, add missing text --- interface/src/i18n/de/index.ts | 15 ++++++++------- interface/src/i18n/en/index.ts | 17 +++++++++-------- interface/src/i18n/i18n-types.ts | 8 ++++++++ interface/src/i18n/nl/index.ts | 17 +++++++++-------- interface/src/project/DashboardData.tsx | 4 ++-- 5 files changed, 36 insertions(+), 25 deletions(-) diff --git a/interface/src/i18n/de/index.ts b/interface/src/i18n/de/index.ts index 72139a574..d677e9626 100644 --- a/interface/src/i18n/de/index.ts +++ b/interface/src/i18n/de/index.ts @@ -27,7 +27,8 @@ const de: Translation = { ENTITIES: 'Entitäten', REFRESH: 'Aktualisieren', EXPORT: 'Exportieren', - BRAND: "Marke", + DEVICE_DETAILS: 'Geräte Details', + BRAND: 'Marke', ENTITY_NAME: 'Entitätsname', VALUE: 'Wert', SHOW_FAV: 'nur Favoriten anzeigen', @@ -46,12 +47,12 @@ const de: Translation = { ACCESS_DENIED: 'Zugriff abgelehnt', ANALOG_SENSOR: 'Analogsensor{post}', ANALOG_SENSORS: 'Analogsensoren', - OFFSET: "Addition", - FACTOR: "Faktor", - FREQ: "Frequenz", - STARTVALUE: "Startwert", - WARN_GPIO: "Warnung: Vorsicht bei der korrekten Wahl des GPIO!", - EDIT: "Editiere", + OFFSET: 'Addition', + FACTOR: 'Faktor', + FREQ: 'Frequenz', + STARTVALUE: 'Startwert', + WARN_GPIO: 'Warnung: Vorsicht bei der korrekten Wahl des GPIO!', + EDIT: 'Editiere', TEMP_SENSOR: 'Temperatursensor{post}', TEMP_SENSORS: 'Temperatursensoren', WRITE_COMMAND: 'Befehl schreiben {cmd}', diff --git a/interface/src/i18n/en/index.ts b/interface/src/i18n/en/index.ts index d896a0575..369d0efc9 100644 --- a/interface/src/i18n/en/index.ts +++ b/interface/src/i18n/en/index.ts @@ -27,7 +27,8 @@ const en: BaseTranslation = { ENTITIES: 'Entities', REFRESH: 'Refresh', EXPORT: 'Export', - BRAND: "Brand", + DEVICE_DETAILS: 'Device Details', + BRAND: 'Brand', ENTITY_NAME: 'Entity Name', VALUE: 'Value', SHOW_FAV: 'only show favorites', @@ -46,12 +47,12 @@ const en: BaseTranslation = { ACCESS_DENIED: 'Access Denied', ANALOG_SENSOR: 'Analog Sensor{post}', ANALOG_SENSORS: 'Analog Sensors', - OFFSET: "Offset", - FACTOR: "Factor", - FREQ: "Frequency", - STARTVALUE: "Start value", - WARN_GPIO: "Warning: be careful when assigning a GPIO!", - EDIT: "Edit", + OFFSET: 'Offset', + FACTOR: 'Factor', + FREQ: 'Frequency', + STARTVALUE: 'Start value', + WARN_GPIO: 'Warning: be careful when assigning a GPIO!', + EDIT: 'Edit', TEMP_SENSOR: 'Temperature Sensor{post}', TEMP_SENSORS: 'Temperature Sensors', WRITE_COMMAND: 'Write command {cmd}', @@ -123,7 +124,7 @@ const en: BaseTranslation = { SECONDS: 'seconds', MINUTES: 'minutes', RESTART: 'Restart', - HOURS: "hours", + HOURS: 'hours', RESTART_TEXT: 'EMS-ESP needs to be restarted to apply changed system settings', COMMAND: 'Command', CUSTOMIZATIONS_RESTART: 'All customizations have been removed. Restarting...', diff --git a/interface/src/i18n/i18n-types.ts b/interface/src/i18n/i18n-types.ts index f3c32fe8a..b33313920 100644 --- a/interface/src/i18n/i18n-types.ts +++ b/interface/src/i18n/i18n-types.ts @@ -120,6 +120,10 @@ type RootTranslation = { * Export */ EXPORT: string + /** + * Device Details + */ + DEVICE_DETAILS: string /** * Brand */ @@ -1123,6 +1127,10 @@ export type TranslationFunctions = { * Export */ EXPORT: () => LocalizedString + /** + * Device Details + */ + DEVICE_DETAILS: () => LocalizedString /** * Brand */ diff --git a/interface/src/i18n/nl/index.ts b/interface/src/i18n/nl/index.ts index d896a0575..bd4b8c5b7 100644 --- a/interface/src/i18n/nl/index.ts +++ b/interface/src/i18n/nl/index.ts @@ -27,7 +27,8 @@ const en: BaseTranslation = { ENTITIES: 'Entities', REFRESH: 'Refresh', EXPORT: 'Export', - BRAND: "Brand", + BRAND: 'Brand', + DEVICE_DETAILS: 'Device Details', ENTITY_NAME: 'Entity Name', VALUE: 'Value', SHOW_FAV: 'only show favorites', @@ -46,12 +47,12 @@ const en: BaseTranslation = { ACCESS_DENIED: 'Access Denied', ANALOG_SENSOR: 'Analog Sensor{post}', ANALOG_SENSORS: 'Analog Sensors', - OFFSET: "Offset", - FACTOR: "Factor", - FREQ: "Frequency", - STARTVALUE: "Start value", - WARN_GPIO: "Warning: be careful when assigning a GPIO!", - EDIT: "Edit", + OFFSET: 'Offset', + FACTOR: 'Factor', + FREQ: 'Frequency', + STARTVALUE: 'Start value', + WARN_GPIO: 'Warning: be careful when assigning a GPIO!', + EDIT: 'Edit', TEMP_SENSOR: 'Temperature Sensor{post}', TEMP_SENSORS: 'Temperature Sensors', WRITE_COMMAND: 'Write command {cmd}', @@ -123,7 +124,7 @@ const en: BaseTranslation = { SECONDS: 'seconds', MINUTES: 'minutes', RESTART: 'Restart', - HOURS: "hours", + HOURS: 'hours', RESTART_TEXT: 'EMS-ESP needs to be restarted to apply changed system settings', COMMAND: 'Command', CUSTOMIZATIONS_RESTART: 'All customizations have been removed. Restarting...', diff --git a/interface/src/project/DashboardData.tsx b/interface/src/project/DashboardData.tsx index 0697685d8..bce75650d 100644 --- a/interface/src/project/DashboardData.tsx +++ b/interface/src/project/DashboardData.tsx @@ -639,7 +639,7 @@ const DashboardData: FC = () => { if (coreData && coreData.devices.length > 0 && deviceDialog !== -1) { return ( setDeviceDialog(-1)}> - Device Details + {LL.DEVICE_DETAILS()} @@ -667,7 +667,7 @@ const DashboardData: FC = () => {