Skip to content

Commit

Permalink
fix: Localize recently requested on discover page (#4729)
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
sephrat authored Aug 11, 2022
1 parent 8b8ec43 commit bf65c76
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
<h3 id="detailed-request-title-{{request.mediaId}}">{{request.title}}</h3>
</div>
<div class="col-12" *ngIf="request.username">
<p id="detailed-request-requestedby-{{request.mediaId}}">Requested By: {{request.username}}</p>
<p id="detailed-request-requestedby-{{request.mediaId}}">{{'MediaDetails.RequestedBy' | translate}} {{request.username}}</p>
</div>
<div class="col-12">
<p id="detailed-request-date-{{request.mediaId}}">On: {{request.requestDate | amFromUtc | amLocal | amUserLocale | amDateFormat: 'l LT'}}</p>
<p id="detailed-request-date-{{request.mediaId}}">{{'MediaDetails.OnDate' | translate}} {{request.requestDate | amFromUtc | amLocal | amUserLocale | amDateFormat: 'l LT'}}</p>
</div>
<div class="col-12">
<p id="detailed-request-status-{{request.mediaId}}">Status: <span class="badge badge-{{getClass(request)}}">{{getStatus(request) | translate}}</span></p>
<p id="detailed-request-status-{{request.mediaId}}">{{'MediaDetails.Status' | translate}} <span class="badge badge-{{getClass(request)}}">{{getStatus(request) | translate}}</span></p>
</div>
</div>
</div>
</div>
</div>
</div>
1 change: 1 addition & 0 deletions src/Ombi/wwwroot/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@
"PleaseSelectUser": "Please select a user",
"StreamingOn": "Streaming On:",
"RequestedBy": "Requested By:",
"OnDate": "On:",
"RequestedByOn": "Requested By {{user}} on {{date}}",
"RequestDate": "Request Date:",
"DeniedReason": "Denied Reason:",
Expand Down

0 comments on commit bf65c76

Please sign in to comment.