From 3c1ccdbce5af20541b7e0d821af145e6128ed76d Mon Sep 17 00:00:00 2001 From: Nicholas Wallace Date: Tue, 15 Oct 2024 20:16:40 -0700 Subject: [PATCH] Batch quick match strings --- client/components/modals/BatchQuickMatchModel.vue | 4 ++-- client/strings/en-us.json | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/client/components/modals/BatchQuickMatchModel.vue b/client/components/modals/BatchQuickMatchModel.vue index 3d2015d6b..ce227c281 100644 --- a/client/components/modals/BatchQuickMatchModel.vue +++ b/client/components/modals/BatchQuickMatchModel.vue @@ -116,10 +116,10 @@ export default { libraryItemIds: this.selectedBookIds }) .then(() => { - this.$toast.info('Batch quick match of ' + this.selectedBookIds.length + ' books started!') + this.$toast.info(this.$getString('ToastBatchQuickMatchStarted', [this.selectedBookIds.length])) }) .catch((error) => { - this.$toast.error('Batch quick match failed') + this.$toast.error(this.$strings.ToastBatchQuickMatchFailed) console.error('Failed to batch quick match', error) }) .finally(() => { diff --git a/client/strings/en-us.json b/client/strings/en-us.json index 64422773c..304aa0434 100644 --- a/client/strings/en-us.json +++ b/client/strings/en-us.json @@ -928,6 +928,8 @@ "ToastBackupUploadSuccess": "Backup uploaded", "ToastBatchDeleteFailed": "Batch delete failed", "ToastBatchDeleteSuccess": "Batch delete success", + "ToastBatchQuickMatchFailed": "Batch Quick Match failed!", + "ToastBatchQuickMatchStarted": "Batch Quick Match of {0} books started!", "ToastBatchUpdateFailed": "Batch update failed", "ToastBatchUpdateSuccess": "Batch update success", "ToastBookmarkCreateFailed": "Failed to create bookmark",