Skip to content

Commit

Permalink
fix(webui): missing i18n strings
Browse files Browse the repository at this point in the history
  • Loading branch information
gotson committed Jul 25, 2022
1 parent f0d3a46 commit 775dd5c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions komga-webui/src/types/items.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export class BookItem extends Item<BookDto> {
return ItemTypes.BOOK
}


title(context: ItemContext[]): ItemTitle | ItemTitle[] {
if (context.includes(ItemContext.SHOW_SERIES))
return [
Expand Down Expand Up @@ -198,8 +199,7 @@ export class CollectionItem extends Item<CollectionDto> {
}

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

to(): RawLocation {
Expand Down Expand Up @@ -228,8 +228,7 @@ export class ReadListItem extends Item<ReadListDto> {
}

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

to(): RawLocation {
Expand Down

0 comments on commit 775dd5c

Please sign in to comment.