Localize the managed-service resources panel.
Add components.serviceResources and move the resources/scaling panel (metrics, storage usage/expansion, CPU/memory adjust, dump restore, upgrade toasts) onto it; route through the locale-aware router. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -315,6 +315,50 @@ const en: Dictionary = {
|
||||
deleteConfirmMessage: 'Delete “{label}”? The dump file will be permanently removed.',
|
||||
snapStatus: { completed: 'completed', failed: 'failed' },
|
||||
},
|
||||
serviceResources: {
|
||||
title: 'Resources & Scaling',
|
||||
hide: 'Hide',
|
||||
monitor: 'Monitor',
|
||||
deployToView: 'Deploy the service to view metrics and adjust resources.',
|
||||
loadingMetrics: 'Loading metrics…',
|
||||
replicas: 'Replicas',
|
||||
pods: 'Pods',
|
||||
metrics: 'Metrics',
|
||||
serviceStopped: 'Service is stopped.',
|
||||
noMetrics: 'No resource metrics yet.',
|
||||
storage: 'Storage',
|
||||
loadingStorage: 'Loading storage…',
|
||||
used: 'Used',
|
||||
allocated: 'Allocated',
|
||||
expansionNote: 'Only expansion is allowed. Use Apply changes below.',
|
||||
storageChargedNote: ' Additional storage is charged for the remaining billing period.',
|
||||
storageUnavailable: 'Storage metrics unavailable.',
|
||||
adjustCpuMem: 'Adjust CPU / memory',
|
||||
redisResources: 'Redis resources',
|
||||
rabbitmqResources: 'RabbitMQ resources',
|
||||
upgradeChargeNote: 'Upgrades that increase cost are charged for the remaining billing period (wallet or invoice), same as applications.',
|
||||
applying: 'Applying…',
|
||||
applyChanges: 'Apply changes',
|
||||
restoreDump: 'Restore database dump',
|
||||
restoring: 'Restoring database…',
|
||||
uploadToRestore: 'Upload SQL dump to restore',
|
||||
uploadFormats: '.sql, .gz, or .dump — max 500MB',
|
||||
workloads: { database: 'Database', redis: 'Redis', rabbitmq: 'RabbitMQ' },
|
||||
resourcesUpdated: 'Resources updated',
|
||||
updateFailed: 'Failed to update resources',
|
||||
upgradedPaid: 'Resources upgraded! Paid {amount} Toman',
|
||||
updatedSuccess: 'Resources updated successfully',
|
||||
upgradeFailed: 'Failed to upgrade resources',
|
||||
calcFailed: 'Failed to calculate upgrade cost',
|
||||
invoiceCreated: 'Invoice created. Choose how you want to pay.',
|
||||
invoiceFailed: 'Failed to create upgrade invoice',
|
||||
restoredSuccess: 'Database restored successfully',
|
||||
restoreFailed: 'Database restore failed',
|
||||
uploadFailed: 'Failed to upload database dump',
|
||||
invalidFile: 'Please upload a .sql, .dump, or .gz file',
|
||||
fileTooLarge: 'File size must be less than 500MB',
|
||||
renewFirst: 'Renew the service before changing resources',
|
||||
},
|
||||
},
|
||||
|
||||
nav: {
|
||||
|
||||
Reference in New Issue
Block a user