RED-9585 - set count param for user roles translations
This commit is contained in:
parent
3c5217c317
commit
4b71abb42f
@ -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']);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user