Skip to content

Commit

Permalink
[CST-12044] feature: add translation for badge
Browse files Browse the repository at this point in the history
  • Loading branch information
vNovski committed Oct 26, 2023
1 parent c644cc5 commit 462aafb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="file-section">
<ds-themed-file-download-link *ngFor="let file of bitstreams; let last=last;" [bitstream]="file" [item]="item">
<span>
<span *ngIf="primaryBitsreamId === file.id" class="badge badge-primary">Primary</span>
<span *ngIf="primaryBitsreamId === file.id" class="badge badge-primary">{{ 'item.page.bitstreams.primary' | translate }}</span>
{{ dsoNameService.getName(file) }}
</span>
<span> ({{(file?.sizeBytes) | dsFileSize }})</span>
Expand Down
2 changes: 2 additions & 0 deletions src/assets/i18n/en.json5
Original file line number Diff line number Diff line change
Expand Up @@ -2435,6 +2435,8 @@
"item.page.bitstreams.view-more": "Show more",

"item.page.bitstreams.collapse": "Collapse",

"item.page.bitstreams.primary": "Primary",

"item.page.filesection.original.bundle": "Original bundle",

Expand Down

0 comments on commit 462aafb

Please sign in to comment.