translations for drag&drop

This commit is contained in:
proddy
2024-08-15 16:48:24 +02:00
parent 07507eaeb6
commit d4d296a97e
13 changed files with 23 additions and 13 deletions

View File

@@ -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

View File

@@ -95,7 +95,7 @@ const SingleUpload = () => {
sx={{ ml: 2 }}
startIcon={<CancelIcon />}
variant="outlined"
color="secondary"
color="error"
onClick={cancelUpload}
>
{LL.CANCEL()}

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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, () => {