From d53e0f99d69491631e8b6e8b1f247c10d99908e5 Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Mon, 6 Oct 2025 15:41:16 +0800 Subject: [PATCH] add missing i18n --- .../import/books/TransientBooksTable.vue | 51 ++++++++++++++++--- 1 file changed, 43 insertions(+), 8 deletions(-) diff --git a/next-ui/src/fragments/fragment/import/books/TransientBooksTable.vue b/next-ui/src/fragments/fragment/import/books/TransientBooksTable.vue index 83301c10c..e075dcad5 100644 --- a/next-ui/src/fragments/fragment/import/books/TransientBooksTable.vue +++ b/next-ui/src/fragments/fragment/import/books/TransientBooksTable.vue @@ -299,15 +299,42 @@ class BookImport { public get statusMessage(): string { switch (this.transientBook.status) { case MediaStatus.UNKNOWN.valueOf(): - return 'Book needs to be analyzed first' + return intl.formatMessage({ + description: 'Import books: status message: book needs to be analyzed first', + defaultMessage: 'Book needs to be analyzed first', + id: 'CPMLrI', + }) case MediaStatus.UNSUPPORTED.valueOf(): - return 'Book format is not supported' + return intl.formatMessage({ + description: 'Import books: status message: book format is not supported', + defaultMessage: 'Book format is not supported', + id: 'g2UW+6', + }) case MediaStatus.ERROR.valueOf(): - return 'Book could not be analyzed' + return intl.formatMessage({ + description: 'Import books: status message: book could not be analyzed', + defaultMessage: 'Book could not be analyzed', + id: '8jE3eP', + }) } - if (!this.series) return 'Choose a series' - if (this.imported) return 'Import requested' - if (this.upgradeBook) return 'Book will be upgraded' + if (!this.series) + return intl.formatMessage({ + description: 'Import books: status message: choose a series', + defaultMessage: 'Choose a series', + id: 'cM9FuW', + }) + if (this.imported) + return intl.formatMessage({ + description: 'Import books: status message: import requested', + defaultMessage: 'Import requested', + id: 'YHxouG', + }) + if (this.upgradeBook) + return intl.formatMessage({ + description: 'Import books: status message: book will be upgraded', + defaultMessage: 'Book will be upgraded', + id: 'UoaxO7', + }) return '' } } @@ -429,11 +456,19 @@ const headers = [ const copyOptions = [ { - title: 'Hardlink/Copy files', + title: intl.formatMessage({ + description: 'Import books: copy option: hardlink/copy', + defaultMessage: 'Hardlink/Copy files', + id: 'ap/Lnw', + }), value: 'HARDLINK', }, { - title: 'Move files', + title: intl.formatMessage({ + description: 'Import books: copy option: move', + defaultMessage: 'Move files', + id: 'EMhLEN', + }), value: 'MOVE', }, ]