fix(webui): missing i18n strings

This commit is contained in:
Gauthier Roebroeck 2022-07-25 10:31:58 +08:00
parent f0d3a46655
commit 775dd5c666

View file

@ -74,6 +74,7 @@ export class BookItem extends Item<BookDto> {
return ItemTypes.BOOK return ItemTypes.BOOK
} }
title(context: ItemContext[]): ItemTitle | ItemTitle[] { title(context: ItemContext[]): ItemTitle | ItemTitle[] {
if (context.includes(ItemContext.SHOW_SERIES)) if (context.includes(ItemContext.SHOW_SERIES))
return [ return [
@ -198,8 +199,7 @@ export class CollectionItem extends Item<CollectionDto> {
} }
body(context: ItemContext[] = []): string { body(context: ItemContext[] = []): string {
const c = this.item.seriesIds.length return `<span>${i18n.tc('dialog.add_to_collection.card_collection_subtitle', this.item.seriesIds.length)}</span>`
return `<span>${c} Series</span>`
} }
to(): RawLocation { to(): RawLocation {
@ -228,8 +228,7 @@ export class ReadListItem extends Item<ReadListDto> {
} }
body(context: ItemContext[] = []): string { body(context: ItemContext[] = []): string {
const c = this.item.bookIds.length return `<span>${i18n.tc('dialog.add_to_readlist.card_readlist_subtitle', this.item.bookIds.length)}</span>`
return `<span>${c} Books</span>`
} }
to(): RawLocation { to(): RawLocation {