translate system menu

This commit is contained in:
proddy
2022-08-28 10:44:22 +02:00
parent 7122e878a5
commit d8e324a005
16 changed files with 366 additions and 83 deletions

View File

@@ -14,6 +14,7 @@ const de: Translation = {
LOGGED_IN: 'Eingeloggt als {name}',
PLEASE_SIGNIN: 'Bitte einloggen, um fortzufahren',
UPLOAD_SUCCESSFUL: 'Hochladen erfolgreich',
DOWNLOAD_SUCCESSFUL: 'DE_Download successful',
INVALID_LOGIN: 'Ungültige Login Daten',
NETWORK_CONNECTION: 'Netzwerkverbindung',
SECURITY: 'Sicherheit',
@@ -24,7 +25,7 @@ const de: Translation = {
DESCRIPTION: 'Bezeichnung',
ENTITIES: 'Entitäten',
REFRESH: 'Aktualisierung',
EXPORT: 'Export',
EXPORT: 'DE_Export',
ENTITY_NAME: 'Entitätsname',
VALUE: 'Wert',
SHOW_FAV: 'nur Favoriten anzeigen',
@@ -145,9 +146,34 @@ const de: Translation = {
HELP_INFORMATION_9: 'und hängen Sie Ihre Systemdetails für eine schnellere Antwort an',
HELP_INFORMATION_10: 'EMS-ESP wird immer ein kostenloses Open-Source-Projekt sein. Bitte erwägen Sie, es mit einem',
UPLOAD: 'Hochladen',
DOWNLOAD: 'DE_Download',
ABORTED: 'abgebrochen',
FAILED: 'gescheitert',
SUCCESSFUL: 'erfolgreich'
SUCCESSFUL: 'erfolgreich',
SYSTEM: 'DE_System',
LOG: 'DE_Log',
STATUS: 'DE_Status',
UPLOAD_DOWNLOAD: 'DE_Upload/Download',
SYSTEM_VERSION_RUNNING: 'DE_You are currently running version',
SYSTEM_APPLY_FIRMWARE: 'DE_to apply the new firmware',
CLOSE: 'DE_Close',
USE: 'DE_Use',
FACTORY_RESET: 'DE_Factory Reset',
SYSTEM_FACTORY_TEXT: 'DE_Device has been factory reset and will now restart',
SYSTEM_FACTORY_TEXT_DIALOG: 'DE_Are you sure you want to reset the device to its factory defaults?',
VERSION_CHECK: 'DE_Version Check',
THE_LATEST: 'DE_The latest',
BUFFER_SIZE: 'DE_Buffer Size',
COMPACT: 'DE_Compact',
ENABLE_OTA: 'DE_Enable OTA Updates',
DOWNLOAD_CUSTOMIZATION_TEXT: 'DE_Download the entity customizations',
DOWNLOAD_SETTINGS_TEXT:
'DE_Download the application settings. Be careful when sharing your settings as this file contains passwords and other sensitive system information',
UPLOAD_TEXT: 'DE_Upload a new firmware (.bin) file, settings or customizations (.json) file below',
UPLOADING: 'DE_Uploading',
UPLOAD_DROP_TEXT: 'DE_Drop file or click here',
ERROR: 'DE_Unexpected Error, please try again',
TIME_SET: 'DE_Time set'
};
export default de;

View File

@@ -14,6 +14,7 @@ const en: BaseTranslation = {
LOGGED_IN: 'Logged in as {name}',
PLEASE_SIGNIN: 'Please sign in to continue',
UPLOAD_SUCCESSFUL: 'Upload successful',
DOWNLOAD_SUCCESSFUL: 'Download successful',
INVALID_LOGIN: 'Invalid login details',
NETWORK_CONNECTION: 'Network Connection',
SECURITY: 'Security',
@@ -145,9 +146,34 @@ const en: BaseTranslation = {
HELP_INFORMATION_9: 'and attach your system details for a faster response',
HELP_INFORMATION_10: 'EMS-ESP will always be a free and open-source project. Please consider supporting it with a',
UPLOAD: 'Upload',
DOWNLOAD: 'Download',
ABORTED: 'aborted',
FAILED: 'failed',
SUCCESSFUL: 'successful'
SUCCESSFUL: 'successful',
SYSTEM: 'System',
LOG: 'Log',
STATUS: 'Status',
UPLOAD_DOWNLOAD: 'Upload/Download',
SYSTEM_VERSION_RUNNING: 'You are currently running version',
SYSTEM_APPLY_FIRMWARE: 'to apply the new firmware',
CLOSE: 'Close',
USE: 'Use',
FACTORY_RESET: 'Factory Reset',
SYSTEM_FACTORY_TEXT: 'Device has been factory reset and will now restart',
SYSTEM_FACTORY_TEXT_DIALOG: 'Are you sure you want to reset the device to its factory defaults?',
VERSION_CHECK: 'Version Check',
THE_LATEST: 'The latest',
BUFFER_SIZE: 'Buffer Size',
COMPACT: 'Compact',
ENABLE_OTA: 'Enable OTA Updates',
DOWNLOAD_CUSTOMIZATION_TEXT: 'Download the entity customizations',
DOWNLOAD_SETTINGS_TEXT:
'Download the application settings. Be careful when sharing your settings as this file contains passwords and other sensitive system information',
UPLOAD_TEXT: 'Upload a new firmware (.bin) file, settings or customizations (.json) file below',
UPLOADING: 'Uploading',
UPLOAD_DROP_TEXT: 'Drop file or click here',
ERROR: 'Unexpected Error, please try again',
TIME_SET: 'Time set'
};
export default en;

View File

@@ -67,6 +67,10 @@ type RootTranslation = {
* Upload successful
*/
UPLOAD_SUCCESSFUL: string
/**
* Download successful
*/
DOWNLOAD_SUCCESSFUL: string
/**
* Invalid login details
*/
@@ -583,6 +587,10 @@ type RootTranslation = {
* Upload
*/
UPLOAD: string
/**
* Download
*/
DOWNLOAD: string
/**
* aborted
*/
@@ -595,6 +603,98 @@ type RootTranslation = {
* successful
*/
SUCCESSFUL: string
/**
* System
*/
SYSTEM: string
/**
* Log
*/
LOG: string
/**
* Status
*/
STATUS: string
/**
* Upload/Download
*/
UPLOAD_DOWNLOAD: string
/**
* You are currently running version
*/
SYSTEM_VERSION_RUNNING: string
/**
* to apply the new firmware
*/
SYSTEM_APPLY_FIRMWARE: string
/**
* Close
*/
CLOSE: string
/**
* Use
*/
USE: string
/**
* Factory Reset
*/
FACTORY_RESET: string
/**
* Device has been factory reset and will now restart
*/
SYSTEM_FACTORY_TEXT: string
/**
* Are you sure you want to reset the device to its factory defaults?
*/
SYSTEM_FACTORY_TEXT_DIALOG: string
/**
* Version Check
*/
VERSION_CHECK: string
/**
* The latest
*/
THE_LATEST: string
/**
* Buffer Size
*/
BUFFER_SIZE: string
/**
* Compact
*/
COMPACT: string
/**
* Enable OTA Updates
*/
ENABLE_OTA: string
/**
* Download the entity customizations
*/
DOWNLOAD_CUSTOMIZATION_TEXT: string
/**
* Download the application settings. Be careful when sharing your settings as this file contains passwords and other sensitive system information
*/
DOWNLOAD_SETTINGS_TEXT: string
/**
* Upload a new firmware (.bin) file, settings or customizations (.json) file below
*/
UPLOAD_TEXT: string
/**
* Uploading
*/
UPLOADING: string
/**
* Drop file or click here
*/
UPLOAD_DROP_TEXT: string
/**
* Unexpected Error, please try again
*/
ERROR: string
/**
* Time set
*/
TIME_SET: string
}
export type TranslationFunctions = {
@@ -650,6 +750,10 @@ export type TranslationFunctions = {
* Upload successful
*/
UPLOAD_SUCCESSFUL: () => LocalizedString
/**
* Download successful
*/
DOWNLOAD_SUCCESSFUL: () => LocalizedString
/**
* Invalid login details
*/
@@ -1156,6 +1260,10 @@ export type TranslationFunctions = {
* Upload
*/
UPLOAD: () => LocalizedString
/**
* Download
*/
DOWNLOAD: () => LocalizedString
/**
* aborted
*/
@@ -1168,6 +1276,98 @@ export type TranslationFunctions = {
* successful
*/
SUCCESSFUL: () => LocalizedString
/**
* System
*/
SYSTEM: () => LocalizedString
/**
* Log
*/
LOG: () => LocalizedString
/**
* Status
*/
STATUS: () => LocalizedString
/**
* Upload/Download
*/
UPLOAD_DOWNLOAD: () => LocalizedString
/**
* You are currently running version
*/
SYSTEM_VERSION_RUNNING: () => LocalizedString
/**
* to apply the new firmware
*/
SYSTEM_APPLY_FIRMWARE: () => LocalizedString
/**
* Close
*/
CLOSE: () => LocalizedString
/**
* Use
*/
USE: () => LocalizedString
/**
* Factory Reset
*/
FACTORY_RESET: () => LocalizedString
/**
* Device has been factory reset and will now restart
*/
SYSTEM_FACTORY_TEXT: () => LocalizedString
/**
* Are you sure you want to reset the device to its factory defaults?
*/
SYSTEM_FACTORY_TEXT_DIALOG: () => LocalizedString
/**
* Version Check
*/
VERSION_CHECK: () => LocalizedString
/**
* The latest
*/
THE_LATEST: () => LocalizedString
/**
* Buffer Size
*/
BUFFER_SIZE: () => LocalizedString
/**
* Compact
*/
COMPACT: () => LocalizedString
/**
* Enable OTA Updates
*/
ENABLE_OTA: () => LocalizedString
/**
* Download the entity customizations
*/
DOWNLOAD_CUSTOMIZATION_TEXT: () => LocalizedString
/**
* Download the application settings. Be careful when sharing your settings as this file contains passwords and other sensitive system information
*/
DOWNLOAD_SETTINGS_TEXT: () => LocalizedString
/**
* Upload a new firmware (.bin) file, settings or customizations (.json) file below
*/
UPLOAD_TEXT: () => LocalizedString
/**
* Uploading
*/
UPLOADING: () => LocalizedString
/**
* Drop file or click here
*/
UPLOAD_DROP_TEXT: () => LocalizedString
/**
* Unexpected Error, please try again
*/
ERROR: () => LocalizedString
/**
* Time set
*/
TIME_SET: () => LocalizedString
}
export type Formatters = {}