diff --git a/src/languages/en.js b/src/languages/en.js index b02659910bdc..ec3b1554a9a9 100755 --- a/src/languages/en.js +++ b/src/languages/en.js @@ -104,7 +104,8 @@ export default { leaveRoom: 'Leave room', your: 'your', conciergeHelp: 'Please reach out to Concierge for help.', - youAppearToBeOffline: 'You appear to be offline', + maxParticipantsReached: ({count}) => `You've selected the maximum number (${count}) of participants.`, + youAppearToBeOffline: 'You appear to be offline.', thisFeatureRequiresInternet: 'This feature requires an active internet connection to be used.', }, attachmentPicker: { @@ -235,7 +236,6 @@ export default { split: ({amount}) => `Split ${amount}`, send: ({amount}) => `Send ${amount}`, noReimbursableExpenses: 'This report has an invalid amount', - maxParticipantsReached: ({count}) => `You've selected the maximum number (${count}) of participants.`, error: { invalidSplit: 'Split amounts do not equal total amount', other: 'Unexpected error, please try again later', @@ -581,7 +581,6 @@ export default { }, messages: { errorMessageInvalidPhone: 'Please enter a valid phone number without brackets or dashes. If you\'re outside the US please include your country code, eg. +447782339811', - maxParticipantsReached: 'You\'ve reached the maximum number of participants for a group chat.', }, onfidoStep: { acceptTerms: 'By continuing with the request to activate your Expensify wallet, you confirm that you have read, understand and accept ', diff --git a/src/languages/es.js b/src/languages/es.js index ff71b50e8636..b2c86f47e310 100644 --- a/src/languages/es.js +++ b/src/languages/es.js @@ -104,7 +104,8 @@ export default { leaveRoom: 'Salir de la sala de chat', your: 'tu', conciergeHelp: 'Por favor contacta con Concierge para obtener ayuda.', - youAppearToBeOffline: 'Parece que estás desconectado', + maxParticipantsReached: ({count}) => `Has seleccionado el número máximo (${count}) de participantes.`, + youAppearToBeOffline: 'Parece que estás desconectado.', thisFeatureRequiresInternet: 'Esta función requiere una conexión a Internet activa para ser utilizada.', }, attachmentPicker: { @@ -235,7 +236,6 @@ export default { split: ({amount}) => `Dividir ${amount}`, send: ({amount}) => `Enviar ${amount}`, noReimbursableExpenses: 'El monto de este informe es inválido', - maxParticipantsReached: ({count}) => `Has seleccionado el número máximo (${count}) de participantes.`, error: { invalidSplit: 'La suma de las partes no equivale al monto total', other: 'Error inesperado, por favor inténtalo más tarde', @@ -581,7 +581,6 @@ export default { }, messages: { errorMessageInvalidPhone: 'Por favor, introduce un número de teléfono válido sin paréntesis o guiones. Si reside fuera de Estados Unidos, por favor incluye el prefijo internacional. P. ej. +447782339811', - maxParticipantsReached: 'Has llegado al número máximo de participantes para un grupo.', }, onfidoStep: { acceptTerms: 'Al continuar con la solicitud para activar su billetera Expensify, confirma que ha leído, comprende y acepta ', diff --git a/src/libs/OptionsListUtils.js b/src/libs/OptionsListUtils.js index 944b69e48eb3..2151679dcd83 100644 --- a/src/libs/OptionsListUtils.js +++ b/src/libs/OptionsListUtils.js @@ -762,7 +762,7 @@ function getSidebarOptions( */ function getHeaderMessage(hasSelectableOptions, hasUserToInvite, searchValue, maxParticipantsReached = false) { if (maxParticipantsReached) { - return Localize.translate(preferredLocale, 'messages.maxParticipantsReached'); + return Localize.translate(preferredLocale, 'common.maxParticipantsReached', {count: CONST.REPORT.MAXIMUM_PARTICIPANTS}); } if (searchValue && CONST.REGEX.DIGITS_AND_PLUS.test(searchValue) && !Str.isValidPhone(searchValue)) { diff --git a/src/pages/iou/steps/IOUParticipantsPage/IOUParticipantsSplit.js b/src/pages/iou/steps/IOUParticipantsPage/IOUParticipantsSplit.js index 46c048e819a6..7504ef02bd37 100755 --- a/src/pages/iou/steps/IOUParticipantsPage/IOUParticipantsSplit.js +++ b/src/pages/iou/steps/IOUParticipantsPage/IOUParticipantsSplit.js @@ -188,11 +188,12 @@ class IOUParticipantsSplit extends Component { render() { const maxParticipantsReached = this.props.participants.length === CONST.REPORT.MAXIMUM_PARTICIPANTS; const sections = this.getSections(maxParticipantsReached); - const headerMessage = !maxParticipantsReached ? OptionsListUtils.getHeaderMessage( + const headerMessage = OptionsListUtils.getHeaderMessage( this.state.personalDetails.length + this.state.recentReports.length !== 0, Boolean(this.state.userToInvite), this.state.searchValue, - ) : ''; + maxParticipantsReached, + ); return ( <> @@ -234,11 +235,6 @@ class IOUParticipantsSplit extends Component { {lodashGet(this.props, 'participants', []).length > 0 && ( - {maxParticipantsReached && ( - - {this.props.translate('iou.maxParticipantsReached', {count: CONST.REPORT.MAXIMUM_PARTICIPANTS})} - - )}