Skip to content

Commit 775dd5c

Browse files
committed
fix(webui): missing i18n strings
1 parent f0d3a46 commit 775dd5c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

komga-webui/src/types/items.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export class BookItem extends Item<BookDto> {
7474
return ItemTypes.BOOK
7575
}
7676

77+
7778
title(context: ItemContext[]): ItemTitle | ItemTitle[] {
7879
if (context.includes(ItemContext.SHOW_SERIES))
7980
return [
@@ -198,8 +199,7 @@ export class CollectionItem extends Item<CollectionDto> {
198199
}
199200

200201
body(context: ItemContext[] = []): string {
201-
const c = this.item.seriesIds.length
202-
return `<span>${c} Series</span>`
202+
return `<span>${i18n.tc('dialog.add_to_collection.card_collection_subtitle', this.item.seriesIds.length)}</span>`
203203
}
204204

205205
to(): RawLocation {
@@ -228,8 +228,7 @@ export class ReadListItem extends Item<ReadListDto> {
228228
}
229229

230230
body(context: ItemContext[] = []): string {
231-
const c = this.item.bookIds.length
232-
return `<span>${c} Books</span>`
231+
return `<span>${i18n.tc('dialog.add_to_readlist.card_readlist_subtitle', this.item.bookIds.length)}</span>`
233232
}
234233

235234
to(): RawLocation {

0 commit comments

Comments
 (0)