Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: Fix grammatical typo when only one message is pruned #21902

Merged
merged 8 commits into from
Aug 23, 2022
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ 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) {
dispatchToastMessage({ type: 'error', message: error instanceof Error ? error : String(error) });
dispatchToastMessage({ type: 'error', message: error });
closeModal();
}
};
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 @@ -3165,7 +3167,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