diff --git a/frontend/src/components/ImportSummaryDialog/index.vue b/frontend/src/components/ImportSummaryDialog/index.vue index 5088e1491..ef069ddab 100644 --- a/frontend/src/components/ImportSummaryDialog/index.vue +++ b/frontend/src/components/ImportSummaryDialog/index.vue @@ -7,7 +7,7 @@ mdi-import - Import Summary + {{ $t("settings.backup.import-summary") }} @@ -18,8 +18,8 @@

{{ values.title }}

-
Success: {{ values.success }}
-
Failed: {{ values.failure }}
+
{{ $t("general.success-count", { count: values.success }) }}
+
{{ $t("general.failed-count", { count: values.failure }) }}
@@ -28,7 +28,7 @@ {{ $t("general.recipes") }} {{ $t("general.themes") }} {{ $t("general.settings") }} - Pages + {{ $t("settings.pages") }} {{ $t("general.users") }} {{ $t("general.groups") }} @@ -59,24 +59,30 @@ export default { userData: [], groupData: [], pageData: [], - importHeaders: [ - { - text: "Status", - value: "status", - }, - { - text: "Name", - align: "start", - sortable: true, - value: "name", - }, - - { text: "Exception", value: "data-table-expand", align: "center" }, - ], allDataTables: [], }), computed: { + + importHeaders() { + return [ + { + text: this.$t('general.status'), + value: "status", + }, + { + text: this.$t('general.name'), + align: "start", + sortable: true, + value: "name", + }, + { + text: this.$t('general.exception'), + value: "data-table-expand", + align: "center" + }, + ] + }, recipeNumbers() { return this.calculateNumbers(this.$t("general.recipes"), this.recipeData); }, @@ -96,7 +102,7 @@ export default { return this.calculateNumbers(this.$t("general.groups"), this.groupData); }, pageNumbers() { - return this.calculateNumbers("Pages", this.pageData); + return this.calculateNumbers(this.$t("settings.pages"), this.pageData); }, allNumbers() { return [ diff --git a/frontend/src/locales/messages/en-US.json b/frontend/src/locales/messages/en-US.json index d819eda0c..3a91b2e48 100644 --- a/frontend/src/locales/messages/en-US.json +++ b/frontend/src/locales/messages/en-US.json @@ -32,6 +32,8 @@ "download": "Download", "edit": "Edit", "enabled": "Enabled", + "exception": "Exception", + "failed-count": "Failed: {count}", "field-required": "Field Required", "filter": "Filter", "friday": "Friday", @@ -52,7 +54,9 @@ "settings": "Settings", "sort": "Sort", "sort-alphabetically": "A-Z", + "status": "Status", "submit": "Submit", + "success-count": "Success: {count}", "sunday": "Sunday", "templates": "Templates", "themes": "Themes", @@ -147,14 +151,14 @@ "view-recipe": "View Recipe" }, "search": { - "search-mealie": "Search Mealie (press /)", - "search-placeholder": "Search...", - "max-results": "Max Results", "category-filter": "Category Filter", "exclude": "Exclude", "include": "Include", + "max-results": "Max Results", "or": "Or", "search": "Search", + "search-mealie": "Search Mealie (press /)", + "search-placeholder": "Search...", "tag-filter": "Tag Filter" }, "settings": { @@ -165,6 +169,7 @@ "backup-tag": "Backup Tag", "create-heading": "Create a Backup", "full-backup": "Full Backup", + "import-summary": "Import Summary", "partial-backup": "Partial Backup" }, "backup-and-exports": "Backups", @@ -189,6 +194,7 @@ "migrations": "Migrations", "new-page": "New Page", "page-name": "Page Name", + "pages": "Pages", "profile": "Profile", "remove-existing-entries-matching-imported-entries": "Remove existing entries matching imported entries", "set-new-time": "Set New Time",