Refactor the Translations language to seperate their own directory, for easy to maintenable and scalable language

This commit is contained in:
Tola Leng
2025-05-23 20:39:25 +08:00
parent b4bef67220
commit 8910c1355c
40 changed files with 1416 additions and 618 deletions
@@ -0,0 +1,68 @@
import { MaintenanceTranslations } from '../types/maintenance';
export const maintenanceTranslations: MaintenanceTranslations = {
scheduledMaintenance: 'Scheduled Maintenance',
scheduledMaintenanceDesc: 'View and manage planned maintenance windows for your systems and services',
upcomingMaintenance: 'Upcoming',
ongoingMaintenance: 'Ongoing',
completedMaintenance: 'Completed',
createMaintenanceWindow: 'Create Maintenance',
totalScheduledHours: 'Total Scheduled Hours',
maintenanceName: 'Maintenance Name',
maintenanceStatus: 'Status',
scheduledStart: 'Scheduled Start',
scheduledEnd: 'Scheduled End',
affectedServices: 'Affected Services',
impact: 'Impact',
minor: 'Minor',
major: 'Major',
critical: 'Critical',
none: 'None',
actions: 'Actions',
scheduled: 'Scheduled',
inprogress: 'In Progress',
completed: 'Completed',
cancelled: 'Cancelled',
markAsInProgress: 'Mark as In Progress',
markAsCompleted: 'Mark as Completed',
markAsCancelled: 'Mark as Cancelled',
confirmDelete: 'Confirm Delete',
deleteMaintenanceConfirmation: 'Are you sure you want to delete this maintenance window?',
thisActionCannotBeUndone: 'This action cannot be undone.',
maintenanceDeleted: 'Maintenance Deleted',
maintenanceDeletedDesc: 'The maintenance window has been deleted successfully.',
errorDeletingMaintenance: 'There was an error deleting the maintenance window.',
statusUpdated: 'Status Updated',
maintenanceStatusUpdated: 'Maintenance status has been updated successfully.',
errorUpdatingMaintenanceStatus: 'There was an error updating the maintenance status.',
createMaintenance: 'Create Maintenance',
createMaintenanceDesc: 'Schedule a new maintenance window for your services',
enterTitle: 'Enter maintenance title',
enterDescription: 'Enter detailed description of the maintenance',
startTime: 'Start Time',
endTime: 'End Time',
selectDate: 'Select a date',
enterAffectedServices: 'Enter affected services',
separateServicesWithComma: 'Separate multiple services with commas',
priority: 'Priority',
selectPriority: 'Select priority',
selectStatus: 'Select status',
selectImpact: 'Select impact',
notifySubscribers: 'Notify Subscribers',
notifySubscribersDesc: 'Send notifications to all subscribers when this maintenance starts',
maintenanceCreated: 'Maintenance Created',
maintenanceCreatedDesc: 'The maintenance window has been scheduled successfully.',
errorCreatingMaintenance: 'There was an error creating the maintenance window.',
errorFetchingMaintenanceData: 'There was an error fetching maintenance data.',
low: 'Low',
medium: 'Medium',
high: 'High',
created: 'Created',
lastUpdated: 'Last Updated',
subscribersWillBeNotified: 'Subscribers will be notified when maintenance begins',
noNotifications: 'No notifications will be sent',
noScheduledMaintenance: 'No Scheduled Maintenance',
noMaintenanceWindows: 'There are no maintenance windows for this period. Create one by clicking the "Create Maintenance" button.',
maintenanceCreatedSuccess: 'Maintenance window created successfully',
};