From 1c461b4e635241b425e8efa9d6e325ef7cd37ffd Mon Sep 17 00:00:00 2001 From: Philipp Fischbeck Date: Thu, 22 Dec 2022 22:38:22 +0100 Subject: [PATCH] chore: make admin maintenance pages localizable --- frontend/lang/messages/en-US.json | 37 +++++++++++ frontend/pages/admin/maintenance/index.vue | 71 ++++++++++++++-------- frontend/pages/admin/maintenance/logs.vue | 20 ++++-- 3 files changed, 96 insertions(+), 32 deletions(-) diff --git a/frontend/lang/messages/en-US.json b/frontend/lang/messages/en-US.json index 9b5003221f8..1f25451cae6 100644 --- a/frontend/lang/messages/en-US.json +++ b/frontend/lang/messages/en-US.json @@ -709,5 +709,42 @@ "flat-mode-desc": "In flat mode, the text will be added to the selected recipe field with no line breaks." } } + }, + "admin": { + "maintenance": { + "storage-details": "Storage Details", + "page-title": "Site Maintenance", + "summary-title": "Summary", + "button-label-get-summary": "Get Summary", + "button-label-open-details": "Details", + "info-description-data-dir-size": "Data Directory Size", + "info-description-log-file-size": "Log File Size", + "info-description-cleanable-directories": "Cleanable Directories", + "info-description-cleanable-images": "Cleanable Images", + "storage": { + "title-temporary-directory": "Temporary Directory (.temp)", + "title-backups-directory": "Backups Directory (backups)", + "title-groups-directory": "Groups Directory (groups)", + "title-recipes-directory": "Recipes Directory (recipes)", + "title-user-directory": "User Directory (user)" + }, + "action-delete-log-files-name": "Delete Log Files", + "action-delete-log-files-description": "Deletes all the log files", + "action-clean-directories-name": "Clean Directories", + "action-clean-directories-description": "Removes all the recipe folders that are not valid UUIDs", + "action-clean-temporary-files-name": "Clean Temporary Files", + "action-clean-temporary-files-description": "Removes all files and folders in the .temp directory", + "action-clean-images-name": "Clean Images", + "action-clean-images-description": "Removes all the images that don't end with .webp", + "actions-description": "Maintenance actions are {destructive_in_bold} and should be used with caution. Performing any of these actions is {irreversible_in_bold}.", + "actions-description-destructive": "destructive", + "actions-description-irreversible": "irreversible", + "logs-action-refresh": "Refresh Logs", + "logs-page-title": "Mealie Logs", + "logs-tail-lines-label": "Tail Lines" + }, + "mainentance": { + "actions-title": "Actions" + } } } diff --git a/frontend/pages/admin/maintenance/index.vue b/frontend/pages/admin/maintenance/index.vue index de3b7c6f1d0..8c0533eb953 100644 --- a/frontend/pages/admin/maintenance/index.vue +++ b/frontend/pages/admin/maintenance/index.vue @@ -1,6 +1,10 @@