translate network

This commit is contained in:
Proddy
2022-08-28 16:36:04 +02:00
parent 3ea71e1dfb
commit 1ccacdc600
13 changed files with 285 additions and 88 deletions

View File

@@ -2,6 +2,8 @@ import type { Translation } from '../i18n-types';
const de: Translation = {
LANGUAGE: 'Sprache',
RETRY: 'DE_Retry',
LOADING: 'DE_Loading',
IS_REQUIRED: 'ist nötig',
SIGN_IN: 'Einloggen',
SIGN_OUT: 'Ausloggen',
@@ -16,7 +18,7 @@ const de: Translation = {
UPLOAD_SUCCESSFUL: 'Hochladen erfolgreich',
DOWNLOAD_SUCCESSFUL: 'DE_Download successful',
INVALID_LOGIN: 'Ungültige Login Daten',
NETWORK_CONNECTION: 'Netzwerkverbindung',
NETWORK: 'Netzwerk',
SECURITY: 'Sicherheit',
ONOFF_CAP: 'AN/AUS',
ONOFF: 'an/aus',
@@ -51,7 +53,6 @@ const de: Translation = {
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',
@@ -222,8 +223,23 @@ const de: Translation = {
AP_PROVIDE_TEXT_2: 'DE_when WiFi is disconnected',
AP_PROVIDE_TEXT_3: 'DE_never',
AP_PREFERRED_CHANNEL: 'DE_Preferred Channel',
AP_HIDE_SSID: 'DE_Hide SSID'
AP_HIDE_SSID: 'DE_Hide SSID',
NETWORK_SCAN: 'DE_Scan WiFi Networks',
IDLE: 'DE_Idle',
LOST: 'DE_Lost',
SCANNING: 'DE_Scanning',
SCAN_AGAIN: 'DE_Scan again',
NETWORK_SCANNER: 'DE_Network Scanner',
NETWORK_NO_WIFI: 'DE_No WiFi networks found',
NETWORK_BLANK_SSID: 'DE_leave blank to disable WiFi',
POWER: 'DE_Power',
NETWORK_DISABLE_SLEEP: 'DE_Disable WiFi Sleep Mode',
NETWORK_LOW_BAND: 'DE_Use Lower WiFi Bandwidth',
NETWORK_USE_DNS: 'DE_Enable mDNS Service',
NETWORK_ENABLE_IPV6: 'DE_Enable IPv6 support',
NETWORK_FIXED_IP: 'DE_Use Fixed IP address',
ADMIN: 'DE_Admin',
GUEST: 'DE_Guest'
};
export default de;

View File

@@ -2,6 +2,8 @@ import type { BaseTranslation } from '../i18n-types';
const en: BaseTranslation = {
LANGUAGE: 'Language',
RETRY: 'Retry',
LOADING: 'Loading',
IS_REQUIRED: 'is required',
SIGN_IN: 'Sign In',
SIGN_OUT: 'Sign Out',
@@ -16,7 +18,7 @@ const en: BaseTranslation = {
UPLOAD_SUCCESSFUL: 'Upload successful',
DOWNLOAD_SUCCESSFUL: 'Download successful',
INVALID_LOGIN: 'Invalid login details',
NETWORK_CONNECTION: 'Network Connection',
NETWORK: 'Network',
SECURITY: 'Security',
ONOFF_CAP: 'ON/OFF',
ONOFF: 'on/off',
@@ -51,7 +53,6 @@ const en: BaseTranslation = {
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',
@@ -222,7 +223,23 @@ const en: BaseTranslation = {
AP_PROVIDE_TEXT_2: 'when WiFi is disconnected',
AP_PROVIDE_TEXT_3: 'never',
AP_PREFERRED_CHANNEL: 'Preferred Channel',
AP_HIDE_SSID: 'Hide SSID'
AP_HIDE_SSID: 'Hide SSID',
NETWORK_SCAN: 'Scan WiFi Networks',
IDLE: 'Idle',
LOST: 'Lost',
SCANNING: 'Scanning',
SCAN_AGAIN: 'Scan again',
NETWORK_SCANNER: 'Network Scanner',
NETWORK_NO_WIFI: 'No WiFi networks found',
NETWORK_BLANK_SSID: 'leave blank to disable WiFi',
POWER: 'Power',
NETWORK_DISABLE_SLEEP: 'Disable WiFi Sleep Mode',
NETWORK_LOW_BAND: 'Use Lower WiFi Bandwidth',
NETWORK_USE_DNS: 'Enable mDNS Service',
NETWORK_ENABLE_IPV6: 'Enable IPv6 support',
NETWORK_FIXED_IP: 'Use Fixed IP address',
ADMIN: 'Admin',
GUEST: 'Guest'
};
export default en;

View File

@@ -18,6 +18,14 @@ type RootTranslation = {
* Language
*/
LANGUAGE: string
/**
* Retry
*/
RETRY: string
/**
* Loading
*/
LOADING: string
/**
* is required
*/
@@ -76,9 +84,9 @@ type RootTranslation = {
*/
INVALID_LOGIN: string
/**
* Network Connection
* Network
*/
NETWORK_CONNECTION: string
NETWORK: string
/**
* Security
*/
@@ -214,10 +222,6 @@ type RootTranslation = {
* Disconnected
*/
DISCONNECTED: string
/**
* Scanning for devices...
*/
SCANNING: string
/**
* Are you sure you want to initiate a full device scan of the EMS bus?
*/
@@ -883,6 +887,70 @@ type RootTranslation = {
* Hide SSID
*/
AP_HIDE_SSID: string
/**
* Scan WiFi Networks
*/
NETWORK_SCAN: string
/**
* Idle
*/
IDLE: string
/**
* Lost
*/
LOST: string
/**
* Scanning
*/
SCANNING: string
/**
* Scan again
*/
SCAN_AGAIN: string
/**
* Network Scanner
*/
NETWORK_SCANNER: string
/**
* No WiFi networks found
*/
NETWORK_NO_WIFI: string
/**
* leave blank to disable WiFi
*/
NETWORK_BLANK_SSID: string
/**
* Power
*/
POWER: string
/**
* Disable WiFi Sleep Mode
*/
NETWORK_DISABLE_SLEEP: string
/**
* Use Lower WiFi Bandwidth
*/
NETWORK_LOW_BAND: string
/**
* Enable mDNS Service
*/
NETWORK_USE_DNS: string
/**
* Enable IPv6 support
*/
NETWORK_ENABLE_IPV6: string
/**
* Use Fixed IP address
*/
NETWORK_FIXED_IP: string
/**
* Admin
*/
ADMIN: string
/**
* Guest
*/
GUEST: string
}
export type TranslationFunctions = {
@@ -890,6 +958,14 @@ export type TranslationFunctions = {
* Language
*/
LANGUAGE: () => LocalizedString
/**
* Retry
*/
RETRY: () => LocalizedString
/**
* Loading
*/
LOADING: () => LocalizedString
/**
* is required
*/
@@ -947,9 +1023,9 @@ export type TranslationFunctions = {
*/
INVALID_LOGIN: () => LocalizedString
/**
* Network Connection
* Network
*/
NETWORK_CONNECTION: () => LocalizedString
NETWORK: () => LocalizedString
/**
* Security
*/
@@ -1082,10 +1158,6 @@ export type TranslationFunctions = {
* Disconnected
*/
DISCONNECTED: () => LocalizedString
/**
* Scanning for devices...
*/
SCANNING: () => LocalizedString
/**
* Are you sure you want to initiate a full device scan of the EMS bus?
*/
@@ -1744,6 +1816,70 @@ export type TranslationFunctions = {
* Hide SSID
*/
AP_HIDE_SSID: () => LocalizedString
/**
* Scan WiFi Networks
*/
NETWORK_SCAN: () => LocalizedString
/**
* Idle
*/
IDLE: () => LocalizedString
/**
* Lost
*/
LOST: () => LocalizedString
/**
* Scanning
*/
SCANNING: () => LocalizedString
/**
* Scan again
*/
SCAN_AGAIN: () => LocalizedString
/**
* Network Scanner
*/
NETWORK_SCANNER: () => LocalizedString
/**
* No WiFi networks found
*/
NETWORK_NO_WIFI: () => LocalizedString
/**
* leave blank to disable WiFi
*/
NETWORK_BLANK_SSID: () => LocalizedString
/**
* Power
*/
POWER: () => LocalizedString
/**
* Disable WiFi Sleep Mode
*/
NETWORK_DISABLE_SLEEP: () => LocalizedString
/**
* Use Lower WiFi Bandwidth
*/
NETWORK_LOW_BAND: () => LocalizedString
/**
* Enable mDNS Service
*/
NETWORK_USE_DNS: () => LocalizedString
/**
* Enable IPv6 support
*/
NETWORK_ENABLE_IPV6: () => LocalizedString
/**
* Use Fixed IP address
*/
NETWORK_FIXED_IP: () => LocalizedString
/**
* Admin
*/
ADMIN: () => LocalizedString
/**
* Guest
*/
GUEST: () => LocalizedString
}
export type Formatters = {}