refactor(i18n): Extracted multiple fields in the Service component for translation.
- Extracted multiple fields in the Service component for translation. - Optimized the structure of the translation file, categorizing it by functional modules.
This commit is contained in:
@@ -2,9 +2,6 @@
|
||||
import { ServicesTranslations } from '../types/services';
|
||||
|
||||
export const servicesTranslations: ServicesTranslations = {
|
||||
serviceName: "Service Name",
|
||||
serviceNameDesc: "Enter a descriptive name for your service",
|
||||
serviceType: "Service Type",
|
||||
serviceStatus: "Service Status",
|
||||
responseTime: "Response Time",
|
||||
uptime: "Uptime",
|
||||
@@ -19,4 +16,72 @@ export const servicesTranslations: ServicesTranslations = {
|
||||
allTypes: "All Types",
|
||||
createNewService: "Create New Service",
|
||||
createNewServiceDesc: "Fill in the details to create a new service to monitor.",
|
||||
|
||||
// ServiceBasicFields.tsx
|
||||
serviceName: "Service Name",
|
||||
serviceNameDesc: "Enter a descriptive name for your service",
|
||||
|
||||
// ServiceConfigFields.tsx
|
||||
checkInterval: "Check Interval",
|
||||
seconds: "seconds",
|
||||
minute: "minute",
|
||||
minutes: "minutes",
|
||||
hour: "hour",
|
||||
hours: "hours",
|
||||
custom: "Custom",
|
||||
checkIntervalPlaceholder: "Enter interval in seconds",
|
||||
backToPresets: "Back to presets",
|
||||
checkIntervalDesc: "How often to check the service status",
|
||||
checkIntervalDescCustom: "Enter custom interval in seconds (minimum 10 seconds)",
|
||||
retryAttempts: "Retry Attempts",
|
||||
attempt: "attempt",
|
||||
attempts: "attempts",
|
||||
retryAttemptsDesc: "Number of retry attempts before marking as down",
|
||||
|
||||
// ServiceForm.tsx
|
||||
updateService: "Update Service",
|
||||
createService: "Create Service",
|
||||
|
||||
// ServiceNotificationFields.tsx
|
||||
enableNotifications: "Enable Notifications",
|
||||
enableNotificationsDesc: "Enable or disable notifications for this service",
|
||||
notificationChannels: "Notification Channels",
|
||||
notificationChannelsEnabledDesc: "Select notification channels for this service",
|
||||
notificationChannelsDesc: "Enable notifications first to select channels",
|
||||
notificationChannelsPlaceholder: "Add a notification channel",
|
||||
alertTemplate: "Alert Template",
|
||||
alertTemplateLoading: "Loading templates...",
|
||||
alertTemplatePlaceholder: "Select an alert template",
|
||||
alertTemplateEnabledDesc: "Choose a template for alert messages",
|
||||
alertTemplateDesc: "Enable notifications first to select template",
|
||||
|
||||
// ServiceTypeField.tsx
|
||||
serviceType: "Service Type",
|
||||
serviceTypeHTTPDesc: "Monitor websites and REST APIs with HTTP/HTTPS Protocol",
|
||||
serviceTypePINGDesc: "Monitor host availability with PING Protocol",
|
||||
serviceTypeTCPDesc: "Monitor TCP port connectivity with TCP Protocol",
|
||||
serviceTypeDNSDesc: "Monitor DNS resolution",
|
||||
|
||||
// ServiceRegionalFields.tsx
|
||||
regionalMonitoring: "Regional Monitoring",
|
||||
regionalMonitoringDesc: "Assign this service to regional monitoring agents for distributed monitoring",
|
||||
regionalAgents: "Regional Agents",
|
||||
regionalAgentsLoading: "Loading agents...",
|
||||
regionalAgentsAvailablePlaceholder: "Select additional regional agents...",
|
||||
regionalAgentsAllSelected: "All available agents selected",
|
||||
regionalAgentsNoAvailable: "No regional agents available",
|
||||
regionalAgentsNoOnlineAvailable: "No online regional agents available",
|
||||
regionalAgentsNotFoundMessage: "No online regional agents found. Services will use default monitoring.",
|
||||
regionalAgentsNotSelectedMessage: "No regional agents selected. Service will use default monitoring.",
|
||||
|
||||
// ServiceUrlField.tsx
|
||||
targetDefault: "Target URL/Host",
|
||||
targetDNS: "Domain Name",
|
||||
targetHTTPDesc: "Enter the full URL including protocol (http:// or https://)",
|
||||
targetPINGDesc: "Enter hostname or IP address to ping",
|
||||
targetTCPDesc: "Enter hostname or IP address for TCP connection test",
|
||||
targetTCPPortDesc: "Enter the port number for TCP connection test",
|
||||
targetDNSDesc: "Enter domain name for DNS record monitoring (A, AAAA, MX, etc.)",
|
||||
targetDefaultDesc: "Enter the target URL or hostname for monitoring",
|
||||
targetDefaultPlaceholder: "Enter URL or hostname",
|
||||
};
|
||||
Reference in New Issue
Block a user