feat(i18n): localize frontend components and add missing translations
- Replaced hardcoded UI strings with translation keys across frontend files - Added and updated English(en) and Khmer(km) translation files for settings, notifications, and server components - Improved localization and multi-language support throughout the frontend
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
import { DockerTranslations } from '../types/docker';
|
||||
|
||||
export const dockerTranslations: DockerTranslations = {
|
||||
dockerContainers: "Docker Containers",
|
||||
container: "Container",
|
||||
status: "Status",
|
||||
cpuUsage: "CPU Usage",
|
||||
memory: "Memory",
|
||||
disk: "Disk",
|
||||
uptime: "Uptime",
|
||||
lastChecked: "Last Checked",
|
||||
actions: "Actions",
|
||||
searchContainersPlaceholder: "Search containers...",
|
||||
refresh: "Refresh",
|
||||
openMenu: "Open menu",
|
||||
viewMetrics: "View Metrics",
|
||||
viewDetails: "View Details",
|
||||
|
||||
running: "Running",
|
||||
stopped: "Stopped",
|
||||
warning: "Warning",
|
||||
unknown: "Unknown",
|
||||
totalContainers: "Total Containers",
|
||||
containersLabel: "Containers",
|
||||
|
||||
noContainersFound: "No containers found",
|
||||
noContainersRunning: "No containers running",
|
||||
tryAdjustSearch: "Try adjusting your search terms.",
|
||||
startSomeContainers: "Start some containers to see them here.",
|
||||
|
||||
containerMetricsTitle: "Container Metrics: {name}",
|
||||
dockerId: "Docker ID",
|
||||
loadingMetrics: "Loading metrics...",
|
||||
errorLoadingMetrics: "Error loading metrics",
|
||||
noMetricsAvailable: "No metrics data available for this container",
|
||||
|
||||
minutes60: "60 minutes",
|
||||
day1: "1 day",
|
||||
days7: "7 days",
|
||||
month1: "1 month",
|
||||
months3: "3 months",
|
||||
|
||||
used: "Used:",
|
||||
free: "Free:",
|
||||
total: "Total:",
|
||||
usage: "Usage:",
|
||||
cpu: "CPU",
|
||||
memoryTitle: "Memory",
|
||||
diskTitle: "Disk",
|
||||
network: "Network",
|
||||
|
||||
cpuUsagePct: "CPU Usage (%)",
|
||||
cpuUsageVsAvailable: "CPU Usage vs Available",
|
||||
cpuAvailablePct: "CPU Available (%)",
|
||||
ramUsagePct: "RAM Usage (%)",
|
||||
memoryUsageBytes: "Memory Usage (Bytes)",
|
||||
usedMemory: "Used Memory",
|
||||
totalMemory: "Total Memory",
|
||||
diskUsagePct: "Disk Usage (%)",
|
||||
diskUsageBytes: "Disk Usage (Bytes)",
|
||||
usedDisk: "Used Disk",
|
||||
totalDisk: "Total Disk",
|
||||
networkTraffic: "Network Traffic",
|
||||
networkSpeedKbs: "Network Speed (KB/s)",
|
||||
rxBytes: "RX Bytes",
|
||||
txBytes: "TX Bytes",
|
||||
rxSpeedKbs: "RX Speed (KB/s)",
|
||||
txSpeedKbs: "TX Speed (KB/s)",
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user