Extracted strings.
This commit is contained in:
1 parent
7badb3c642
commit
980f055d5c
2 files changed
+4
-2
No files matched your search
+2
-2
@@ -49,11 +49,11 @@ const NotificationIntegrationModal = ({
|
|||||||
// Helper to get the field state key with error handling
|
// Helper to get the field state key with error handling
|
||||||
const getFieldKey = (typeId, fieldId) => {
|
const getFieldKey = (typeId, fieldId) => {
|
||||||
if (typeof typeId !== 'string' || typeId === '') {
|
if (typeof typeId !== 'string' || typeId === '') {
|
||||||
throw new Error('Invalid typeId provided to getFieldKey');
|
throw new Error(t('errorInvalidTypeId'));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof fieldId !== 'string' || fieldId === '') {
|
if (typeof fieldId !== 'string' || fieldId === '') {
|
||||||
throw new Error('Invalid fieldId provided to getFieldKey');
|
throw new Error(t('errorInvalidFieldId'));
|
||||||
}
|
}
|
||||||
|
|
||||||
return `${typeId}${fieldId.charAt(0).toUpperCase() + fieldId.slice(1)}`;
|
return `${typeId}${fieldId.charAt(0).toUpperCase() + fieldId.slice(1)}`;
|
||||||
|
|||||||
@@ -184,6 +184,8 @@
|
|||||||
"unsupportedType": "Unsupported notification type",
|
"unsupportedType": "Unsupported notification type",
|
||||||
"networkError": "Network error occurred"
|
"networkError": "Network error occurred"
|
||||||
},
|
},
|
||||||
|
"errorInvalidTypeId": "Invalid notification type provided",
|
||||||
|
"errorInvalidFieldId": "Invalid field ID provided",
|
||||||
"testLocale": "testLocale",
|
"testLocale": "testLocale",
|
||||||
"add": "Add",
|
"add": "Add",
|
||||||
"monitors": "monitors",
|
"monitors": "monitors",
|
||||||
|
|||||||
Reference in new issue
Block a user