mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
translations for drag&drop
This commit is contained in:
@@ -55,8 +55,7 @@ const DragNdrop = ({ onFileSelected }) => {
|
||||
>
|
||||
<div className="upload-info">
|
||||
<CloudUploadIcon sx={{ marginRight: 4 }} color="primary" fontSize="large" />
|
||||
{/* TODO translate */}
|
||||
<p>drag and drop a file here or click to select one</p>
|
||||
<p>{LL.UPLOAD_DRAG()}</p>
|
||||
</div>
|
||||
|
||||
<input
|
||||
|
||||
@@ -95,7 +95,7 @@ const SingleUpload = () => {
|
||||
sx={{ ml: 2 }}
|
||||
startIcon={<CancelIcon />}
|
||||
variant="outlined"
|
||||
color="secondary"
|
||||
color="error"
|
||||
onClick={cancelUpload}
|
||||
>
|
||||
{LL.CANCEL()}
|
||||
|
||||
@@ -332,7 +332,8 @@ const de: Translation = {
|
||||
MODULES_NONE: 'Keine externen Module erkannt',
|
||||
RENAME: 'Umbenennen',
|
||||
ENABLE_MODBUS: 'Modbus aktivieren',
|
||||
VIEW_LOG: 'Sehen Sie sich das Protokoll an, um Probleme zu diagnostizieren'
|
||||
VIEW_LOG: 'Sehen Sie sich das Protokoll an, um Probleme zu diagnostizieren',
|
||||
UPLOAD_DRAG: 'drag and drop a file here or click to select one' // TODO translate
|
||||
};
|
||||
|
||||
export default de;
|
||||
|
||||
@@ -332,7 +332,8 @@ const en: Translation = {
|
||||
MODULES_NONE: 'No external modules detected',
|
||||
RENAME: 'Rename',
|
||||
ENABLE_MODBUS: 'Enable Modbus',
|
||||
VIEW_LOG: 'View log to diagnose issues'
|
||||
VIEW_LOG: 'View log to diagnose issues',
|
||||
UPLOAD_DRAG: 'drag and drop a file here or click to select one' // TODO translate
|
||||
};
|
||||
|
||||
export default en;
|
||||
|
||||
@@ -332,7 +332,8 @@ const fr: Translation = {
|
||||
MODULES_NONE: 'No external modules detected', // TODO translate
|
||||
RENAME: 'Rename', // TODO translate
|
||||
ENABLE_MODBUS: 'Activer Modbus',
|
||||
VIEW_LOG: 'View log to diagnose issues' // TODO translate
|
||||
VIEW_LOG: 'View log to diagnose issues', // TODO translate
|
||||
UPLOAD_DRAG: 'drag and drop a file here or click to select one' // TODO translate
|
||||
};
|
||||
|
||||
export default fr;
|
||||
|
||||
@@ -332,7 +332,8 @@ const it: Translation = {
|
||||
MODULES_NONE: 'No external modules detected', // TODO translate
|
||||
RENAME: 'Rename', // TODO translate
|
||||
ENABLE_MODBUS: 'Abilita Modbus',
|
||||
VIEW_LOG: 'View log to diagnose issues' // TODO translate
|
||||
VIEW_LOG: 'View log to diagnose issues', // TODO translate
|
||||
UPLOAD_DRAG: 'drag and drop a file here or click to select one' // TODO translate
|
||||
};
|
||||
|
||||
export default it;
|
||||
|
||||
@@ -332,7 +332,8 @@ const nl: Translation = {
|
||||
MODULES_NONE: 'Geen externe modules gedetecteerd',
|
||||
RENAME: 'Hernoemen',
|
||||
ENABLE_MODBUS: 'Activeer Modbus',
|
||||
VIEW_LOG: 'View log to diagnose issues' // TODO translate
|
||||
VIEW_LOG: 'View log to diagnose issues', // TODO translate
|
||||
UPLOAD_DRAG: 'drag and drop a file here or click to select one' // TODO translate
|
||||
};
|
||||
|
||||
export default nl;
|
||||
|
||||
@@ -332,7 +332,8 @@ const no: Translation = {
|
||||
MODULES_NONE: 'No external modules detected', // TODO translate
|
||||
RENAME: 'Rename', // TODO translate
|
||||
ENABLE_MODBUS: 'Aktiver Modbus',
|
||||
VIEW_LOG: 'View log to diagnose issues' // TODO translate
|
||||
VIEW_LOG: 'View log to diagnose issues', // TODO translate
|
||||
UPLOAD_DRAG: 'drag and drop a file here or click to select one' // TODO translate
|
||||
};
|
||||
|
||||
export default no;
|
||||
|
||||
@@ -332,7 +332,8 @@ const pl: BaseTranslation = {
|
||||
MODULES_NONE: 'No external modules detected', // TODO translate
|
||||
RENAME: 'Rename', // TODO translate
|
||||
ENABLE_MODBUS: 'Aktywuj Modbus',
|
||||
VIEW_LOG: 'View log to diagnose issues' // TODO translate
|
||||
VIEW_LOG: 'View log to diagnose issues', // TODO translate
|
||||
UPLOAD_DRAG: 'drag and drop a file here or click to select one' // TODO translate
|
||||
};
|
||||
|
||||
export default pl;
|
||||
|
||||
@@ -332,7 +332,8 @@ const sk: Translation = {
|
||||
MODULES_NONE: 'No external modules detected', // TODO translate
|
||||
RENAME: 'Rename', // TODO translate
|
||||
ENABLE_MODBUS: 'Povoliť Modbus',
|
||||
VIEW_LOG: 'View log to diagnose issues' // TODO translate
|
||||
VIEW_LOG: 'View log to diagnose issues', // TODO translate
|
||||
UPLOAD_DRAG: 'drag and drop a file here or click to select one' // TODO translate
|
||||
};
|
||||
|
||||
export default sk;
|
||||
|
||||
@@ -332,7 +332,8 @@ const sv: Translation = {
|
||||
MODULES_NONE: 'No external modules detected', // TODO translate
|
||||
RENAME: 'Rename', // TODO translate
|
||||
ENABLE_MODBUS: 'Aktivera Modbus',
|
||||
VIEW_LOG: 'View log to diagnose issues' // TODO translate
|
||||
VIEW_LOG: 'View log to diagnose issues', // TODO translate
|
||||
UPLOAD_DRAG: 'drag and drop a file here or click to select one' // TODO translate
|
||||
};
|
||||
|
||||
export default sv;
|
||||
|
||||
@@ -332,7 +332,8 @@ const tr: Translation = {
|
||||
MODULES_NONE: 'No external modules detected', // TODO translate
|
||||
RENAME: 'Rename', // TODO translate
|
||||
ENABLE_MODBUS: 'Enable Modbus', // TODO translate
|
||||
VIEW_LOG: 'View log to diagnose issues' // TODO translate
|
||||
VIEW_LOG: 'View log to diagnose issues', // TODO translate
|
||||
UPLOAD_DRAG: 'drag and drop a file here or click to select one' // TODO translate
|
||||
};
|
||||
|
||||
export default tr;
|
||||
|
||||
@@ -4323,6 +4323,7 @@ router
|
||||
let sorted_devices = [...emsesp_coredata.devices].sort((a, b) => a.t - b.t);
|
||||
// append emsesp_coredata to sorted_devices so Custom is always at the end of the list
|
||||
sorted_devices.push(emsesp_coredata_custom);
|
||||
// sorted_devices = []; // uncomment if simulating no decvices...
|
||||
return { connected: true, devices: sorted_devices };
|
||||
})
|
||||
.get(EMSESP_SENSOR_DATA_ENDPOINT, () => {
|
||||
|
||||
Reference in New Issue
Block a user