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)',
cache: 'System cache files',
cacheHelper: '(Proceed with caution, cleaning requires a service restart)',
snapshot: 'System snapshot temporary files',
snapshotTmp: 'System snapshot upload temporary files',
snapshotLocal: 'System snapshot creation temporary files',
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',
dockerLog: 'Container operation log files',
taskLog: 'Scheduled task execution log files',
shell: 'Shell script scheduled tasks',
containerShell: 'Container internal Shell script scheduled tasks',
curl: 'CURL scheduled tasks',
containerTrash: 'Container Trash',
images: 'Images',

View File

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

View File

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

View File

@ -599,8 +599,6 @@ function load18n(label: string) {
return i18n.global.t('clean.upgrade');
case 'cache':
return i18n.global.t('clean.cache');
case 'snapshot':
return i18n.global.t('clean.snapshot');
case 'snapshot_tmp':
return i18n.global.t('clean.snapshotTmp');
case 'snapshot_local':
@ -641,12 +639,20 @@ function load18n(label: string) {
return i18n.global.t('clean.dockerLog');
case 'task_log':
return i18n.global.t('clean.taskLog');
case 'shell':
return i18n.global.t('clean.shell');
case 'containerShell':
return i18n.global.t('clean.containerShell');
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':
return i18n.global.t('clean.images');
case 'container_containers':