Merge branch 'VM/RED-9585' into 'master'

RED-9585 - set count param for user roles translations

Closes RED-9585

See merge request redactmanager/red-ui!743
This commit is contained in:
Nicoleta Panaghiu 2024-12-04 16:59:57 +01:00
commit dd1e0c672b

View File

@ -126,7 +126,7 @@ export class UserListingScreenComponent extends ListingComponent<User> implement
getDisplayRoles(user: User) {
const oldRedRoles = user.roles.filter(role => role.startsWith('RED_'));
const translatedRoles = oldRedRoles.map(role => this._translateService.instant(this.translations[role]));
const translatedRoles = oldRedRoles.map(role => this._translateService.instant(this.translations[role], { count: 1 }));
return translatedRoles.join(', ') || this._translateService.instant(this.translations['NO_ROLE']);
}