From 72229773d4cb1c81dc2d64224d4e101b1725ed0a Mon Sep 17 00:00:00 2001 From: Tiago Evangelista Pinto Date: Wed, 31 Mar 2021 17:57:17 -0300 Subject: [PATCH] Regression: Change name-error description (#21385) Co-authored-by: gabriellsh <40830821+gabriellsh@users.noreply.github.com> --- client/views/teams/modals/CreateTeamModal/CreateTeamModal.tsx | 2 +- packages/rocketchat-i18n/i18n/en.i18n.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/client/views/teams/modals/CreateTeamModal/CreateTeamModal.tsx b/client/views/teams/modals/CreateTeamModal/CreateTeamModal.tsx index ea94462f0a8..6efb27b07a0 100644 --- a/client/views/teams/modals/CreateTeamModal/CreateTeamModal.tsx +++ b/client/views/teams/modals/CreateTeamModal/CreateTeamModal.tsx @@ -111,7 +111,7 @@ const useCreateTeamModalState = (onClose: () => void): CreateTeamModalState => { const isNotAvailable = await teamNameExists(name); if (isNotAvailable) { - setNameError(t('Teams_Errors_Already_exists', { name })); + setNameError(t('Teams_Errors_team_name', { name })); } }, 230, [name]); diff --git a/packages/rocketchat-i18n/i18n/en.i18n.json b/packages/rocketchat-i18n/i18n/en.i18n.json index 56faf642069..55ce42e7067 100644 --- a/packages/rocketchat-i18n/i18n/en.i18n.json +++ b/packages/rocketchat-i18n/i18n/en.i18n.json @@ -3807,6 +3807,7 @@ "Teams_delete_team": "You are about to delete this Team.", "Teams_deleted_channels": "The following Channels are going to be deleted:", "Teams_Errors_Already_exists": "The team `__name__` already exists.", + "Teams_Errors_team_name": "You can't use \"__name__\" as a team name.", "Teams_move_channel_to_team": "Move to Team", "Teams_move_channel_to_team_description": "Moving a Channel inside a Team means that this Channel will be added in the Team’s context, however, all Channel’s members, which are not members of the respective Team, will still have access to this Channel, but will not be added as Team’s members.\n\nAll Channel’s management will still be made by the owners of this Channel.\n\nTeam’s members and even Team’s owners, if not a member of this Channel, can not have access to the Channel’s content.\n\nPlease notice that the Team’s owner will be able remove members from the Channel.", "Teams_move_channel_to_team_confirm_description": "After reading the previous intructions about this behavior, do you want to move forward with this action?",