mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-01-25 11:19:16 -06:00
Extracted strings.
This commit is contained in:
@@ -49,11 +49,11 @@ const NotificationIntegrationModal = ({
|
||||
// Helper to get the field state key with error handling
|
||||
const getFieldKey = (typeId, fieldId) => {
|
||||
if (typeof typeId !== 'string' || typeId === '') {
|
||||
throw new Error('Invalid typeId provided to getFieldKey');
|
||||
throw new Error(t('errorInvalidTypeId'));
|
||||
}
|
||||
|
||||
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)}`;
|
||||
|
||||
@@ -184,6 +184,8 @@
|
||||
"unsupportedType": "Unsupported notification type",
|
||||
"networkError": "Network error occurred"
|
||||
},
|
||||
"errorInvalidTypeId": "Invalid notification type provided",
|
||||
"errorInvalidFieldId": "Invalid field ID provided",
|
||||
"testLocale": "testLocale",
|
||||
"add": "Add",
|
||||
"monitors": "monitors",
|
||||
|
||||
Reference in New Issue
Block a user