Skip to content

Commit

Permalink
ELEMENTS-1567-BACKPORT: Translate the messages when a user or a group…
Browse files Browse the repository at this point in the history
… are created
  • Loading branch information
alokhyland committed Sep 14, 2023
1 parent a8c713a commit e4070a3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ui/nuxeo-user-group-management.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,10 +302,12 @@ import './nuxeo-button-styles.js';
switch (event.type) {
case 'nuxeo-user-created':
case 'nuxeo-user-invited':
msg = `User ${event.detail.id} created`;
msg = `${this.i18n('userGroupManagement.new.user')} ${event.detail.id} ${this.i18n(
'label.ui.state.created',
)}`;
break;
case 'nuxeo-group-created':
msg = `Group ${event.detail.groupname} created`;
msg = `${this.i18n('label.group')} ${event.detail.groupname} ${this.i18n('label.ui.state.created')}`;
break;
default:
// do nothing
Expand Down

0 comments on commit e4070a3

Please sign in to comment.