fix: Improve cache cleaning for internationalization (#7395)

pull/7396/head
ssongliu 2024-12-17 23:10:11 +08:00 committed by GitHub
parent 4944e705dc
commit 6cf3f158c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 12 additions and 15 deletions

View File

@ -1761,7 +1761,6 @@ const message = {
upgradeHelper: '(Recommend keeping the latest upgrade backup for system rollback)', upgradeHelper: '(Recommend keeping the latest upgrade backup for system rollback)',
cache: 'System cache files', cache: 'System cache files',
cacheHelper: '(Proceed with caution, cleaning requires a service restart)', cacheHelper: '(Proceed with caution, cleaning requires a service restart)',
snapshot: 'System snapshot temporary files',
snapshotTmp: 'System snapshot upload temporary files', snapshotTmp: 'System snapshot upload temporary files',
snapshotLocal: 'System snapshot creation temporary files', snapshotLocal: 'System snapshot creation temporary files',
rollback: 'Backup files before recover', rollback: 'Backup files before recover',
@ -1784,9 +1783,7 @@ const message = {
'System log information, container build or image pull log information, and log files generated in scheduled tasks', 'System log information, container build or image pull log information, and log files generated in scheduled tasks',
dockerLog: 'Container operation log files', dockerLog: 'Container operation log files',
taskLog: 'Scheduled task execution log files', taskLog: 'Scheduled task execution log files',
shell: 'Shell script scheduled tasks',
containerShell: 'Container internal Shell script scheduled tasks', containerShell: 'Container internal Shell script scheduled tasks',
curl: 'CURL scheduled tasks',
containerTrash: 'Container Trash', containerTrash: 'Container Trash',
images: 'Images', images: 'Images',

View File

@ -1645,7 +1645,6 @@ const message = {
upgradeHelper: '( )', upgradeHelper: '( )',
cache: '', cache: '',
cacheHelper: '( )', cacheHelper: '( )',
snapshot: '',
snapshotTmp: '', snapshotTmp: '',
snapshotLocal: '', snapshotLocal: '',
rollback: '', rollback: '',
@ -1667,9 +1666,7 @@ const message = {
systemLogHelper: '', systemLogHelper: '',
dockerLog: '', dockerLog: '',
taskLog: '', taskLog: '',
shell: 'Shell ',
containerShell: ' Shell ', containerShell: ' Shell ',
curl: 'CURL ',
containerTrash: '', containerTrash: '',
images: '', images: '',

View File

@ -1644,7 +1644,6 @@ const message = {
upgradeHelper: '( )', upgradeHelper: '( )',
cache: '', cache: '',
cacheHelper: '( )', cacheHelper: '( )',
snapshot: '',
snapshotTmp: '', snapshotTmp: '',
snapshotLocal: '', snapshotLocal: '',
rollback: '', rollback: '',
@ -1666,9 +1665,7 @@ const message = {
systemLogHelper: '', systemLogHelper: '',
dockerLog: '', dockerLog: '',
taskLog: '', taskLog: '',
shell: 'Shell ', containerShell: ' Shell ',
containerShell: ' Shell ',
curl: 'CURL ',
containerTrash: '', containerTrash: '',
images: '', images: '',

View File

@ -599,8 +599,6 @@ function load18n(label: string) {
return i18n.global.t('clean.upgrade'); return i18n.global.t('clean.upgrade');
case 'cache': case 'cache':
return i18n.global.t('clean.cache'); return i18n.global.t('clean.cache');
case 'snapshot':
return i18n.global.t('clean.snapshot');
case 'snapshot_tmp': case 'snapshot_tmp':
return i18n.global.t('clean.snapshotTmp'); return i18n.global.t('clean.snapshotTmp');
case 'snapshot_local': case 'snapshot_local':
@ -641,12 +639,20 @@ function load18n(label: string) {
return i18n.global.t('clean.dockerLog'); return i18n.global.t('clean.dockerLog');
case 'task_log': case 'task_log':
return i18n.global.t('clean.taskLog'); return i18n.global.t('clean.taskLog');
case 'shell':
return i18n.global.t('clean.shell');
case 'containerShell': case 'containerShell':
return i18n.global.t('clean.containerShell'); return i18n.global.t('clean.containerShell');
case 'curl': case 'curl':
return i18n.global.t('clean.curl'); case 'shell':
case 'app':
case 'website':
case 'database':
case 'directory':
case 'log':
case 'cutWebsiteLog':
case 'clean':
case 'snapshot':
case 'ntp':
return i18n.global.t('cronjob.' + label);
case 'container_images': case 'container_images':
return i18n.global.t('clean.images'); return i18n.global.t('clean.images');
case 'container_containers': case 'container_containers':