diff --git a/komga-webui/src/types/items.ts b/komga-webui/src/types/items.ts index 4f90ee520..b7b6b167c 100644 --- a/komga-webui/src/types/items.ts +++ b/komga-webui/src/types/items.ts @@ -74,6 +74,7 @@ export class BookItem extends Item { return ItemTypes.BOOK } + title(context: ItemContext[]): ItemTitle | ItemTitle[] { if (context.includes(ItemContext.SHOW_SERIES)) return [ @@ -198,8 +199,7 @@ export class CollectionItem extends Item { } body(context: ItemContext[] = []): string { - const c = this.item.seriesIds.length - return `${c} Series` + return `${i18n.tc('dialog.add_to_collection.card_collection_subtitle', this.item.seriesIds.length)}` } to(): RawLocation { @@ -228,8 +228,7 @@ export class ReadListItem extends Item { } body(context: ItemContext[] = []): string { - const c = this.item.bookIds.length - return `${c} Books` + return `${i18n.tc('dialog.add_to_readlist.card_readlist_subtitle', this.item.bookIds.length)}` } to(): RawLocation {