1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-19 08:19:15 +08:00

fix: Improve cache cleaning for internationalization (#7395)

This commit is contained in:
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':