translate dashboard status

This commit is contained in:
Proddy
2022-08-25 15:50:23 +02:00
parent 1a4ce643fc
commit 1f8e6cc82b
10 changed files with 361 additions and 74 deletions

View File

@@ -4,6 +4,7 @@ const de: Translation = {
LANGUAGE: 'Sprache',
IS_REQUIRED: 'ist nötig',
SIGN_IN: 'Einloggen',
SIGN_OUT: 'Ausloggen',
USERNAME: 'Nutzername',
PASSWORD: 'Passwort',
DASHBOARD: 'Armaturenbrett',
@@ -38,12 +39,36 @@ const de: Translation = {
REMOVE: 'Entfernen',
PROBLEM_UPDATING: 'Problem beim Aktualisieren',
ACCESS_DENIED: 'Zugriff abgelehnt',
ANALOG_SENSOR: 'Analoger Sensor {cmd}',
TEMP_SENSOR: 'Temperatursensor {cmd}',
ANALOG_SENSOR: 'Analoger Sensor{post}',
TEMP_SENSOR: 'Temperatursensor{post}',
WRITE_COMMAND: 'Befehl schreiben {cmd}',
EMS_BUS_WARNING:
'EMS-Bus getrennt. Wenn diese Warnung nach einigen Sekunden immer noch besteht, überprüfen Sie bitte die Einstellungen und das Board-Profil',
EMS_BUS_SCANNING: 'Scannen nach EMS devices...'
EMS_BUS_SCANNING: 'Scannen nach EMS devices...',
CONNECTED: 'in Verbindung gebracht',
TX_ISSUES: 'Tx-Probleme - versuchen Sie einen anderen Tx-Modus',
DISCONNECTED: 'Getrennt',
SCANNING: 'Suche nach Geräten...',
EMS_SCAN: 'Möchten Sie wirklich einen vollständigen Gerätescan des EMS-Busses starten?',
EMS_BUS_STATUS: 'EMS Bus Status',
ACTIVE_DEVICES: 'Aktive Geräte und Sensoren',
DEVICE: 'Device',
SUCCESS: 'ERFOLG',
FAIL: 'SCHEITERN',
QUALITY: 'QUALITÄT',
SCAN_DEVICES: 'Nach neuen Geräten suchen',
EMS_BUS_STATUS_TITLE: 'EMS Bus und Aktivitätsstatus',
SCAN: 'Scan',
STATUS_NAMES: [
'EMS Telegramme erhalten (Rx)',
'EMS Liest (Tx)',
'EMS Schreibt (Tx)',
'Temperatursensor liest',
'Analoger Sensor liest',
'MQTT Veröffentlicht',
'API Aufrufe',
'Syslog Mitteilungen'
]
};
export default de;

View File

@@ -4,6 +4,7 @@ const en: BaseTranslation = {
LANGUAGE: 'Language',
IS_REQUIRED: 'is required',
SIGN_IN: 'Sign In',
SIGN_OUT: 'Sign Out',
USERNAME: 'Username',
PASSWORD: 'Password',
DASHBOARD: 'Dashboard',
@@ -38,12 +39,36 @@ const en: BaseTranslation = {
REMOVE: 'Remove',
PROBLEM_UPDATING: 'Problem updating',
ACCESS_DENIED: 'Access Denied',
ANALOG_SENSOR: 'Analog Sensor {cmd}',
TEMP_SENSOR: 'Temperature Sensor {cmd}',
ANALOG_SENSOR: 'Analog Sensor{post}',
TEMP_SENSOR: 'Temperature Sensor{post}',
WRITE_COMMAND: 'Write command {cmd}',
EMS_BUS_WARNING:
'EMS bus disconnected. If this warning still persists after a few seconds please check settings and board profile',
EMS_BUS_SCANNING: 'Scanning for EMS devices...'
EMS_BUS_SCANNING: 'Scanning for EMS devices...',
CONNECTED: 'Connected',
TX_ISSUES: 'Tx issues - try a different Tx Mode',
DISCONNECTED: 'Disconnected',
SCANNING: 'Scanning for devices...',
EMS_SCAN: 'Are you sure you want to initiate a full device scan of the EMS bus?',
EMS_BUS_STATUS: 'EMS Bus Status',
ACTIVE_DEVICES: 'Active Devices & Sensors',
DEVICE: 'Device',
SUCCESS: 'SUCCESS',
FAIL: 'FAIL',
QUALITY: 'QUALITY',
SCAN_DEVICES: 'Scan for new devices',
EMS_BUS_STATUS_TITLE: 'EMS Bus & Activity Status',
SCAN: 'Scan',
STATUS_NAMES: [
'EMS Telegrams Received (Rx)',
'EMS Reads (Tx)',
'EMS Writes (Tx)',
'Temperature Sensor Reads',
'Analog Sensor Reads',
'MQTT Publishes',
'API Calls',
'Syslog Messages'
]
};
export default en;

View File

@@ -26,6 +26,10 @@ type RootTranslation = {
* Sign In
*/
SIGN_IN: string
/**
* Sign Out
*/
SIGN_OUT: string
/**
* Username
*/
@@ -164,15 +168,15 @@ type RootTranslation = {
*/
ACCESS_DENIED: string
/**
* Analog Sensor {cmd}
* @param {unknown} cmd
* Analog Sensor{post}
* @param {unknown} post
*/
ANALOG_SENSOR: RequiredParams<'cmd'>
ANALOG_SENSOR: RequiredParams<'post'>
/**
* Temperature Sensor {cmd}
* @param {unknown} cmd
* Temperature Sensor{post}
* @param {unknown} post
*/
TEMP_SENSOR: RequiredParams<'cmd'>
TEMP_SENSOR: RequiredParams<'post'>
/**
* Write command {cmd}
* @param {unknown} cmd
@@ -186,6 +190,96 @@ type RootTranslation = {
* Scanning for EMS devices...
*/
EMS_BUS_SCANNING: string
/**
* Connected
*/
CONNECTED: string
/**
* Tx issues - try a different Tx Mode
*/
TX_ISSUES: string
/**
* Disconnected
*/
DISCONNECTED: string
/**
* Scanning for devices...
*/
SCANNING: string
/**
* Are you sure you want to initiate a full device scan of the EMS bus?
*/
EMS_SCAN: string
/**
* EMS Bus Status
*/
EMS_BUS_STATUS: string
/**
* Active Devices & Sensors
*/
ACTIVE_DEVICES: string
/**
* Device
*/
DEVICE: string
/**
* SUCCESS
*/
SUCCESS: string
/**
* FAIL
*/
FAIL: string
/**
* QUALITY
*/
QUALITY: string
/**
* Scan for new devices
*/
SCAN_DEVICES: string
/**
* EMS Bus & Activity Status
*/
EMS_BUS_STATUS_TITLE: string
/**
* Scan
*/
SCAN: string
STATUS_NAMES: {
/**
* EMS Telegrams Received (Rx)
*/
'0': string
/**
* EMS Reads (Tx)
*/
'1': string
/**
* EMS Writes (Tx)
*/
'2': string
/**
* Temperature Sensor Reads
*/
'3': string
/**
* Analog Sensor Reads
*/
'4': string
/**
* MQTT Publishes
*/
'5': string
/**
* API Calls
*/
'6': string
/**
* Syslog Messages
*/
'7': string
}
}
export type TranslationFunctions = {
@@ -201,6 +295,10 @@ export type TranslationFunctions = {
* Sign In
*/
SIGN_IN: () => LocalizedString
/**
* Sign Out
*/
SIGN_OUT: () => LocalizedString
/**
* Username
*/
@@ -338,13 +436,13 @@ export type TranslationFunctions = {
*/
ACCESS_DENIED: () => LocalizedString
/**
* Analog Sensor {cmd}
* Analog Sensor{post}
*/
ANALOG_SENSOR: (arg: { cmd: unknown }) => LocalizedString
ANALOG_SENSOR: (arg: { post: unknown }) => LocalizedString
/**
* Temperature Sensor {cmd}
* Temperature Sensor{post}
*/
TEMP_SENSOR: (arg: { cmd: unknown }) => LocalizedString
TEMP_SENSOR: (arg: { post: unknown }) => LocalizedString
/**
* Write command {cmd}
*/
@@ -357,6 +455,96 @@ export type TranslationFunctions = {
* Scanning for EMS devices...
*/
EMS_BUS_SCANNING: () => LocalizedString
/**
* Connected
*/
CONNECTED: () => LocalizedString
/**
* Tx issues - try a different Tx Mode
*/
TX_ISSUES: () => LocalizedString
/**
* Disconnected
*/
DISCONNECTED: () => LocalizedString
/**
* Scanning for devices...
*/
SCANNING: () => LocalizedString
/**
* Are you sure you want to initiate a full device scan of the EMS bus?
*/
EMS_SCAN: () => LocalizedString
/**
* EMS Bus Status
*/
EMS_BUS_STATUS: () => LocalizedString
/**
* Active Devices & Sensors
*/
ACTIVE_DEVICES: () => LocalizedString
/**
* Device
*/
DEVICE: () => LocalizedString
/**
* SUCCESS
*/
SUCCESS: () => LocalizedString
/**
* FAIL
*/
FAIL: () => LocalizedString
/**
* QUALITY
*/
QUALITY: () => LocalizedString
/**
* Scan for new devices
*/
SCAN_DEVICES: () => LocalizedString
/**
* EMS Bus & Activity Status
*/
EMS_BUS_STATUS_TITLE: () => LocalizedString
/**
* Scan
*/
SCAN: () => LocalizedString
STATUS_NAMES: {
/**
* EMS Telegrams Received (Rx)
*/
'0': () => LocalizedString
/**
* EMS Reads (Tx)
*/
'1': () => LocalizedString
/**
* EMS Writes (Tx)
*/
'2': () => LocalizedString
/**
* Temperature Sensor Reads
*/
'3': () => LocalizedString
/**
* Analog Sensor Reads
*/
'4': () => LocalizedString
/**
* MQTT Publishes
*/
'5': () => LocalizedString
/**
* API Calls
*/
'6': () => LocalizedString
/**
* Syslog Messages
*/
'7': () => LocalizedString
}
}
export type Formatters = {}