Skip to content

Commit

Permalink
fix affiliation status i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
auumgn committed Mar 7, 2024
1 parent f7d477a commit b5ab369
Show file tree
Hide file tree
Showing 13 changed files with 3,649 additions and 566 deletions.
6 changes: 2 additions & 4 deletions ui/src/app/affiliation/affiliations.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,8 @@ <h1 id="page-heading" class="mt-3" i18n="@@gatewayApp.assertionServiceAssertion.
>
</td>
<td>{{ affiliation.created?.toString() | date: 'medium' }}</td>
<td class="assertion-status">
<span i18n="@@{{'gatewayApp.assertionStatus.' + (affiliation.prettyStatus | camelcase) + '.string'}}">{{
affiliation.prettyStatus
}}</span>
<td class="assertion-status" *ngIf="affiliation.prettyStatus">
<span>{{ affiliation.prettyStatus | localize }}</span>
<div
*ngIf="
affiliation.prettyStatus == errorAddingToOrcid ||

Check failure on line 198 in ui/src/app/affiliation/affiliations.component.html

View workflow job for this annotation

GitHub Actions / format

Expected `===` but received `==`
Expand Down
31 changes: 31 additions & 0 deletions ui/src/app/shared/pipe/localize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,37 @@ export class LocalizePipe implements PipeTransform {
return $localize`:@@userServiceApp.user.updated.string:User updated successfully`
case AlertType.USER_DELETED:
return $localize`:@@userServiceApp.user.deleted.string:User deleted successfully`

// Affiliation pretty statuses

case 'User denied access':
return $localize`:@@gatewayApp.assertionStatus.userDeniedAccess.string:User denied access`
case 'Pending':
return $localize`:@@gatewayApp.assertionStatus.pending.string:Pending`
case 'In ORCID':
return $localize`:@@gatewayApp.assertionStatus.inOrcid.string:In ORCID`
case 'User granted access':
return $localize`:@@gatewayApp.assertionStatus.userGrantedAccess.string:User granted access`
case 'User deleted from ORCID':
return $localize`:@@gatewayApp.assertionStatus.userDeletedFromOrcid.string:User deleted from ORCID`
case 'User revoked access':
return $localize`:@@gatewayApp.assertionStatus.userRevokedAccess.string:User revoked access`
case 'Error adding to ORCID':
return $localize`:@@gatewayApp.assertionStatus.errorAddingToOrcid.string:Error adding to ORCID`
case 'Error updating in ORCID':
return $localize`:@@gatewayApp.assertionStatus.errorUpdatingInOrcid.string:Error updating in ORCID`
case 'Pending retry in ORCID':
return $localize`:@@gatewayApp.assertionStatus.pendingRetryInOrcid.string:Pending retry in ORCID`
case 'Error deleting in ORCID':
return $localize`:@@gatewayApp.assertionStatus.errorDeletingInOrcid.string:Error deleting in ORCID`
case 'Notification requested':
return $localize`:@@gatewayApp.assertionStatus.notificationRequested.string:Notification requested`
case 'Notification sent':
return $localize`:@@gatewayApp.assertionStatus.notificationSent.string:Notification sent`
case 'Notification failed':
return $localize`:@@gatewayApp.assertionStatus.notificationFailed.string:Notification failed`
case 'Pending update in ORCID':
return $localize`:@@gatewayApp.assertionStatus.pendingUpdateInOrcid.string:Pending update in ORCID`
}
}
}
654 changes: 412 additions & 242 deletions ui/src/i18n/messages.cs.xlf

Large diffs are not rendered by default.

356 changes: 324 additions & 32 deletions ui/src/i18n/messages.es.xlf

Large diffs are not rendered by default.

356 changes: 324 additions & 32 deletions ui/src/i18n/messages.fr.xlf

Large diffs are not rendered by default.

356 changes: 324 additions & 32 deletions ui/src/i18n/messages.it.xlf

Large diffs are not rendered by default.

356 changes: 324 additions & 32 deletions ui/src/i18n/messages.ja.xlf

Large diffs are not rendered by default.

356 changes: 324 additions & 32 deletions ui/src/i18n/messages.ko.xlf

Large diffs are not rendered by default.

356 changes: 324 additions & 32 deletions ui/src/i18n/messages.pt.xlf

Large diffs are not rendered by default.

356 changes: 324 additions & 32 deletions ui/src/i18n/messages.ru.xlf

Large diffs are not rendered by default.

320 changes: 288 additions & 32 deletions ui/src/i18n/messages.xlf

Large diffs are not rendered by default.

356 changes: 324 additions & 32 deletions ui/src/i18n/messages.zh-CN.xlf

Large diffs are not rendered by default.

356 changes: 324 additions & 32 deletions ui/src/i18n/messages.zh-TW.xlf

Large diffs are not rendered by default.

0 comments on commit b5ab369

Please sign in to comment.