diff --git a/client/src/utils/tempTranslations.js b/client/src/utils/tempTranslations.js index 25af11f..48a361e 100644 --- a/client/src/utils/tempTranslations.js +++ b/client/src/utils/tempTranslations.js @@ -507,7 +507,9 @@ const translations = { createAlert: 'Create Alert', createAlertRule: 'Create Alert Rule', editRule: 'Edit Rule', + edit: 'Edit', deleteRule: 'Delete Rule', + delete: 'Delete', ruleDetails: 'Rule Details', noRules: 'No alert rules configured', noAlertRules: 'No alert rules', @@ -602,7 +604,22 @@ const translations = { smsPhoneLabel: 'SMS Phone Number', smsRequired: 'Required when SMS is selected', webhookUrlLabel: 'Webhook URL', - webhookRequired: 'Required when webhook is selected' + webhookRequired: 'Required when webhook is selected', + // Additional form field translations + minDetectionsLabel: 'Min Detections', + minDetectionsDescription: 'Number of detections required within time window to trigger alert', + timeWindowLabel: 'Time Window (seconds)', + timeWindowDescription: 'Time period to count detections (e.g., 3 detections in 300 seconds)', + cooldownPeriodLabel: 'Cooldown Period (seconds)', + cooldownPeriodDescription: 'Minimum time between alerts to prevent spam (0 = no cooldown)', + alertChannelsDescription: 'Choose how you want to receive alerts when this rule is triggered', + selectDroneTypes: 'Select specific drone types to monitor or leave empty to monitor all detected drones', + highThreatWarning: '(⚠️ High Threat)', + smsDescription: '(Text message)', + emailDescription: '(Email notification)', + webhookDescription: '(HTTP POST to URL)', + smsPlaceholder: '+1234567890', + webhookPlaceholder: 'https://example.com/webhook' } }, register: { @@ -1147,7 +1164,9 @@ const translations = { createAlert: 'Skapa larm', createAlertRule: 'Skapa larmregel', editRule: 'Redigera regel', + edit: 'Redigera', deleteRule: 'Ta bort regel', + delete: 'Ta bort', ruleDetails: 'Regeldetaljer', noRules: 'Inga larmregler konfigurerade', noAlertRules: 'Inga larmregler', @@ -1242,7 +1261,22 @@ const translations = { smsPhoneLabel: 'SMS-telefonnummer', smsRequired: 'Krävs när SMS är valt', webhookUrlLabel: 'Webhook-URL', - webhookRequired: 'Krävs när webhook är valt' + webhookRequired: 'Krävs när webhook är valt', + // Additional form field translations + minDetectionsLabel: 'Min detekteringar', + minDetectionsDescription: 'Antal detekteringar som krävs inom tidsfönstret för att utlösa larm', + timeWindowLabel: 'Tidsfönster (sekunder)', + timeWindowDescription: 'Tidsperiod för att räkna detekteringar (t.ex. 3 detekteringar på 300 sekunder)', + cooldownPeriodLabel: 'Nedkylningsperiod (sekunder)', + cooldownPeriodDescription: 'Minimitid mellan larm för att förhindra spam (0 = ingen nedkylning)', + alertChannelsDescription: 'Välj hur du vill ta emot larm när denna regel utlöses', + selectDroneTypes: 'Välj specifika drönartyper att övervaka eller lämna tomt för att övervaka alla upptäckta drönare', + highThreatWarning: '(⚠️ Högt hot)', + smsDescription: '(Textmeddelande)', + emailDescription: '(E-postnotifiering)', + webhookDescription: '(HTTP POST till URL)', + smsPlaceholder: '+46701234567', + webhookPlaceholder: 'https://example.com/webhook' } }, register: {