mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 16:59:50 +03:00
Warn user in WebUI of unsaved changes #911
This commit is contained in:
@@ -302,7 +302,11 @@ const de: Translation = {
|
||||
NEW_NAME_OF: 'Ändere {0}',
|
||||
ENTITY: 'Entität',
|
||||
MIN: 'min',
|
||||
MAX: 'max'
|
||||
MAX: 'max',
|
||||
BLOCK_NAVIGATE_1: 'You have unsaved changes', // TODO translate
|
||||
BLOCK_NAVIGATE_2: 'If you navigate to a different page, your unsaved changes will be lost. Are you sure you want to leave this page?', // TODO translate
|
||||
STAY: 'Stay', // TODO translate
|
||||
LEAVE: 'Leave' // TODO translate
|
||||
};
|
||||
|
||||
export default de;
|
||||
|
||||
@@ -302,7 +302,11 @@ const en: Translation = {
|
||||
NEW_NAME_OF: 'New {0} name',
|
||||
ENTITY: 'entity',
|
||||
MIN: 'min',
|
||||
MAX: 'max'
|
||||
MAX: 'max',
|
||||
BLOCK_NAVIGATE_1: 'You have unsaved changes',
|
||||
BLOCK_NAVIGATE_2: 'If you navigate to a different page, your unsaved changes will be lost. Are you sure you want to leave this page?',
|
||||
STAY: 'Stay',
|
||||
LEAVE: 'Leave'
|
||||
};
|
||||
|
||||
export default en;
|
||||
|
||||
@@ -302,7 +302,11 @@ const fr: Translation = {
|
||||
NEW_NAME_OF: 'Nouveau nom de {0}',
|
||||
ENTITY: 'entité',
|
||||
MIN: 'min',
|
||||
MAX: 'max'
|
||||
MAX: 'max',
|
||||
BLOCK_NAVIGATE_1: 'You have unsaved changes', // TODO translate
|
||||
BLOCK_NAVIGATE_2: 'If you navigate to a different page, your unsaved changes will be lost. Are you sure you want to leave this page?', // TODO translate
|
||||
STAY: 'Stay', // TODO translate
|
||||
LEAVE: 'Leave' // TODO translate
|
||||
};
|
||||
|
||||
export default fr;
|
||||
|
||||
@@ -302,7 +302,11 @@ const nl: Translation = {
|
||||
NEW_NAME_OF: 'Hernoem {0}',
|
||||
ENTITY: 'Entiteit',
|
||||
MIN: 'min',
|
||||
MAX: 'max'
|
||||
MAX: 'max',
|
||||
BLOCK_NAVIGATE_1: 'You have unsaved changes', // TODO translate
|
||||
BLOCK_NAVIGATE_2: 'If you navigate to a different page, your unsaved changes will be lost. Are you sure you want to leave this page?', // TODO translate
|
||||
STAY: 'Stay', // TODO translate
|
||||
LEAVE: 'Leave' // TODO translate
|
||||
};
|
||||
|
||||
export default nl;
|
||||
|
||||
@@ -302,7 +302,11 @@ const no: Translation = {
|
||||
NEW_NAME_OF: 'Bytt navn {0}',
|
||||
ENTITY: 'Entitet',
|
||||
MIN: 'min',
|
||||
MAX: 'max'
|
||||
MAX: 'max',
|
||||
BLOCK_NAVIGATE_1: 'You have unsaved changes', // TODO translate
|
||||
BLOCK_NAVIGATE_2: 'If you navigate to a different page, your unsaved changes will be lost. Are you sure you want to leave this page?', // TODO translate
|
||||
STAY: 'Stay', // TODO translate
|
||||
LEAVE: 'Leave' // TODO translate
|
||||
};
|
||||
|
||||
export default no;
|
||||
|
||||
@@ -302,7 +302,11 @@ const pl: BaseTranslation = {
|
||||
NEW_NAME_OF: 'Nowa nazwa {0}',
|
||||
ENTITY: 'encji',
|
||||
MIN: 'Min.',
|
||||
MAX: 'Maks.'
|
||||
MAX: 'Maks.',
|
||||
BLOCK_NAVIGATE_1: 'You have unsaved changes', // TODO translate
|
||||
BLOCK_NAVIGATE_2: 'If you navigate to a different page, your unsaved changes will be lost. Are you sure you want to leave this page?', // TODO translate
|
||||
STAY: 'Stay', // TODO translate
|
||||
LEAVE: 'Leave' // TODO translate
|
||||
};
|
||||
|
||||
export default pl;
|
||||
|
||||
@@ -302,7 +302,11 @@ const sv: Translation = {
|
||||
NEW_NAME_OF: 'Byt namn {0}',
|
||||
ENTITY: 'Entitet',
|
||||
MIN: 'min',
|
||||
MAX: 'max'
|
||||
MAX: 'max',
|
||||
BLOCK_NAVIGATE_1: 'You have unsaved changes', // TODO translate
|
||||
BLOCK_NAVIGATE_2: 'If you navigate to a different page, your unsaved changes will be lost. Are you sure you want to leave this page?', // TODO translate
|
||||
STAY: 'Stay', // TODO translate
|
||||
LEAVE: 'Leave' // TODO translate
|
||||
};
|
||||
|
||||
export default sv;
|
||||
|
||||
Reference in New Issue
Block a user