Skip to content

Commit

Permalink
Chore: Fix grammatical typo when only one message is pruned (#21902)
Browse files Browse the repository at this point in the history
Co-authored-by: Guilherme Gazzo <guilhermegazzo@gmail.com>
Co-authored-by: dougfabris <devfabris@gmail.com>
Co-authored-by: Tasso Evangelista <tasso.evangelista@rocket.chat>
  • Loading branch information
4 people authored and csuarez committed Aug 26, 2022
1 parent d9ac20d commit f6d15c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const PruneMessagesWithData = ({ rid, tabBar }: { rid: IRoom['_id']; tabBar: Too
throw new Error(t('No_messages_found_to_prune'));
}

dispatchToastMessage({ type: 'success', message: `${count} ${t('messages_pruned')}` });
dispatchToastMessage({ type: 'success', message: t('__count__message_pruned', { count }) });
closeModal();
reset();
} catch (error: unknown) {
Expand Down
3 changes: 2 additions & 1 deletion apps/meteor/packages/rocketchat-i18n/i18n/en.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"500": "Internal Server Error",
"__count__empty_rooms_will_be_removed_automatically": "__count__ empty rooms will be removed automatically.",
"__count__empty_rooms_will_be_removed_automatically__rooms__": "__count__ empty rooms will be removed automatically:<br/> __rooms__.",
"__count__message_pruned": "__count__ message pruned",
"__count__message_pruned_plural": "__count__ messages pruned",
"__usersCount__members_joined": "+ __usersCount__ members joined",
"__usersCount__people_will_be_invited": "__usersCount__ people will be invited",
"__username__is_no_longer__role__defined_by__user_by_": "__username__ is no longer __role__ by __user_by__",
Expand Down Expand Up @@ -3232,7 +3234,6 @@
"MessageBox_view_mode": "MessageBox View Mode",
"messages": "messages",
"Messages": "Messages",
"messages_pruned": "messages pruned",
"Messages_selected": "Messages selected",
"Messages_sent": "Messages sent",
"Messages_that_are_sent_to_the_Incoming_WebHook_will_be_posted_here": "Messages that are sent to the Incoming WebHook will be posted here.",
Expand Down

0 comments on commit f6d15c5

Please sign in to comment.